diff --git a/release/README.md b/release/README.md index 2fe1b05..4603ecc 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: 9258456e9d3b4a85d3e54836d2b9793a9955a3c37ae5486b92ad2e96ab328e64 +- Package version: 9258456e9d3b4a85d3e54836d2b979332ee326c37ae5486b92ad2e96ab328e64 - Generator version: 7.10.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 0ce3a91..21e3edc 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -39670,9 +39670,9 @@ components: description: A serializer for ArtifactDistribution. example: hidden: false + pulp_href: https://openapi-generator.tech pulp_labels: key: pulp_labels - pulp_href: https://openapi-generator.tech no_content_change_since: no_content_change_since name: name base_url: base_url @@ -39682,26 +39682,19 @@ components: prn: prn content_guard: https://openapi-generator.tech properties: - no_content_change_since: - description: "Timestamp since when the distributed content served by this\ - \ distribution has not changed. If equals to `null`, no guarantee is provided\ - \ about content changes." + prn: + description: The Pulp Resource Name (PRN). readOnly: true type: string + content_guard: + description: An optional content-guard. + format: uri + nullable: 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_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_last_updated: description: "Timestamp of the last time this resource was updated. Note:\ \ for immutable resources - like content, repository versions, and publication\ @@ -39709,6 +39702,17 @@ components: format: date-time readOnly: true type: string + 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 + no_content_change_since: + description: "Timestamp since when the distributed content served by this\ + \ distribution has not changed. If equals to `null`, no guarantee is provided\ + \ about content changes." + readOnly: true + type: string pulp_created: description: Timestamp of creation. format: date-time @@ -39721,19 +39725,15 @@ components: name: description: "A unique name. Ex, `rawhide` and `stable`." type: string + 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 - prn: - description: The Pulp Resource Name (PRN). - readOnly: true - type: string required: - base_path - name @@ -42318,9 +42318,9 @@ components: count: 123 results: - hidden: false + pulp_href: https://openapi-generator.tech pulp_labels: key: pulp_labels - pulp_href: https://openapi-generator.tech no_content_change_since: no_content_change_since name: name base_url: base_url @@ -42330,9 +42330,9 @@ components: prn: prn content_guard: https://openapi-generator.tech - hidden: false + pulp_href: https://openapi-generator.tech pulp_labels: key: pulp_labels - pulp_href: https://openapi-generator.tech no_content_change_since: no_content_change_since name: name base_url: base_url diff --git a/release/configuration.go b/release/configuration.go index b18b46c..6aac5fd 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/9258456e9d3b4a85d3e54836d2b9793a9955a3c37ae5486b92ad2e96ab328e64/go", + UserAgent: "OpenAPI-Generator/9258456e9d3b4a85d3e54836d2b979332ee326c37ae5486b92ad2e96ab328e64/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index ed61d7f..0cabda4 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,17 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NoContentChangeSince** | Pointer to **string** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional] [readonly] +**Prn** | Pointer to **string** | The Pulp Resource Name (PRN). | [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] -**PulpLabels** | Pointer to **map[string]string** | | [optional] -**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] +**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\") | +**NoContentChangeSince** | Pointer to **string** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional] [readonly] **PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] **PulpHref** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | +**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] -**Prn** | Pointer to **string** | The Pulp Resource Name (PRN). | [optional] [readonly] ## Methods @@ -35,31 +35,66 @@ 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 -### GetNoContentChangeSince +### GetPrn -`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` +`func (o *ArtifactDistributionResponse) GetPrn() string` -GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. +GetPrn returns the Prn field if non-nil, zero value otherwise. -### GetNoContentChangeSinceOk +### GetPrnOk -`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool)` -GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince field if it's non-nil, zero value otherwise +GetPrnOk returns a tuple with the Prn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetNoContentChangeSince +### SetPrn -`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` +`func (o *ArtifactDistributionResponse) SetPrn(v string)` -SetNoContentChangeSince sets NoContentChangeSince field to given value. +SetPrn sets Prn field to given value. -### HasNoContentChangeSince +### HasPrn -`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` +`func (o *ArtifactDistributionResponse) HasPrn() bool` -HasNoContentChangeSince returns a boolean if a field has been set. +HasPrn returns a boolean if a field has been set. + +### GetContentGuard + +`func (o *ArtifactDistributionResponse) GetContentGuard() string` + +GetContentGuard returns the ContentGuard field if non-nil, zero value otherwise. + +### GetContentGuardOk + +`func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool)` + +GetContentGuardOk returns a tuple with the ContentGuard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentGuard + +`func (o *ArtifactDistributionResponse) SetContentGuard(v string)` + +SetContentGuard sets ContentGuard field to given value. + +### HasContentGuard + +`func (o *ArtifactDistributionResponse) HasContentGuard() bool` + +HasContentGuard returns a boolean if a field has been set. + +### SetContentGuardNil + +`func (o *ArtifactDistributionResponse) SetContentGuardNil(b bool)` + SetContentGuardNil sets the value for ContentGuard to be an explicit nil + +### UnsetContentGuard +`func (o *ArtifactDistributionResponse) UnsetContentGuard()` + +UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil ### GetHidden `func (o *ArtifactDistributionResponse) GetHidden() bool` @@ -85,30 +120,30 @@ SetHidden sets Hidden field to given value. HasHidden returns a boolean if a field has been set. -### GetPulpLabels +### GetPulpLastUpdated -`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` -GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. +GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. -### GetPulpLabelsOk +### GetPulpLastUpdatedOk -`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` -GetPulpLabelsOk returns a tuple with the PulpLabels 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. -### SetPulpLabels +### SetPulpLastUpdated -`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` +`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` -SetPulpLabels sets PulpLabels field to given value. +SetPulpLastUpdated sets PulpLastUpdated field to given value. -### HasPulpLabels +### HasPulpLastUpdated -`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` +`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` -HasPulpLabels returns a boolean if a field has been set. +HasPulpLastUpdated returns a boolean if a field has been set. ### GetBasePath @@ -130,30 +165,30 @@ and a boolean to check if the value has been set. SetBasePath sets BasePath field to given value. -### GetPulpLastUpdated +### GetNoContentChangeSince -`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` +`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` -GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. +GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. -### GetPulpLastUpdatedOk +### GetNoContentChangeSinceOk -`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` +`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` -GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field if it's non-nil, zero value otherwise +GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPulpLastUpdated +### SetNoContentChangeSince -`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` +`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` -SetPulpLastUpdated sets PulpLastUpdated field to given value. +SetNoContentChangeSince sets NoContentChangeSince field to given value. -### HasPulpLastUpdated +### HasNoContentChangeSince -`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` +`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` -HasPulpLastUpdated returns a boolean if a field has been set. +HasNoContentChangeSince returns a boolean if a field has been set. ### GetPulpCreated @@ -225,90 +260,55 @@ 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. - -### GetContentGuard +### GetPulpLabels -`func (o *ArtifactDistributionResponse) GetContentGuard() string` +`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` -GetContentGuard returns the ContentGuard field if non-nil, zero value otherwise. +GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. -### GetContentGuardOk +### GetPulpLabelsOk -`func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` -GetContentGuardOk returns a tuple with the ContentGuard 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. -### SetContentGuard - -`func (o *ArtifactDistributionResponse) SetContentGuard(v string)` - -SetContentGuard sets ContentGuard field to given value. - -### HasContentGuard - -`func (o *ArtifactDistributionResponse) HasContentGuard() bool` +### SetPulpLabels -HasContentGuard returns a boolean if a field has been set. +`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` -### SetContentGuardNil +SetPulpLabels sets PulpLabels field to given value. -`func (o *ArtifactDistributionResponse) SetContentGuardNil(b bool)` +### HasPulpLabels - SetContentGuardNil sets the value for ContentGuard to be an explicit nil +`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` -### UnsetContentGuard -`func (o *ArtifactDistributionResponse) UnsetContentGuard()` +HasPulpLabels returns a boolean if a field has been set. -UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil -### GetPrn +### GetBaseUrl -`func (o *ArtifactDistributionResponse) GetPrn() string` +`func (o *ArtifactDistributionResponse) GetBaseUrl() string` -GetPrn returns the Prn field if non-nil, zero value otherwise. +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. -### GetPrnOk +### GetBaseUrlOk -`func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` -GetPrnOk returns a tuple with the Prn field if it's non-nil, zero value otherwise +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. -### SetPrn +### SetBaseUrl -`func (o *ArtifactDistributionResponse) SetPrn(v string)` +`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` -SetPrn sets Prn field to given value. +SetBaseUrl sets BaseUrl field to given value. -### HasPrn +### HasBaseUrl -`func (o *ArtifactDistributionResponse) HasPrn() bool` +`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` -HasPrn returns a boolean if a field has been set. +HasBaseUrl 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 8fd3615..5f277ac 100644 --- a/release/model_artifact_distribution_response.go +++ b/release/model_artifact_distribution_response.go @@ -22,26 +22,26 @@ var _ MappedNullable = &ArtifactDistributionResponse{} // ArtifactDistributionResponse A serializer for ArtifactDistribution. type ArtifactDistributionResponse struct { - // Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. - NoContentChangeSince *string `json:"no_content_change_since,omitempty"` + // The Pulp Resource Name (PRN). + Prn *string `json:"prn,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"` - PulpLabels *map[string]string `json:"pulp_labels,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 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 since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. + NoContentChangeSince *string `json:"no_content_change_since,omitempty"` // Timestamp of creation. PulpCreated *time.Time `json:"pulp_created,omitempty"` PulpHref *string `json:"pulp_href,omitempty"` // 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"` - // An optional content-guard. - ContentGuard NullableString `json:"content_guard,omitempty"` - // The Pulp Resource Name (PRN). - Prn *string `json:"prn,omitempty"` AdditionalProperties map[string]interface{} } @@ -70,36 +70,78 @@ func NewArtifactDistributionResponseWithDefaults() *ArtifactDistributionResponse return &this } -// GetNoContentChangeSince returns the NoContentChangeSince field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string { - if o == nil || IsNil(o.NoContentChangeSince) { +// GetPrn returns the Prn field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPrn() string { + if o == nil || IsNil(o.Prn) { var ret string return ret } - return *o.NoContentChangeSince + return *o.Prn } -// GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince field value if set, nil otherwise +// GetPrnOk returns a tuple with the Prn field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool) { - if o == nil || IsNil(o.NoContentChangeSince) { +func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool) { + if o == nil || IsNil(o.Prn) { return nil, false } - return o.NoContentChangeSince, true + return o.Prn, true } -// HasNoContentChangeSince returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool { - if o != nil && !IsNil(o.NoContentChangeSince) { +// HasPrn returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasPrn() bool { + if o != nil && !IsNil(o.Prn) { return true } return false } -// SetNoContentChangeSince gets a reference to the given string and assigns it to the NoContentChangeSince field. -func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { - o.NoContentChangeSince = &v +// SetPrn gets a reference to the given string and assigns it to the Prn field. +func (o *ArtifactDistributionResponse) SetPrn(v string) { + o.Prn = &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()) { + var ret string + return ret + } + return *o.ContentGuard.Get() +} + +// GetContentGuardOk returns a tuple with the ContentGuard field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ContentGuard.Get(), o.ContentGuard.IsSet() +} + +// HasContentGuard returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasContentGuard() bool { + if o != nil && o.ContentGuard.IsSet() { + return true + } + + return false +} + +// SetContentGuard gets a reference to the given NullableString and assigns it to the ContentGuard field. +func (o *ArtifactDistributionResponse) SetContentGuard(v string) { + o.ContentGuard.Set(&v) +} +// SetContentGuardNil sets the value for ContentGuard to be an explicit nil +func (o *ArtifactDistributionResponse) SetContentGuardNil() { + o.ContentGuard.Set(nil) +} + +// UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil +func (o *ArtifactDistributionResponse) UnsetContentGuard() { + o.ContentGuard.Unset() } // GetHidden returns the Hidden field value if set, zero value otherwise. @@ -134,36 +176,36 @@ func (o *ArtifactDistributionResponse) SetHidden(v bool) { o.Hidden = &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 +// 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.PulpLabels + return *o.PulpLastUpdated } -// GetPulpLabelsOk returns a tuple with the PulpLabels 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) GetPulpLabelsOk() (*map[string]string, bool) { - if o == nil || IsNil(o.PulpLabels) { +func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpLastUpdated) { return nil, false } - return o.PulpLabels, true + return o.PulpLastUpdated, true } -// HasPulpLabels returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLabels() bool { - if o != nil && !IsNil(o.PulpLabels) { +// 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 } -// 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 +// 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 } // GetBasePath returns the BasePath field value @@ -190,36 +232,36 @@ func (o *ArtifactDistributionResponse) SetBasePath(v string) { o.BasePath = 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 +// GetNoContentChangeSince returns the NoContentChangeSince field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string { + if o == nil || IsNil(o.NoContentChangeSince) { + var ret string return ret } - return *o.PulpLastUpdated + return *o.NoContentChangeSince } -// GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field value if set, nil otherwise +// GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince 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) GetNoContentChangeSinceOk() (*string, bool) { + if o == nil || IsNil(o.NoContentChangeSince) { return nil, false } - return o.PulpLastUpdated, true + return o.NoContentChangeSince, true } -// HasPulpLastUpdated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool { - if o != nil && !IsNil(o.PulpLastUpdated) { +// HasNoContentChangeSince returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool { + if o != nil && !IsNil(o.NoContentChangeSince) { 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 +// SetNoContentChangeSince gets a reference to the given string and assigns it to the NoContentChangeSince field. +func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { + o.NoContentChangeSince = &v } // GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. @@ -310,110 +352,68 @@ 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 -} - -// 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()) { - 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.ContentGuard.Get() + return *o.PulpLabels } -// GetContentGuardOk returns a tuple with the ContentGuard field value if set, nil otherwise +// GetPulpLabelsOk returns a tuple with the PulpLabels field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool) { - if o == nil { +func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { return nil, false } - return o.ContentGuard.Get(), o.ContentGuard.IsSet() + return o.PulpLabels, true } -// HasContentGuard returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasContentGuard() bool { - if o != nil && o.ContentGuard.IsSet() { +// 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 } -// SetContentGuard gets a reference to the given NullableString and assigns it to the ContentGuard field. -func (o *ArtifactDistributionResponse) SetContentGuard(v string) { - o.ContentGuard.Set(&v) -} -// SetContentGuardNil sets the value for ContentGuard to be an explicit nil -func (o *ArtifactDistributionResponse) SetContentGuardNil() { - o.ContentGuard.Set(nil) -} - -// UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil -func (o *ArtifactDistributionResponse) UnsetContentGuard() { - o.ContentGuard.Unset() +// 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 } -// GetPrn returns the Prn field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPrn() string { - if o == nil || IsNil(o.Prn) { +// 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.Prn + return *o.BaseUrl } -// GetPrnOk returns a tuple with the Prn field value if set, nil otherwise +// 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) GetPrnOk() (*string, bool) { - if o == nil || IsNil(o.Prn) { +func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseUrl) { return nil, false } - return o.Prn, true + return o.BaseUrl, true } -// HasPrn returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPrn() bool { - if o != nil && !IsNil(o.Prn) { +// 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 } -// SetPrn gets a reference to the given string and assigns it to the Prn field. -func (o *ArtifactDistributionResponse) SetPrn(v string) { - o.Prn = &v +// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. +func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { + o.BaseUrl = &v } func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { @@ -426,19 +426,22 @@ func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { func (o ArtifactDistributionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.NoContentChangeSince) { - toSerialize["no_content_change_since"] = o.NoContentChangeSince + if !IsNil(o.Prn) { + toSerialize["prn"] = o.Prn + } + if o.ContentGuard.IsSet() { + toSerialize["content_guard"] = o.ContentGuard.Get() } if !IsNil(o.Hidden) { toSerialize["hidden"] = o.Hidden } - if !IsNil(o.PulpLabels) { - toSerialize["pulp_labels"] = o.PulpLabels - } - toSerialize["base_path"] = o.BasePath if !IsNil(o.PulpLastUpdated) { toSerialize["pulp_last_updated"] = o.PulpLastUpdated } + toSerialize["base_path"] = o.BasePath + if !IsNil(o.NoContentChangeSince) { + toSerialize["no_content_change_since"] = o.NoContentChangeSince + } if !IsNil(o.PulpCreated) { toSerialize["pulp_created"] = o.PulpCreated } @@ -446,15 +449,12 @@ func (o ArtifactDistributionResponse) ToMap() (map[string]interface{}, error) { toSerialize["pulp_href"] = o.PulpHref } toSerialize["name"] = o.Name + 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() - } - if !IsNil(o.Prn) { - toSerialize["prn"] = o.Prn - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -499,17 +499,17 @@ func (o *ArtifactDistributionResponse) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "no_content_change_since") + delete(additionalProperties, "prn") + delete(additionalProperties, "content_guard") delete(additionalProperties, "hidden") - delete(additionalProperties, "pulp_labels") - delete(additionalProperties, "base_path") delete(additionalProperties, "pulp_last_updated") + delete(additionalProperties, "base_path") + delete(additionalProperties, "no_content_change_since") delete(additionalProperties, "pulp_created") delete(additionalProperties, "pulp_href") delete(additionalProperties, "name") + delete(additionalProperties, "pulp_labels") delete(additionalProperties, "base_url") - delete(additionalProperties, "content_guard") - delete(additionalProperties, "prn") o.AdditionalProperties = additionalProperties }