From eedd8adda33fea74c2cb24711fbe9a6888e51329 Mon Sep 17 00:00:00 2001 From: andrewgdewar Date: Tue, 12 Nov 2024 07:09:13 +0000 Subject: [PATCH] Update pulp bindings to b59d5a8be2d6a9584b32d696a45276486d3832127b8e3dae95843eb29436da38 --- release/README.md | 2 +- release/api/openapi.yaml | 66 ++-- release/configuration.go | 2 +- release/docs/ArtifactDistributionResponse.md | 244 ++++++------ .../model_artifact_distribution_response.go | 356 +++++++++--------- 5 files changed, 335 insertions(+), 335 deletions(-) diff --git a/release/README.md b/release/README.md index 8e3da9c..304d287 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: 689d598a363629d8a5469d9b2a84748e454ee8f37d356e3e82bb4a5edeb4224e +- Package version: b59d5a8be2d6a9584b32d696a45276486d3832127b8e3dae95843eb29436da38 - Generator version: 7.9.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 2c3bdd6..da793b3 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -39670,18 +39670,22 @@ 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 base_url: base_url - no_content_change_since: no_content_change_since name: name - base_path: base_path + no_content_change_since: no_content_change_since pulp_created: 2000-01-23T04:56:07.000+00:00 + base_path: base_path pulp_last_updated: 2000-01-23T04:56:07.000+00:00 prn: prn content_guard: https://openapi-generator.tech properties: + base_url: + description: The URL for accessing the publication as defined by this distribution. + 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\ @@ -39689,49 +39693,45 @@ components: format: date-time readOnly: true type: string - base_url: - description: The URL for accessing the publication as defined by this distribution. - readOnly: true + content_guard: + description: An optional content-guard. + format: uri + nullable: true type: string - prn: - description: The Pulp Resource Name (PRN). - readOnly: true + name: + description: "A unique name. Ex, `rawhide` and `stable`." 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." + pulp_created: + description: Timestamp of creation. + format: date-time readOnly: true type: string hidden: default: false description: Whether this distribution should be shown in the content app. type: boolean - pulp_href: - format: uri - readOnly: true - type: string - content_guard: - description: An optional content-guard. - format: uri - nullable: true - type: string pulp_labels: additionalProperties: nullable: true type: string type: object - name: - description: "A unique name. Ex, `rawhide` and `stable`." + prn: + description: The Pulp Resource Name (PRN). + readOnly: true + 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 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_created: - description: Timestamp of creation. - format: date-time + pulp_href: + format: uri readOnly: true type: string required: @@ -42318,26 +42318,26 @@ components: count: 123 results: - hidden: false - pulp_href: https://openapi-generator.tech pulp_labels: key: pulp_labels + pulp_href: https://openapi-generator.tech base_url: base_url - no_content_change_since: no_content_change_since name: name - base_path: base_path + no_content_change_since: no_content_change_since pulp_created: 2000-01-23T04:56:07.000+00:00 + base_path: base_path pulp_last_updated: 2000-01-23T04:56:07.000+00:00 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 base_url: base_url - no_content_change_since: no_content_change_since name: name - base_path: base_path + no_content_change_since: no_content_change_since pulp_created: 2000-01-23T04:56:07.000+00:00 + base_path: base_path pulp_last_updated: 2000-01-23T04:56:07.000+00:00 prn: prn content_guard: https://openapi-generator.tech diff --git a/release/configuration.go b/release/configuration.go index 37a51ec..8f4167d 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/689d598a363629d8a5469d9b2a84748e454ee8f37d356e3e82bb4a5edeb4224e/go", + UserAgent: "OpenAPI-Generator/b59d5a8be2d6a9584b32d696a45276486d3832127b8e3dae95843eb29436da38/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index fc51fc3..e23aae3 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,17 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**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] **BaseUrl** | Pointer to **string** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly] -**Prn** | Pointer to **string** | The Pulp Resource Name (PRN). | [optional] [readonly] -**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] -**Hidden** | Pointer to **bool** | Whether this distribution should be shown in the content app. | [optional] [default to false] -**PulpHref** | Pointer to **string** | | [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] **ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] -**PulpLabels** | Pointer to **map[string]string** | | [optional] **Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | -**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] +**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] +**Prn** | Pointer to **string** | The Pulp Resource Name (PRN). | [optional] [readonly] +**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] +**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\") | +**PulpHref** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -35,6 +35,31 @@ 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 +### 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. + ### GetPulpLastUpdated `func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` @@ -60,80 +85,85 @@ SetPulpLastUpdated sets PulpLastUpdated field to given value. HasPulpLastUpdated returns a boolean if a field has been set. -### GetBaseUrl +### GetContentGuard -`func (o *ArtifactDistributionResponse) GetBaseUrl() string` +`func (o *ArtifactDistributionResponse) GetContentGuard() string` -GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. +GetContentGuard returns the ContentGuard field if non-nil, zero value otherwise. -### GetBaseUrlOk +### GetContentGuardOk -`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool)` -GetBaseUrlOk returns a tuple with the BaseUrl field if it's non-nil, zero value otherwise +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. -### SetBaseUrl +### SetContentGuard -`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` +`func (o *ArtifactDistributionResponse) SetContentGuard(v string)` -SetBaseUrl sets BaseUrl field to given value. +SetContentGuard sets ContentGuard field to given value. -### HasBaseUrl +### HasContentGuard -`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` +`func (o *ArtifactDistributionResponse) HasContentGuard() bool` -HasBaseUrl returns a boolean if a field has been set. +HasContentGuard returns a boolean if a field has been set. -### GetPrn +### SetContentGuardNil -`func (o *ArtifactDistributionResponse) GetPrn() string` +`func (o *ArtifactDistributionResponse) SetContentGuardNil(b bool)` -GetPrn returns the Prn field if non-nil, zero value otherwise. + SetContentGuardNil sets the value for ContentGuard to be an explicit nil -### GetPrnOk +### UnsetContentGuard +`func (o *ArtifactDistributionResponse) UnsetContentGuard()` -`func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool)` +UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil +### GetName -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. +`func (o *ArtifactDistributionResponse) GetName() string` -### SetPrn +GetName returns the Name field if non-nil, zero value otherwise. -`func (o *ArtifactDistributionResponse) SetPrn(v string)` +### GetNameOk -SetPrn sets Prn field to given value. +`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` -### HasPrn +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) HasPrn() bool` +### SetName -HasPrn returns a boolean if a field has been set. +`func (o *ArtifactDistributionResponse) SetName(v string)` -### GetNoContentChangeSince +SetName sets Name field to given value. -`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` -GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. +### GetPulpCreated -### GetNoContentChangeSinceOk +`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` -`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` +GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. -GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince field if it's 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. -### SetNoContentChangeSince +### SetPulpCreated -`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` +`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` -SetNoContentChangeSince sets NoContentChangeSince field to given value. +SetPulpCreated sets PulpCreated field to given value. -### HasNoContentChangeSince +### HasPulpCreated -`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` +`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` -HasNoContentChangeSince returns a boolean if a field has been set. +HasPulpCreated returns a boolean if a field has been set. ### GetHidden @@ -160,110 +190,80 @@ SetHidden sets Hidden field to given value. HasHidden returns a boolean if a field has been set. -### GetPulpHref +### GetPulpLabels -`func (o *ArtifactDistributionResponse) GetPulpHref() string` +`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` -GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. +GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. -### GetPulpHrefOk +### GetPulpLabelsOk -`func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` -GetPulpHrefOk returns a tuple with the PulpHref 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. -### SetPulpHref +### SetPulpLabels -`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` +`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` -SetPulpHref sets PulpHref field to given value. +SetPulpLabels sets PulpLabels field to given value. -### HasPulpHref +### HasPulpLabels -`func (o *ArtifactDistributionResponse) HasPulpHref() bool` +`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` -HasPulpHref returns a boolean if a field has been set. +HasPulpLabels returns a boolean if a field has been set. -### GetContentGuard +### GetPrn -`func (o *ArtifactDistributionResponse) GetContentGuard() string` +`func (o *ArtifactDistributionResponse) GetPrn() string` -GetContentGuard returns the ContentGuard field if non-nil, zero value otherwise. +GetPrn returns the Prn field if non-nil, zero value otherwise. -### GetContentGuardOk +### GetPrnOk -`func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool)` -GetContentGuardOk returns a tuple with the ContentGuard 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. -### SetContentGuard - -`func (o *ArtifactDistributionResponse) SetContentGuard(v string)` - -SetContentGuard sets ContentGuard field to given value. - -### HasContentGuard - -`func (o *ArtifactDistributionResponse) HasContentGuard() bool` +### SetPrn -HasContentGuard returns a boolean if a field has been set. +`func (o *ArtifactDistributionResponse) SetPrn(v string)` -### SetContentGuardNil +SetPrn sets Prn field to given value. -`func (o *ArtifactDistributionResponse) SetContentGuardNil(b bool)` +### HasPrn - SetContentGuardNil sets the value for ContentGuard to be an explicit nil +`func (o *ArtifactDistributionResponse) HasPrn() bool` -### UnsetContentGuard -`func (o *ArtifactDistributionResponse) UnsetContentGuard()` +HasPrn returns a boolean if a field has been set. -UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil -### GetPulpLabels +### GetNoContentChangeSince -`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` +`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` -GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. +GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. -### GetPulpLabelsOk +### GetNoContentChangeSinceOk -`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` +`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` -GetPulpLabelsOk returns a tuple with the PulpLabels 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. -### 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. - -### GetName - -`func (o *ArtifactDistributionResponse) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` +### SetNoContentChangeSince -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) SetNoContentChangeSince(v string)` -### SetName +SetNoContentChangeSince sets NoContentChangeSince field to given value. -`func (o *ArtifactDistributionResponse) SetName(v string)` +### HasNoContentChangeSince -SetName sets Name field to given value. +`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` +HasNoContentChangeSince returns a boolean if a field has been set. ### GetBasePath @@ -285,30 +285,30 @@ and a boolean to check if the value has been set. SetBasePath sets BasePath field to given value. -### GetPulpCreated +### GetPulpHref -`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` +`func (o *ArtifactDistributionResponse) GetPulpHref() string` -GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. +GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. -### GetPulpCreatedOk +### GetPulpHrefOk -`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` +`func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool)` -GetPulpCreatedOk returns a tuple with the PulpCreated field if it's non-nil, zero value otherwise +GetPulpHrefOk returns a tuple with the PulpHref field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPulpCreated +### SetPulpHref -`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` +`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` -SetPulpCreated sets PulpCreated field to given value. +SetPulpHref sets PulpHref field to given value. -### HasPulpCreated +### HasPulpHref -`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` +`func (o *ArtifactDistributionResponse) HasPulpHref() bool` -HasPulpCreated returns a boolean if a field has been set. +HasPulpHref 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 d6d173c..10edf13 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 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 URL for accessing the publication as defined by this distribution. BaseUrl *string `json:"base_url,omitempty"` - // The Pulp Resource Name (PRN). - Prn *string `json:"prn,omitempty"` - // 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"` - // Whether this distribution should be shown in the content app. - Hidden *bool `json:"hidden,omitempty"` - PulpHref *string `json:"pulp_href,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"` // An optional content-guard. ContentGuard NullableString `json:"content_guard,omitempty"` - PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // A unique name. Ex, `rawhide` and `stable`. Name string `json:"name"` - // 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"` + // Whether this distribution should be shown in the content app. + Hidden *bool `json:"hidden,omitempty"` + PulpLabels *map[string]string `json:"pulp_labels,omitempty"` + // The Pulp Resource Name (PRN). + Prn *string `json:"prn,omitempty"` + // 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 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"` + PulpHref *string `json:"pulp_href,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,9 +53,9 @@ type _ArtifactDistributionResponse ArtifactDistributionResponse // will change when the set of required properties is changed func NewArtifactDistributionResponse(name string, basePath string) *ArtifactDistributionResponse { this := ArtifactDistributionResponse{} + this.Name = name var hidden bool = false this.Hidden = &hidden - this.Name = name this.BasePath = basePath return &this } @@ -70,6 +70,38 @@ func NewArtifactDistributionResponseWithDefaults() *ArtifactDistributionResponse return &this } +// 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 +} + // GetPulpLastUpdated returns the PulpLastUpdated field value if set, zero value otherwise. func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time { if o == nil || IsNil(o.PulpLastUpdated) { @@ -102,100 +134,102 @@ func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time) { o.PulpLastUpdated = &v } -// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetBaseUrl() string { - if o == nil || IsNil(o.BaseUrl) { +// 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.BaseUrl + return *o.ContentGuard.Get() } -// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise +// GetContentGuardOk returns a tuple with the ContentGuard 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) { +// 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.BaseUrl, true + return o.ContentGuard.Get(), o.ContentGuard.IsSet() } -// HasBaseUrl returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasBaseUrl() bool { - if o != nil && !IsNil(o.BaseUrl) { +// 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 } -// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. -func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { - o.BaseUrl = &v +// 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) } -// GetPrn returns the Prn field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPrn() string { - if o == nil || IsNil(o.Prn) { +// UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil +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.Prn + + return o.Name } -// GetPrnOk returns a tuple with the Prn field value if set, nil otherwise +// GetNameOk returns a tuple with the Name field value // 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) GetNameOk() (*string, bool) { + if o == nil { return nil, false } - return o.Prn, true -} - -// 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 + return &o.Name, true } -// SetPrn gets a reference to the given string and assigns it to the Prn field. -func (o *ArtifactDistributionResponse) SetPrn(v string) { - o.Prn = &v +// SetName sets field value +func (o *ArtifactDistributionResponse) SetName(v string) { + o.Name = v } -// 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 +// 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.NoContentChangeSince + return *o.PulpCreated } -// GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince 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) GetNoContentChangeSinceOk() (*string, bool) { - if o == nil || IsNil(o.NoContentChangeSince) { +func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpCreated) { return nil, false } - return o.NoContentChangeSince, true + return o.PulpCreated, true } -// HasNoContentChangeSince returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool { - if o != nil && !IsNil(o.NoContentChangeSince) { +// 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 } -// SetNoContentChangeSince gets a reference to the given string and assigns it to the NoContentChangeSince field. -func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { - o.NoContentChangeSince = &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 } // GetHidden returns the Hidden field value if set, zero value otherwise. @@ -230,134 +264,100 @@ func (o *ArtifactDistributionResponse) SetHidden(v bool) { o.Hidden = &v } -// GetPulpHref returns the PulpHref field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpHref() string { - if o == nil || IsNil(o.PulpHref) { - 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.PulpHref + return *o.PulpLabels } -// GetPulpHrefOk returns a tuple with the PulpHref 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. -func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool) { - if o == nil || IsNil(o.PulpHref) { +func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { return nil, false } - return o.PulpHref, true + return o.PulpLabels, true } -// HasPulpHref returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpHref() bool { - if o != nil && !IsNil(o.PulpHref) { +// 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 } -// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. -func (o *ArtifactDistributionResponse) SetPulpHref(v string) { - o.PulpHref = &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 } -// 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()) { +// 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.ContentGuard.Get() + return *o.Prn } -// GetContentGuardOk returns a tuple with the ContentGuard 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. -// 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) GetPrnOk() (*string, bool) { + if o == nil || IsNil(o.Prn) { return nil, false } - return o.ContentGuard.Get(), o.ContentGuard.IsSet() + return o.Prn, true } -// HasContentGuard returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasContentGuard() bool { - if o != nil && o.ContentGuard.IsSet() { +// 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 } -// 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() +// SetPrn gets a reference to the given string and assigns it to the Prn field. +func (o *ArtifactDistributionResponse) SetPrn(v string) { + o.Prn = &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 +// 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.PulpLabels + return *o.NoContentChangeSince } -// GetPulpLabelsOk returns a tuple with the PulpLabels 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) GetPulpLabelsOk() (*map[string]string, bool) { - if o == nil || IsNil(o.PulpLabels) { +func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool) { + if o == nil || IsNil(o.NoContentChangeSince) { return nil, false } - return o.PulpLabels, true + return o.NoContentChangeSince, true } -// HasPulpLabels returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLabels() bool { - if o != nil && !IsNil(o.PulpLabels) { +// 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 } -// 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 -} - -// 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 +// SetNoContentChangeSince gets a reference to the given string and assigns it to the NoContentChangeSince field. +func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { + o.NoContentChangeSince = &v } // GetBasePath returns the BasePath field value @@ -384,36 +384,36 @@ 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 +// GetPulpHref returns the PulpHref field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPulpHref() string { + if o == nil || IsNil(o.PulpHref) { + var ret string return ret } - return *o.PulpCreated + return *o.PulpHref } -// GetPulpCreatedOk returns a tuple with the PulpCreated field value if set, nil otherwise +// GetPulpHrefOk returns a tuple with the PulpHref 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) GetPulpHrefOk() (*string, bool) { + if o == nil || IsNil(o.PulpHref) { return nil, false } - return o.PulpCreated, true + return o.PulpHref, true } -// HasPulpCreated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpCreated() bool { - if o != nil && !IsNil(o.PulpCreated) { +// HasPulpHref returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasPulpHref() bool { + if o != nil && !IsNil(o.PulpHref) { 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 +// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. +func (o *ArtifactDistributionResponse) SetPulpHref(v string) { + o.PulpHref = &v } func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { @@ -426,34 +426,34 @@ func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { func (o ArtifactDistributionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.PulpLastUpdated) { - toSerialize["pulp_last_updated"] = o.PulpLastUpdated - } if !IsNil(o.BaseUrl) { toSerialize["base_url"] = o.BaseUrl } - if !IsNil(o.Prn) { - toSerialize["prn"] = o.Prn + if !IsNil(o.PulpLastUpdated) { + toSerialize["pulp_last_updated"] = o.PulpLastUpdated } - if !IsNil(o.NoContentChangeSince) { - toSerialize["no_content_change_since"] = o.NoContentChangeSince + if o.ContentGuard.IsSet() { + toSerialize["content_guard"] = o.ContentGuard.Get() + } + toSerialize["name"] = o.Name + if !IsNil(o.PulpCreated) { + toSerialize["pulp_created"] = o.PulpCreated } if !IsNil(o.Hidden) { toSerialize["hidden"] = o.Hidden } - if !IsNil(o.PulpHref) { - toSerialize["pulp_href"] = o.PulpHref - } - if o.ContentGuard.IsSet() { - toSerialize["content_guard"] = o.ContentGuard.Get() - } if !IsNil(o.PulpLabels) { toSerialize["pulp_labels"] = o.PulpLabels } - toSerialize["name"] = o.Name + if !IsNil(o.Prn) { + toSerialize["prn"] = o.Prn + } + if !IsNil(o.NoContentChangeSince) { + toSerialize["no_content_change_since"] = o.NoContentChangeSince + } toSerialize["base_path"] = o.BasePath - if !IsNil(o.PulpCreated) { - toSerialize["pulp_created"] = o.PulpCreated + if !IsNil(o.PulpHref) { + toSerialize["pulp_href"] = o.PulpHref } for key, value := range o.AdditionalProperties { @@ -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, "pulp_last_updated") delete(additionalProperties, "base_url") - delete(additionalProperties, "prn") - delete(additionalProperties, "no_content_change_since") - delete(additionalProperties, "hidden") - delete(additionalProperties, "pulp_href") + delete(additionalProperties, "pulp_last_updated") delete(additionalProperties, "content_guard") - delete(additionalProperties, "pulp_labels") delete(additionalProperties, "name") - delete(additionalProperties, "base_path") delete(additionalProperties, "pulp_created") + delete(additionalProperties, "hidden") + delete(additionalProperties, "pulp_labels") + delete(additionalProperties, "prn") + delete(additionalProperties, "no_content_change_since") + delete(additionalProperties, "base_path") + delete(additionalProperties, "pulp_href") o.AdditionalProperties = additionalProperties }