From bb144f539e7418ccc668c5c2cfd0f5506b6b3fa7 Mon Sep 17 00:00:00 2001 From: andrewgdewar Date: Wed, 24 Jul 2024 07:08:45 +0000 Subject: [PATCH] Update pulp bindings to 9d5beb82a436bd89a92e4d8a965b735ea54669037d2e4353b86e245a563d9642 --- release/README.md | 2 +- release/api/openapi.yaml | 42 ++-- release/configuration.go | 2 +- release/docs/ArtifactDistributionResponse.md | 152 ++++++------ .../model_artifact_distribution_response.go | 230 +++++++++--------- 5 files changed, 214 insertions(+), 214 deletions(-) diff --git a/release/README.md b/release/README.md index 951e419..c36c4de 100644 --- a/release/README.md +++ b/release/README.md @@ -6,7 +6,7 @@ Fetch, Upload, Organize, and Distribute Software Packages This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: v3 -- Package version: b59d5a8be2d6a9584b32d696a45276d9e84683127b8e3dae95843eb29436da38 +- Package version: 9d5beb82a436bd89a92e4d8a965b735ea54669037d2e4353b86e245a563d9642 - Generator version: 7.7.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://pulpproject.org](https://pulpproject.org) diff --git a/release/api/openapi.yaml b/release/api/openapi.yaml index 2fa9f79..51c5b97 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -35820,9 +35820,9 @@ components: description: A serializer for ArtifactDistribution. example: pulp_href: https://openapi-generator.tech + hidden: false pulp_labels: key: pulp_labels - hidden: false name: name base_url: base_url base_path: base_path @@ -35830,21 +35830,32 @@ components: pulp_last_updated: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech properties: - base_path: - description: The base (relative) path component of the published url. Avoid - paths that overlap with other distribution base paths - (e.g. "foo" and "foo/bar") + pulp_last_updated: + description: "Timestamp of the last time this resource was updated. Note:\ + \ for immutable resources - like content, repository versions, and publication\ + \ - pulp_created and pulp_last_updated dates will be the same." + format: date-time + readOnly: true type: string name: description: "A unique name. Ex, `rawhide` and `stable`." type: string + base_url: + description: The URL for accessing the publication as defined by this distribution. + readOnly: true + type: string pulp_href: format: uri readOnly: true type: string - base_url: - description: The URL for accessing the publication as defined by this distribution. - readOnly: true + hidden: + default: false + description: Whether this distribution should be shown in the content app. + type: boolean + base_path: + description: The base (relative) path component of the published url. Avoid + paths that overlap with other distribution base paths + (e.g. "foo" and "foo/bar") type: string pulp_labels: additionalProperties: @@ -35861,17 +35872,6 @@ components: format: uri nullable: true type: string - hidden: - default: false - description: Whether this distribution should be shown in the content app. - type: boolean - pulp_last_updated: - description: "Timestamp of the last time this resource was updated. Note:\ - \ for immutable resources - like content, repository versions, and publication\ - \ - pulp_created and pulp_last_updated dates will be the same." - format: date-time - readOnly: true - type: string required: - base_path - name @@ -37398,9 +37398,9 @@ components: count: 123 results: - pulp_href: https://openapi-generator.tech + hidden: false pulp_labels: key: pulp_labels - hidden: false name: name base_url: base_url base_path: base_path @@ -37408,9 +37408,9 @@ components: pulp_last_updated: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech - pulp_href: https://openapi-generator.tech + hidden: false pulp_labels: key: pulp_labels - hidden: false name: name base_url: base_url base_path: base_path diff --git a/release/configuration.go b/release/configuration.go index 7ccdc45..f5584fb 100644 --- a/release/configuration.go +++ b/release/configuration.go @@ -93,7 +93,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/b59d5a8be2d6a9584b32d696a45276d9e84683127b8e3dae95843eb29436da38/go", + UserAgent: "OpenAPI-Generator/9d5beb82a436bd89a92e4d8a965b735ea54669037d2e4353b86e245a563d9642/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index 34480d5..9b8afa7 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,21 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**BasePath** | **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | +**PulpLastUpdated** | Pointer to **time.Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] **Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | -**PulpHref** | Pointer to **string** | | [optional] [readonly] **BaseUrl** | Pointer to **string** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly] +**PulpHref** | Pointer to **string** | | [optional] [readonly] +**Hidden** | Pointer to **bool** | Whether this distribution should be shown in the content app. | [optional] [default to false] +**BasePath** | **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | **PulpLabels** | Pointer to **map[string]string** | | [optional] **PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] **ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] -**Hidden** | Pointer to **bool** | Whether this distribution should be shown in the content app. | [optional] [default to false] -**PulpLastUpdated** | Pointer to **time.Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] ## Methods ### NewArtifactDistributionResponse -`func NewArtifactDistributionResponse(basePath string, name string, ) *ArtifactDistributionResponse` +`func NewArtifactDistributionResponse(name string, basePath string, ) *ArtifactDistributionResponse` NewArtifactDistributionResponse instantiates a new ArtifactDistributionResponse object This constructor will assign default values to properties that have it defined, @@ -33,25 +33,30 @@ NewArtifactDistributionResponseWithDefaults instantiates a new ArtifactDistribut This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetBasePath +### GetPulpLastUpdated -`func (o *ArtifactDistributionResponse) GetBasePath() string` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` -GetBasePath returns the BasePath field if non-nil, zero value otherwise. +GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. -### GetBasePathOk +### GetPulpLastUpdatedOk -`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` -GetBasePathOk returns a tuple with the BasePath field if it's non-nil, zero value otherwise +GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetBasePath +### SetPulpLastUpdated -`func (o *ArtifactDistributionResponse) SetBasePath(v string)` +`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` -SetBasePath sets BasePath field to given value. +SetPulpLastUpdated sets PulpLastUpdated field to given value. +### HasPulpLastUpdated + +`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` + +HasPulpLastUpdated returns a boolean if a field has been set. ### GetName @@ -73,6 +78,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetBaseUrl + +`func (o *ArtifactDistributionResponse) GetBaseUrl() string` + +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. + +### GetBaseUrlOk + +`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` + +GetBaseUrlOk returns a tuple with the BaseUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseUrl + +`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` + +SetBaseUrl sets BaseUrl field to given value. + +### HasBaseUrl + +`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` + +HasBaseUrl returns a boolean if a field has been set. + ### GetPulpHref `func (o *ArtifactDistributionResponse) GetPulpHref() string` @@ -98,30 +128,50 @@ SetPulpHref sets PulpHref field to given value. HasPulpHref returns a boolean if a field has been set. -### GetBaseUrl +### GetHidden -`func (o *ArtifactDistributionResponse) GetBaseUrl() string` +`func (o *ArtifactDistributionResponse) GetHidden() bool` -GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. +GetHidden returns the Hidden field if non-nil, zero value otherwise. -### GetBaseUrlOk +### GetHiddenOk -`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool)` -GetBaseUrlOk returns a tuple with the BaseUrl field if it's non-nil, zero value otherwise +GetHiddenOk returns a tuple with the Hidden field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetBaseUrl +### SetHidden -`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` +`func (o *ArtifactDistributionResponse) SetHidden(v bool)` -SetBaseUrl sets BaseUrl field to given value. +SetHidden sets Hidden field to given value. -### HasBaseUrl +### HasHidden -`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` +`func (o *ArtifactDistributionResponse) HasHidden() bool` + +HasHidden returns a boolean if a field has been set. + +### GetBasePath + +`func (o *ArtifactDistributionResponse) GetBasePath() string` + +GetBasePath returns the BasePath field if non-nil, zero value otherwise. + +### GetBasePathOk + +`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` + +GetBasePathOk returns a tuple with the BasePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBasePath + +`func (o *ArtifactDistributionResponse) SetBasePath(v string)` + +SetBasePath sets BasePath field to given value. -HasBaseUrl returns a boolean if a field has been set. ### GetPulpLabels @@ -208,56 +258,6 @@ HasContentGuard returns a boolean if a field has been set. `func (o *ArtifactDistributionResponse) UnsetContentGuard()` UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil -### GetHidden - -`func (o *ArtifactDistributionResponse) GetHidden() bool` - -GetHidden returns the Hidden field if non-nil, zero value otherwise. - -### GetHiddenOk - -`func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool)` - -GetHiddenOk returns a tuple with the Hidden field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHidden - -`func (o *ArtifactDistributionResponse) SetHidden(v bool)` - -SetHidden sets Hidden field to given value. - -### HasHidden - -`func (o *ArtifactDistributionResponse) HasHidden() bool` - -HasHidden returns a boolean if a field has been set. - -### GetPulpLastUpdated - -`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` - -GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. - -### GetPulpLastUpdatedOk - -`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` - -GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPulpLastUpdated - -`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` - -SetPulpLastUpdated sets PulpLastUpdated field to given value. - -### HasPulpLastUpdated - -`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` - -HasPulpLastUpdated 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/release/model_artifact_distribution_response.go b/release/model_artifact_distribution_response.go index 07b3277..14489f1 100644 --- a/release/model_artifact_distribution_response.go +++ b/release/model_artifact_distribution_response.go @@ -22,22 +22,22 @@ var _ MappedNullable = &ArtifactDistributionResponse{} // ArtifactDistributionResponse A serializer for ArtifactDistribution. type ArtifactDistributionResponse struct { - // The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") - BasePath string `json:"base_path"` + // Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. + PulpLastUpdated *time.Time `json:"pulp_last_updated,omitempty"` // A unique name. Ex, `rawhide` and `stable`. Name string `json:"name"` - PulpHref *string `json:"pulp_href,omitempty"` // The URL for accessing the publication as defined by this distribution. BaseUrl *string `json:"base_url,omitempty"` + PulpHref *string `json:"pulp_href,omitempty"` + // Whether this distribution should be shown in the content app. + Hidden *bool `json:"hidden,omitempty"` + // The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") + BasePath string `json:"base_path"` PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // Timestamp of creation. PulpCreated *time.Time `json:"pulp_created,omitempty"` // An optional content-guard. ContentGuard NullableString `json:"content_guard,omitempty"` - // Whether this distribution should be shown in the content app. - Hidden *bool `json:"hidden,omitempty"` - // Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. - PulpLastUpdated *time.Time `json:"pulp_last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,12 +47,12 @@ type _ArtifactDistributionResponse ArtifactDistributionResponse // 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 NewArtifactDistributionResponse(basePath string, name string) *ArtifactDistributionResponse { +func NewArtifactDistributionResponse(name string, basePath string) *ArtifactDistributionResponse { this := ArtifactDistributionResponse{} - this.BasePath = basePath this.Name = name var hidden bool = false this.Hidden = &hidden + this.BasePath = basePath return &this } @@ -66,28 +66,36 @@ func NewArtifactDistributionResponseWithDefaults() *ArtifactDistributionResponse return &this } -// GetBasePath returns the BasePath field value -func (o *ArtifactDistributionResponse) GetBasePath() string { - if o == nil { - var ret string +// GetPulpLastUpdated returns the PulpLastUpdated field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time { + if o == nil || IsNil(o.PulpLastUpdated) { + var ret time.Time return ret } - - return o.BasePath + return *o.PulpLastUpdated } -// GetBasePathOk returns a tuple with the BasePath field value +// GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool) { - if o == nil { +func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpLastUpdated) { return nil, false } - return &o.BasePath, true + return o.PulpLastUpdated, true } -// SetBasePath sets field value -func (o *ArtifactDistributionResponse) SetBasePath(v string) { - o.BasePath = v +// HasPulpLastUpdated returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool { + if o != nil && !IsNil(o.PulpLastUpdated) { + return true + } + + return false +} + +// SetPulpLastUpdated gets a reference to the given time.Time and assigns it to the PulpLastUpdated field. +func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time) { + o.PulpLastUpdated = &v } // GetName returns the Name field value @@ -114,6 +122,38 @@ func (o *ArtifactDistributionResponse) SetName(v string) { o.Name = v } +// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetBaseUrl() string { + if o == nil || IsNil(o.BaseUrl) { + var ret string + return ret + } + return *o.BaseUrl +} + +// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseUrl) { + return nil, false + } + return o.BaseUrl, true +} + +// HasBaseUrl returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasBaseUrl() bool { + if o != nil && !IsNil(o.BaseUrl) { + return true + } + + return false +} + +// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. +func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { + o.BaseUrl = &v +} + // GetPulpHref returns the PulpHref field value if set, zero value otherwise. func (o *ArtifactDistributionResponse) GetPulpHref() string { if o == nil || IsNil(o.PulpHref) { @@ -146,36 +186,60 @@ func (o *ArtifactDistributionResponse) SetPulpHref(v string) { o.PulpHref = &v } -// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetBaseUrl() string { - if o == nil || IsNil(o.BaseUrl) { - var ret string +// GetHidden returns the Hidden field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetHidden() bool { + if o == nil || IsNil(o.Hidden) { + var ret bool return ret } - return *o.BaseUrl + return *o.Hidden } -// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise +// GetHiddenOk returns a tuple with the Hidden field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool) { - if o == nil || IsNil(o.BaseUrl) { +func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.Hidden) { return nil, false } - return o.BaseUrl, true + return o.Hidden, true } -// HasBaseUrl returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasBaseUrl() bool { - if o != nil && !IsNil(o.BaseUrl) { +// HasHidden returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasHidden() bool { + if o != nil && !IsNil(o.Hidden) { return true } return false } -// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. -func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { - o.BaseUrl = &v +// SetHidden gets a reference to the given bool and assigns it to the Hidden field. +func (o *ArtifactDistributionResponse) SetHidden(v bool) { + o.Hidden = &v +} + +// GetBasePath returns the BasePath field value +func (o *ArtifactDistributionResponse) GetBasePath() string { + if o == nil { + var ret string + return ret + } + + return o.BasePath +} + +// GetBasePathOk returns a tuple with the BasePath field value +// and a boolean to check if the value has been set. +func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BasePath, true +} + +// SetBasePath sets field value +func (o *ArtifactDistributionResponse) SetBasePath(v string) { + o.BasePath = v } // GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. @@ -284,70 +348,6 @@ func (o *ArtifactDistributionResponse) UnsetContentGuard() { o.ContentGuard.Unset() } -// GetHidden returns the Hidden field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetHidden() bool { - if o == nil || IsNil(o.Hidden) { - var ret bool - return ret - } - return *o.Hidden -} - -// GetHiddenOk returns a tuple with the Hidden field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool) { - if o == nil || IsNil(o.Hidden) { - return nil, false - } - return o.Hidden, true -} - -// HasHidden returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasHidden() bool { - if o != nil && !IsNil(o.Hidden) { - return true - } - - return false -} - -// SetHidden gets a reference to the given bool and assigns it to the Hidden field. -func (o *ArtifactDistributionResponse) SetHidden(v bool) { - o.Hidden = &v -} - -// GetPulpLastUpdated returns the PulpLastUpdated field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time { - if o == nil || IsNil(o.PulpLastUpdated) { - var ret time.Time - return ret - } - return *o.PulpLastUpdated -} - -// GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpLastUpdated) { - return nil, false - } - return o.PulpLastUpdated, true -} - -// HasPulpLastUpdated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool { - if o != nil && !IsNil(o.PulpLastUpdated) { - return true - } - - return false -} - -// SetPulpLastUpdated gets a reference to the given time.Time and assigns it to the PulpLastUpdated field. -func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time) { - o.PulpLastUpdated = &v -} - func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -358,14 +358,20 @@ func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { func (o ArtifactDistributionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["base_path"] = o.BasePath + if !IsNil(o.PulpLastUpdated) { + toSerialize["pulp_last_updated"] = o.PulpLastUpdated + } toSerialize["name"] = o.Name + if !IsNil(o.BaseUrl) { + toSerialize["base_url"] = o.BaseUrl + } if !IsNil(o.PulpHref) { toSerialize["pulp_href"] = o.PulpHref } - if !IsNil(o.BaseUrl) { - toSerialize["base_url"] = o.BaseUrl + if !IsNil(o.Hidden) { + toSerialize["hidden"] = o.Hidden } + toSerialize["base_path"] = o.BasePath if !IsNil(o.PulpLabels) { toSerialize["pulp_labels"] = o.PulpLabels } @@ -375,12 +381,6 @@ func (o ArtifactDistributionResponse) ToMap() (map[string]interface{}, error) { if o.ContentGuard.IsSet() { toSerialize["content_guard"] = o.ContentGuard.Get() } - if !IsNil(o.Hidden) { - toSerialize["hidden"] = o.Hidden - } - if !IsNil(o.PulpLastUpdated) { - toSerialize["pulp_last_updated"] = o.PulpLastUpdated - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -394,8 +394,8 @@ func (o *ArtifactDistributionResponse) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "base_path", "name", + "base_path", } allProperties := make(map[string]interface{}) @@ -425,15 +425,15 @@ func (o *ArtifactDistributionResponse) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "base_path") + delete(additionalProperties, "pulp_last_updated") delete(additionalProperties, "name") - delete(additionalProperties, "pulp_href") delete(additionalProperties, "base_url") + delete(additionalProperties, "pulp_href") + delete(additionalProperties, "hidden") + delete(additionalProperties, "base_path") delete(additionalProperties, "pulp_labels") delete(additionalProperties, "pulp_created") delete(additionalProperties, "content_guard") - delete(additionalProperties, "hidden") - delete(additionalProperties, "pulp_last_updated") o.AdditionalProperties = additionalProperties }