From 9b333e7717d629dafcdc6329d5993b39e59ad63d Mon Sep 17 00:00:00 2001 From: Red Hat Application Services CI <84090353+app-services-ci@users.noreply.github.com> Date: Thu, 24 Jun 2021 11:42:55 -0400 Subject: [PATCH] chore(all): re-generate OpenAPI client(s) (#157) Co-authored-by: app-services-ci --- .../apiv1internal/client/api/openapi.yaml | 13 +-- .../client/docs/ConsumerGroupList.md | 54 ------------ .../ConsumerGroupResetOffsetParameters.md | 9 +- .../apiv1internal/client/docs/DefaultApi.md | 2 +- .../apiv1internal/client/docs/TopicsList.md | 54 ------------ .../client/model_consumer_group_list.go | 82 ------------------- ..._consumer_group_reset_offset_parameters.go | 33 +++++--- .../apiv1internal/client/model_topics_list.go | 82 ------------------- 8 files changed, 36 insertions(+), 293 deletions(-) diff --git a/kafkainstance/apiv1internal/client/api/openapi.yaml b/kafkainstance/apiv1internal/client/api/openapi.yaml index c839497d..3c7d3313 100644 --- a/kafkainstance/apiv1internal/client/api/openapi.yaml +++ b/kafkainstance/apiv1internal/client/api/openapi.yaml @@ -693,10 +693,12 @@ components: description: number of entries per page type: integer offset: - description: Deprecated offset of the topic list + deprecated: true + description: Offset of the topic list type: integer limit: - description: Deprecated maximum of returned topics + deprecated: true + description: Maximum of returned topics type: integer total: description: Total number of topics @@ -883,10 +885,12 @@ components: description: The page type: integer offset: - description: Deprecated offset of the topic list + deprecated: true + description: Offset of the topic list type: integer limit: - description: Deprecated maximum of returned topics + deprecated: true + description: Maximum of returned topics type: integer type: object UpdateTopicInput: @@ -932,7 +936,6 @@ components: type: array required: - offset - - value title: Root Type for ConsumerGroupResetOffsetParameters type: object TopicsToResetOffset: diff --git a/kafkainstance/apiv1internal/client/docs/ConsumerGroupList.md b/kafkainstance/apiv1internal/client/docs/ConsumerGroupList.md index c5012fcc..80471f54 100644 --- a/kafkainstance/apiv1internal/client/docs/ConsumerGroupList.md +++ b/kafkainstance/apiv1internal/client/docs/ConsumerGroupList.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **Total** | Pointer to **float32** | The total number of consumer groups. | [optional] **Size** | Pointer to **float32** | The number of consumer groups per page. | [optional] **Page** | Pointer to **int32** | The page | [optional] -**Offset** | Pointer to **int32** | Deprecated offset of the topic list | [optional] -**Limit** | Pointer to **int32** | Deprecated maximum of returned topics | [optional] ## Methods @@ -136,58 +134,6 @@ SetPage sets Page field to given value. HasPage returns a boolean if a field has been set. -### GetOffset - -`func (o *ConsumerGroupList) GetOffset() int32` - -GetOffset returns the Offset field if non-nil, zero value otherwise. - -### GetOffsetOk - -`func (o *ConsumerGroupList) GetOffsetOk() (*int32, bool)` - -GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOffset - -`func (o *ConsumerGroupList) SetOffset(v int32)` - -SetOffset sets Offset field to given value. - -### HasOffset - -`func (o *ConsumerGroupList) HasOffset() bool` - -HasOffset returns a boolean if a field has been set. - - -### GetLimit - -`func (o *ConsumerGroupList) GetLimit() int32` - -GetLimit returns the Limit field if non-nil, zero value otherwise. - -### GetLimitOk - -`func (o *ConsumerGroupList) GetLimitOk() (*int32, bool)` - -GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLimit - -`func (o *ConsumerGroupList) SetLimit(v int32)` - -SetLimit sets Limit field to given value. - -### HasLimit - -`func (o *ConsumerGroupList) HasLimit() bool` - -HasLimit returns a boolean if a field has been set. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kafkainstance/apiv1internal/client/docs/ConsumerGroupResetOffsetParameters.md b/kafkainstance/apiv1internal/client/docs/ConsumerGroupResetOffsetParameters.md index 5801baaf..babef0aa 100644 --- a/kafkainstance/apiv1internal/client/docs/ConsumerGroupResetOffsetParameters.md +++ b/kafkainstance/apiv1internal/client/docs/ConsumerGroupResetOffsetParameters.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Value** | **string** | | +**Value** | Pointer to **string** | | [optional] **Offset** | **string** | | **Topics** | Pointer to [**[]TopicsToResetOffset**](TopicsToResetOffset.md) | | [optional] @@ -13,7 +13,7 @@ Name | Type | Description | Notes ### NewConsumerGroupResetOffsetParameters -`func NewConsumerGroupResetOffsetParameters(value string, offset string, ) *ConsumerGroupResetOffsetParameters` +`func NewConsumerGroupResetOffsetParameters(offset string, ) *ConsumerGroupResetOffsetParameters` NewConsumerGroupResetOffsetParameters instantiates a new ConsumerGroupResetOffsetParameters object This constructor will assign default values to properties that have it defined, @@ -48,6 +48,11 @@ and a boolean to check if the value has been set. SetValue sets Value field to given value. +### HasValue + +`func (o *ConsumerGroupResetOffsetParameters) HasValue() bool` + +HasValue returns a boolean if a field has been set. ### GetOffset diff --git a/kafkainstance/apiv1internal/client/docs/DefaultApi.md b/kafkainstance/apiv1internal/client/docs/DefaultApi.md index f3f456c3..e2ea258a 100644 --- a/kafkainstance/apiv1internal/client/docs/DefaultApi.md +++ b/kafkainstance/apiv1internal/client/docs/DefaultApi.md @@ -538,7 +538,7 @@ import ( func main() { consumerGroupId := "consumerGroupId_example" // string | The ID of the consumer group. - consumerGroupResetOffsetParameters := *openapiclient.NewConsumerGroupResetOffsetParameters("Value_example", "Offset_example") // ConsumerGroupResetOffsetParameters | + consumerGroupResetOffsetParameters := *openapiclient.NewConsumerGroupResetOffsetParameters("Offset_example") // ConsumerGroupResetOffsetParameters | configuration := openapiclient.NewConfiguration() api_client := openapiclient.NewAPIClient(configuration) diff --git a/kafkainstance/apiv1internal/client/docs/TopicsList.md b/kafkainstance/apiv1internal/client/docs/TopicsList.md index 26bd2ad9..6ee184e2 100644 --- a/kafkainstance/apiv1internal/client/docs/TopicsList.md +++ b/kafkainstance/apiv1internal/client/docs/TopicsList.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Page** | Pointer to **int32** | The page | [optional] **Size** | Pointer to **int32** | number of entries per page | [optional] -**Offset** | Pointer to **int32** | Deprecated offset of the topic list | [optional] -**Limit** | Pointer to **int32** | Deprecated maximum of returned topics | [optional] **Total** | Pointer to **int32** | Total number of topics | [optional] **Items** | Pointer to [**[]Topic**](Topic.md) | List of topics | [optional] @@ -84,58 +82,6 @@ SetSize sets Size field to given value. HasSize returns a boolean if a field has been set. -### GetOffset - -`func (o *TopicsList) GetOffset() int32` - -GetOffset returns the Offset field if non-nil, zero value otherwise. - -### GetOffsetOk - -`func (o *TopicsList) GetOffsetOk() (*int32, bool)` - -GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOffset - -`func (o *TopicsList) SetOffset(v int32)` - -SetOffset sets Offset field to given value. - -### HasOffset - -`func (o *TopicsList) HasOffset() bool` - -HasOffset returns a boolean if a field has been set. - - -### GetLimit - -`func (o *TopicsList) GetLimit() int32` - -GetLimit returns the Limit field if non-nil, zero value otherwise. - -### GetLimitOk - -`func (o *TopicsList) GetLimitOk() (*int32, bool)` - -GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLimit - -`func (o *TopicsList) SetLimit(v int32)` - -SetLimit sets Limit field to given value. - -### HasLimit - -`func (o *TopicsList) HasLimit() bool` - -HasLimit returns a boolean if a field has been set. - - ### GetTotal `func (o *TopicsList) GetTotal() int32` diff --git a/kafkainstance/apiv1internal/client/model_consumer_group_list.go b/kafkainstance/apiv1internal/client/model_consumer_group_list.go index f1c4abbb..95e00923 100644 --- a/kafkainstance/apiv1internal/client/model_consumer_group_list.go +++ b/kafkainstance/apiv1internal/client/model_consumer_group_list.go @@ -29,12 +29,6 @@ type ConsumerGroupList struct { // The page Page *int32 `json:"page,omitempty"` - // Deprecated offset of the topic list - Offset *int32 `json:"offset,omitempty"` - - // Deprecated maximum of returned topics - Limit *int32 `json:"limit,omitempty"` - } // NewConsumerGroupList instantiates a new ConsumerGroupList object @@ -56,8 +50,6 @@ func NewConsumerGroupListWithDefaults() *ConsumerGroupList { - - return &this } @@ -194,72 +186,6 @@ func (o *ConsumerGroupList) SetPage(v int32) { } -// GetOffset returns the Offset field value if set, zero value otherwise. -func (o *ConsumerGroupList) GetOffset() int32 { - if o == nil || o.Offset == nil { - var ret int32 - return ret - } - return *o.Offset -} - -// GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConsumerGroupList) GetOffsetOk() (*int32, bool) { - if o == nil || o.Offset == nil { - return nil, false - } - return o.Offset, true -} - -// HasOffset returns a boolean if a field has been set. -func (o *ConsumerGroupList) HasOffset() bool { - if o != nil && o.Offset != nil { - return true - } - - return false -} - -// SetOffset gets a reference to the given int32 and assigns it to the Offset field. -func (o *ConsumerGroupList) SetOffset(v int32) { - o.Offset = &v -} - - -// GetLimit returns the Limit field value if set, zero value otherwise. -func (o *ConsumerGroupList) GetLimit() int32 { - if o == nil || o.Limit == nil { - var ret int32 - return ret - } - return *o.Limit -} - -// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConsumerGroupList) GetLimitOk() (*int32, bool) { - if o == nil || o.Limit == nil { - return nil, false - } - return o.Limit, true -} - -// HasLimit returns a boolean if a field has been set. -func (o *ConsumerGroupList) HasLimit() bool { - if o != nil && o.Limit != nil { - return true - } - - return false -} - -// SetLimit gets a reference to the given int32 and assigns it to the Limit field. -func (o *ConsumerGroupList) SetLimit(v int32) { - o.Limit = &v -} - - func (o ConsumerGroupList) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} @@ -279,14 +205,6 @@ func (o ConsumerGroupList) MarshalJSON() ([]byte, error) { toSerialize["page"] = o.Page } - if o.Offset != nil { - toSerialize["offset"] = o.Offset - } - - if o.Limit != nil { - toSerialize["limit"] = o.Limit - } - return json.Marshal(toSerialize) } diff --git a/kafkainstance/apiv1internal/client/model_consumer_group_reset_offset_parameters.go b/kafkainstance/apiv1internal/client/model_consumer_group_reset_offset_parameters.go index 68f22869..4bec2602 100644 --- a/kafkainstance/apiv1internal/client/model_consumer_group_reset_offset_parameters.go +++ b/kafkainstance/apiv1internal/client/model_consumer_group_reset_offset_parameters.go @@ -17,7 +17,7 @@ import ( // ConsumerGroupResetOffsetParameters struct for ConsumerGroupResetOffsetParameters type ConsumerGroupResetOffsetParameters struct { - Value string `json:"value"` + Value *string `json:"value,omitempty"` Offset string `json:"offset"` @@ -29,9 +29,8 @@ type ConsumerGroupResetOffsetParameters struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewConsumerGroupResetOffsetParameters(value string, offset string) *ConsumerGroupResetOffsetParameters { +func NewConsumerGroupResetOffsetParameters(offset string) *ConsumerGroupResetOffsetParameters { this := ConsumerGroupResetOffsetParameters{} - this.Value = value this.Offset = offset return &this } @@ -49,28 +48,36 @@ func NewConsumerGroupResetOffsetParametersWithDefaults() *ConsumerGroupResetOffs } -// GetValue returns the Value field value +// GetValue returns the Value field value if set, zero value otherwise. func (o *ConsumerGroupResetOffsetParameters) GetValue() string { - if o == nil { + if o == nil || o.Value == nil { var ret string return ret } - - return o.Value + return *o.Value } -// GetValueOk returns a tuple with the Value field value +// GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConsumerGroupResetOffsetParameters) GetValueOk() (*string, bool) { - if o == nil { + if o == nil || o.Value == nil { return nil, false } - return &o.Value, true + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ConsumerGroupResetOffsetParameters) HasValue() bool { + if o != nil && o.Value != nil { + return true + } + + return false } -// SetValue sets field value +// SetValue gets a reference to the given string and assigns it to the Value field. func (o *ConsumerGroupResetOffsetParameters) SetValue(v string) { - o.Value = v + o.Value = &v } @@ -135,7 +142,7 @@ func (o *ConsumerGroupResetOffsetParameters) SetTopics(v []TopicsToResetOffset) func (o ConsumerGroupResetOffsetParameters) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} - if true { + if o.Value != nil { toSerialize["value"] = o.Value } diff --git a/kafkainstance/apiv1internal/client/model_topics_list.go b/kafkainstance/apiv1internal/client/model_topics_list.go index 86e712f5..a3a9e197 100644 --- a/kafkainstance/apiv1internal/client/model_topics_list.go +++ b/kafkainstance/apiv1internal/client/model_topics_list.go @@ -23,12 +23,6 @@ type TopicsList struct { // number of entries per page Size *int32 `json:"size,omitempty"` - // Deprecated offset of the topic list - Offset *int32 `json:"offset,omitempty"` - - // Deprecated maximum of returned topics - Limit *int32 `json:"limit,omitempty"` - // Total number of topics Total *int32 `json:"total,omitempty"` @@ -56,8 +50,6 @@ func NewTopicsListWithDefaults() *TopicsList { - - return &this } @@ -128,72 +120,6 @@ func (o *TopicsList) SetSize(v int32) { } -// GetOffset returns the Offset field value if set, zero value otherwise. -func (o *TopicsList) GetOffset() int32 { - if o == nil || o.Offset == nil { - var ret int32 - return ret - } - return *o.Offset -} - -// GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TopicsList) GetOffsetOk() (*int32, bool) { - if o == nil || o.Offset == nil { - return nil, false - } - return o.Offset, true -} - -// HasOffset returns a boolean if a field has been set. -func (o *TopicsList) HasOffset() bool { - if o != nil && o.Offset != nil { - return true - } - - return false -} - -// SetOffset gets a reference to the given int32 and assigns it to the Offset field. -func (o *TopicsList) SetOffset(v int32) { - o.Offset = &v -} - - -// GetLimit returns the Limit field value if set, zero value otherwise. -func (o *TopicsList) GetLimit() int32 { - if o == nil || o.Limit == nil { - var ret int32 - return ret - } - return *o.Limit -} - -// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TopicsList) GetLimitOk() (*int32, bool) { - if o == nil || o.Limit == nil { - return nil, false - } - return o.Limit, true -} - -// HasLimit returns a boolean if a field has been set. -func (o *TopicsList) HasLimit() bool { - if o != nil && o.Limit != nil { - return true - } - - return false -} - -// SetLimit gets a reference to the given int32 and assigns it to the Limit field. -func (o *TopicsList) SetLimit(v int32) { - o.Limit = &v -} - - // GetTotal returns the Total field value if set, zero value otherwise. func (o *TopicsList) GetTotal() int32 { if o == nil || o.Total == nil { @@ -271,14 +197,6 @@ func (o TopicsList) MarshalJSON() ([]byte, error) { toSerialize["size"] = o.Size } - if o.Offset != nil { - toSerialize["offset"] = o.Offset - } - - if o.Limit != nil { - toSerialize["limit"] = o.Limit - } - if o.Total != nil { toSerialize["total"] = o.Total }