From b646509e0d6939a7198546a8ac57943e4fc00328 Mon Sep 17 00:00:00 2001 From: andrewgdewar Date: Fri, 9 Aug 2024 17:27:42 +0000 Subject: [PATCH] Update pulp bindings to 689d598a363629d8a5469d9b2a84745de39864037d356e3e82bb4a5edeb4224e --- release/README.md | 2 +- release/api/openapi.yaml | 46 ++-- release/configuration.go | 2 +- release/docs/ArtifactDistributionResponse.md | 160 ++++++------- .../model_artifact_distribution_response.go | 226 +++++++++--------- 5 files changed, 218 insertions(+), 218 deletions(-) diff --git a/release/README.md b/release/README.md index c4067bd..6c1bc9b 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: e69db48356e528a464be3da896237b8a2298890a7d54eb5892a9db36ae29d5a3 +- Package version: 689d598a363629d8a5469d9b2a84745de39864037d356e3e82bb4a5edeb4224e - 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 4f2e0a9..7968953 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -35849,18 +35849,13 @@ components: hidden: false pulp_labels: key: pulp_labels - name: name base_url: base_url - pulp_created: 2000-01-23T04:56:07.000+00:00 + name: name base_path: base_path + pulp_created: 2000-01-23T04:56:07.000+00:00 pulp_last_updated: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech properties: - pulp_created: - description: Timestamp of creation. - format: date-time - readOnly: true - type: string pulp_last_updated: description: "Timestamp of the last time this resource was updated. Note:\ \ for immutable resources - like content, repository versions, and publication\ @@ -35868,36 +35863,41 @@ components: format: date-time readOnly: true type: string - pulp_href: - format: uri - readOnly: true - type: string - 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 - name: - description: "A unique name. Ex, `rawhide` and `stable`." + pulp_created: + description: Timestamp of creation. + format: date-time + readOnly: true type: string - base_url: - description: The URL for accessing the publication as defined by this distribution. + pulp_href: + format: uri readOnly: true type: string + hidden: + default: false + description: Whether this distribution should be shown in the content app. + type: boolean pulp_labels: additionalProperties: nullable: true type: string type: object + base_url: + description: The URL for accessing the publication as defined by this distribution. + readOnly: true + type: string content_guard: description: An optional content-guard. format: uri nullable: true type: string + name: + description: "A unique name. Ex, `rawhide` and `stable`." + type: string required: - base_path - name @@ -37421,20 +37421,20 @@ components: hidden: false pulp_labels: key: pulp_labels - name: name base_url: base_url - pulp_created: 2000-01-23T04:56:07.000+00:00 + name: name base_path: base_path + pulp_created: 2000-01-23T04:56:07.000+00:00 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 - name: name base_url: base_url - pulp_created: 2000-01-23T04:56:07.000+00:00 + name: name base_path: base_path + pulp_created: 2000-01-23T04:56:07.000+00:00 pulp_last_updated: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech properties: diff --git a/release/configuration.go b/release/configuration.go index 07cb623..8dfd90b 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/e69db48356e528a464be3da896237b8a2298890a7d54eb5892a9db36ae29d5a3/go", + UserAgent: "OpenAPI-Generator/689d598a363629d8a5469d9b2a84745de39864037d356e3e82bb4a5edeb4224e/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index bfcdd62..a8a3bc0 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] **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] +**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\") | +**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [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\") | -**Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | -**BaseUrl** | Pointer to **string** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly] **PulpLabels** | Pointer to **map[string]string** | | [optional] +**BaseUrl** | Pointer to **string** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly] **ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] +**Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | ## Methods @@ -33,55 +33,75 @@ 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 -### GetPulpCreated +### GetPulpLastUpdated -`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` -GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. +GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. -### GetPulpCreatedOk +### GetPulpLastUpdatedOk -`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` -GetPulpCreatedOk returns a tuple with the PulpCreated 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. -### SetPulpCreated +### SetPulpLastUpdated -`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` +`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` -SetPulpCreated sets PulpCreated field to given value. +SetPulpLastUpdated sets PulpLastUpdated field to given value. -### HasPulpCreated +### HasPulpLastUpdated -`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` +`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` -HasPulpCreated returns a boolean if a field has been set. +HasPulpLastUpdated returns a boolean if a field has been set. -### GetPulpLastUpdated +### GetBasePath -`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` +`func (o *ArtifactDistributionResponse) GetBasePath() string` -GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. +GetBasePath returns the BasePath field if non-nil, zero value otherwise. -### GetPulpLastUpdatedOk +### GetBasePathOk -`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` +`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` -GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field if it's non-nil, zero value otherwise +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. -### SetPulpLastUpdated +### SetBasePath -`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` +`func (o *ArtifactDistributionResponse) SetBasePath(v string)` -SetPulpLastUpdated sets PulpLastUpdated field to given value. +SetBasePath sets BasePath field to given value. -### HasPulpLastUpdated -`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` +### GetPulpCreated -HasPulpLastUpdated returns a boolean if a field has been set. +`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` + +GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. + +### GetPulpCreatedOk + +`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` + +GetPulpCreatedOk returns a tuple with the PulpCreated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPulpCreated + +`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` + +SetPulpCreated sets PulpCreated field to given value. + +### HasPulpCreated + +`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` + +HasPulpCreated returns a boolean if a field has been set. ### GetPulpHref @@ -133,45 +153,30 @@ SetHidden sets Hidden field to given value. HasHidden returns a boolean if a field has been set. -### GetBasePath +### GetPulpLabels -`func (o *ArtifactDistributionResponse) GetBasePath() string` +`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` -GetBasePath returns the BasePath field if non-nil, zero value otherwise. +GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. -### GetBasePathOk +### GetPulpLabelsOk -`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` -GetBasePathOk returns a tuple with the BasePath field if it's non-nil, zero value otherwise +GetPulpLabelsOk returns a tuple with the PulpLabels 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. - - -### GetName - -`func (o *ArtifactDistributionResponse) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` +### SetPulpLabels -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` -### SetName +SetPulpLabels sets PulpLabels field to given value. -`func (o *ArtifactDistributionResponse) SetName(v string)` +### HasPulpLabels -SetName sets Name field to given value. +`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` +HasPulpLabels returns a boolean if a field has been set. ### GetBaseUrl @@ -198,31 +203,6 @@ SetBaseUrl sets BaseUrl field to given value. HasBaseUrl returns a boolean if a field has been set. -### GetPulpLabels - -`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` - -GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. - -### GetPulpLabelsOk - -`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` - -GetPulpLabelsOk returns a tuple with the PulpLabels field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPulpLabels - -`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` - -SetPulpLabels sets PulpLabels field to given value. - -### HasPulpLabels - -`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` - -HasPulpLabels returns a boolean if a field has been set. - ### GetContentGuard `func (o *ArtifactDistributionResponse) GetContentGuard() string` @@ -258,6 +238,26 @@ 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 +### GetName + +`func (o *ArtifactDistributionResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ArtifactDistributionResponse) SetName(v string)` + +SetName sets Name field to given value. + + [[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 9f08a75..1ecbfc9 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 { - // Timestamp of creation. - PulpCreated *time.Time `json:"pulp_created,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"` + // 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 creation. + PulpCreated *time.Time `json:"pulp_created,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"` - // A unique name. Ex, `rawhide` and `stable`. - Name string `json:"name"` + PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // The URL for accessing the publication as defined by this distribution. BaseUrl *string `json:"base_url,omitempty"` - PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // An optional content-guard. ContentGuard NullableString `json:"content_guard,omitempty"` + // A unique name. Ex, `rawhide` and `stable`. + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -49,9 +49,9 @@ type _ArtifactDistributionResponse ArtifactDistributionResponse // will change when the set of required properties is changed func NewArtifactDistributionResponse(basePath string, name string) *ArtifactDistributionResponse { this := ArtifactDistributionResponse{} + this.BasePath = basePath var hidden bool = false this.Hidden = &hidden - this.BasePath = basePath this.Name = name return &this } @@ -66,68 +66,92 @@ func NewArtifactDistributionResponseWithDefaults() *ArtifactDistributionResponse return &this } -// GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time { - if o == nil || IsNil(o.PulpCreated) { +// 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.PulpCreated + return *o.PulpLastUpdated } -// GetPulpCreatedOk returns a tuple with the PulpCreated field value if set, nil otherwise +// 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) GetPulpCreatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpCreated) { +func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpLastUpdated) { return nil, false } - return o.PulpCreated, true + return o.PulpLastUpdated, true } -// HasPulpCreated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpCreated() bool { - if o != nil && !IsNil(o.PulpCreated) { +// 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 } -// SetPulpCreated gets a reference to the given time.Time and assigns it to the PulpCreated field. -func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time) { - o.PulpCreated = &v +// 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 } -// GetPulpLastUpdated returns the PulpLastUpdated field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time { - if o == nil || IsNil(o.PulpLastUpdated) { +// 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 +} + +// GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time { + if o == nil || IsNil(o.PulpCreated) { var ret time.Time return ret } - return *o.PulpLastUpdated + return *o.PulpCreated } -// GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field value if set, nil otherwise +// GetPulpCreatedOk returns a tuple with the PulpCreated 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) { +func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpCreated) { return nil, false } - return o.PulpLastUpdated, true + return o.PulpCreated, true } -// HasPulpLastUpdated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool { - if o != nil && !IsNil(o.PulpLastUpdated) { +// HasPulpCreated returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasPulpCreated() bool { + if o != nil && !IsNil(o.PulpCreated) { 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 +// SetPulpCreated gets a reference to the given time.Time and assigns it to the PulpCreated field. +func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time) { + o.PulpCreated = &v } // GetPulpHref returns the PulpHref field value if set, zero value otherwise. @@ -194,52 +218,36 @@ 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 +// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string { + if o == nil || IsNil(o.PulpLabels) { + var ret map[string]string return ret } - - return o.BasePath + return *o.PulpLabels } -// GetBasePathOk returns a tuple with the BasePath field value +// GetPulpLabelsOk returns a tuple with the PulpLabels 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) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { return nil, false } - return &o.BasePath, true -} - -// SetBasePath sets field value -func (o *ArtifactDistributionResponse) SetBasePath(v string) { - o.BasePath = v + return o.PulpLabels, true } -// GetName returns the Name field value -func (o *ArtifactDistributionResponse) GetName() string { - if o == nil { - var ret string - return ret +// HasPulpLabels returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasPulpLabels() bool { + if o != nil && !IsNil(o.PulpLabels) { + return true } - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true + return false } -// SetName sets field value -func (o *ArtifactDistributionResponse) SetName(v string) { - o.Name = v +// SetPulpLabels gets a reference to the given map[string]string and assigns it to the PulpLabels field. +func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string) { + o.PulpLabels = &v } // GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. @@ -274,38 +282,6 @@ func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { o.BaseUrl = &v } -// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string { - if o == nil || IsNil(o.PulpLabels) { - var ret map[string]string - return ret - } - return *o.PulpLabels -} - -// GetPulpLabelsOk returns a tuple with the PulpLabels field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool) { - if o == nil || IsNil(o.PulpLabels) { - return nil, false - } - return o.PulpLabels, true -} - -// HasPulpLabels returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLabels() bool { - if o != nil && !IsNil(o.PulpLabels) { - return true - } - - return false -} - -// SetPulpLabels gets a reference to the given map[string]string and assigns it to the PulpLabels field. -func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string) { - o.PulpLabels = &v -} - // GetContentGuard returns the ContentGuard field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ArtifactDistributionResponse) GetContentGuard() string { if o == nil || IsNil(o.ContentGuard.Get()) { @@ -348,6 +324,30 @@ func (o *ArtifactDistributionResponse) UnsetContentGuard() { o.ContentGuard.Unset() } +// GetName returns the Name field value +func (o *ArtifactDistributionResponse) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ArtifactDistributionResponse) SetName(v string) { + o.Name = v +} + func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -358,29 +358,29 @@ func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { func (o ArtifactDistributionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.PulpCreated) { - toSerialize["pulp_created"] = o.PulpCreated - } if !IsNil(o.PulpLastUpdated) { toSerialize["pulp_last_updated"] = o.PulpLastUpdated } + toSerialize["base_path"] = o.BasePath + if !IsNil(o.PulpCreated) { + toSerialize["pulp_created"] = o.PulpCreated + } if !IsNil(o.PulpHref) { toSerialize["pulp_href"] = o.PulpHref } if !IsNil(o.Hidden) { toSerialize["hidden"] = o.Hidden } - toSerialize["base_path"] = o.BasePath - toSerialize["name"] = o.Name - if !IsNil(o.BaseUrl) { - toSerialize["base_url"] = o.BaseUrl - } if !IsNil(o.PulpLabels) { toSerialize["pulp_labels"] = o.PulpLabels } + if !IsNil(o.BaseUrl) { + toSerialize["base_url"] = o.BaseUrl + } if o.ContentGuard.IsSet() { toSerialize["content_guard"] = o.ContentGuard.Get() } + toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -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, "pulp_created") delete(additionalProperties, "pulp_last_updated") + delete(additionalProperties, "base_path") + delete(additionalProperties, "pulp_created") delete(additionalProperties, "pulp_href") delete(additionalProperties, "hidden") - delete(additionalProperties, "base_path") - delete(additionalProperties, "name") - delete(additionalProperties, "base_url") delete(additionalProperties, "pulp_labels") + delete(additionalProperties, "base_url") delete(additionalProperties, "content_guard") + delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties }