From d7905d6d163038c9fbceabfa7be321c56b06f1be Mon Sep 17 00:00:00 2001 From: andrewgdewar Date: Thu, 14 Nov 2024 07:09:38 +0000 Subject: [PATCH] Update pulp bindings to 689d598a363629d8a5469d9b2a84748d89b39df37d356e3e82bb4a5edeb4224e --- release/README.md | 2 +- release/api/openapi.yaml | 80 ++-- release/configuration.go | 2 +- release/docs/ArtifactDistributionResponse.md | 266 ++++++------ .../model_artifact_distribution_response.go | 390 +++++++++--------- 5 files changed, 370 insertions(+), 370 deletions(-) diff --git a/release/README.md b/release/README.md index 9db8a94..203b0cf 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: de5624ba39358ba4ba962535e4a97224e2de43f57bd286834eded962856ed39a +- Package version: 689d598a363629d8a5469d9b2a84748d89b39df37d356e3e82bb4a5edeb4224e - 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 5dafb8c..df681b2 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -39669,37 +39669,19 @@ components: ArtifactDistributionResponse: description: A serializer for ArtifactDistribution. example: - hidden: false pulp_href: https://openapi-generator.tech + hidden: false pulp_labels: key: pulp_labels - no_content_change_since: no_content_change_since - base_url: base_url name: name + base_url: base_url + 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: - 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 - hidden: - default: false - description: Whether this distribution should be shown in the content app. - type: boolean - base_url: - description: The URL for accessing the publication as defined by this distribution. - readOnly: true - type: string - pulp_href: - format: uri - readOnly: true - type: string pulp_last_updated: description: "Timestamp of the last time this resource was updated. Note:\ \ for immutable resources - like content, repository versions, and publication\ @@ -39707,31 +39689,49 @@ components: format: date-time readOnly: true type: string - pulp_created: - description: Timestamp of creation. - format: date-time + pulp_href: + format: uri readOnly: true type: string - name: - description: "A unique name. Ex, `rawhide` and `stable`." + hidden: + default: false + description: Whether this distribution should be shown in the content app. + type: boolean + prn: + description: The Pulp Resource Name (PRN). + 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 - content_guard: - description: An optional content-guard. - format: uri - nullable: true + name: + description: "A unique name. Ex, `rawhide` and `stable`." + type: string + pulp_created: + description: Timestamp of creation. + 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 - prn: - description: The Pulp Resource Name (PRN). + base_url: + description: The URL for accessing the publication as defined by this distribution. + 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 required: @@ -42317,25 +42317,25 @@ components: previous: http://api.example.org/accounts/?offset=200&limit=100 count: 123 results: - - hidden: false - pulp_href: https://openapi-generator.tech + - pulp_href: https://openapi-generator.tech + hidden: false pulp_labels: key: pulp_labels - no_content_change_since: no_content_change_since - base_url: base_url name: name + base_url: base_url + 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_href: https://openapi-generator.tech + hidden: false pulp_labels: key: pulp_labels - no_content_change_since: no_content_change_since - base_url: base_url name: name + base_url: base_url + 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 diff --git a/release/configuration.go b/release/configuration.go index 3253782..8a934f5 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/de5624ba39358ba4ba962535e4a97224e2de43f57bd286834eded962856ed39a/go", + UserAgent: "OpenAPI-Generator/689d598a363629d8a5469d9b2a84748d89b39df37d356e3e82bb4a5edeb4224e/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index 318b404..579c22d 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] -**Hidden** | Pointer to **bool** | Whether this distribution should be shown in the content app. | [optional] [default to false] -**BaseUrl** | Pointer to **string** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly] -**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] -**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] -**Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | -**PulpLabels** | Pointer to **map[string]string** | | [optional] +**PulpHref** | Pointer to **string** | | [optional] [readonly] +**Hidden** | Pointer to **bool** | Whether this distribution should be shown in the content app. | [optional] [default to false] +**Prn** | Pointer to **string** | The Pulp Resource Name (PRN). | [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`. | +**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [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\") | -**Prn** | Pointer to **string** | The Pulp Resource Name (PRN). | [optional] [readonly] +**BaseUrl** | Pointer to **string** | The URL for accessing the publication as defined by this distribution. | [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] ## Methods @@ -35,80 +35,30 @@ NewArtifactDistributionResponseWithDefaults instantiates a new ArtifactDistribut This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetNoContentChangeSince - -`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` - -GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. - -### GetNoContentChangeSinceOk - -`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` - -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. - -### SetNoContentChangeSince - -`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` - -SetNoContentChangeSince sets NoContentChangeSince field to given value. - -### HasNoContentChangeSince - -`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` - -HasNoContentChangeSince returns a boolean if a field has been set. - -### GetHidden - -`func (o *ArtifactDistributionResponse) GetHidden() bool` - -GetHidden returns the Hidden field if non-nil, zero value otherwise. - -### GetHiddenOk - -`func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool)` - -GetHiddenOk returns a tuple with the Hidden field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHidden - -`func (o *ArtifactDistributionResponse) SetHidden(v bool)` - -SetHidden sets Hidden field to given value. - -### HasHidden - -`func (o *ArtifactDistributionResponse) HasHidden() bool` - -HasHidden returns a boolean if a field has been set. - -### GetBaseUrl +### GetPulpLastUpdated -`func (o *ArtifactDistributionResponse) GetBaseUrl() string` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` -GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. +GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. -### GetBaseUrlOk +### GetPulpLastUpdatedOk -`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` -GetBaseUrlOk returns a tuple with the BaseUrl 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. -### SetBaseUrl +### SetPulpLastUpdated -`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` +`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` -SetBaseUrl sets BaseUrl field to given value. +SetPulpLastUpdated sets PulpLastUpdated field to given value. -### HasBaseUrl +### HasPulpLastUpdated -`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` +`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` -HasBaseUrl returns a boolean if a field has been set. +HasPulpLastUpdated returns a boolean if a field has been set. ### GetPulpHref @@ -135,76 +85,91 @@ SetPulpHref sets PulpHref field to given value. HasPulpHref returns a boolean if a field has been set. -### GetPulpLastUpdated +### GetHidden -`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` +`func (o *ArtifactDistributionResponse) GetHidden() bool` -GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. +GetHidden returns the Hidden field if non-nil, zero value otherwise. -### GetPulpLastUpdatedOk +### GetHiddenOk -`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` +`func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool)` -GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field if it's non-nil, zero value otherwise +GetHiddenOk returns a tuple with the Hidden field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPulpLastUpdated +### SetHidden -`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` +`func (o *ArtifactDistributionResponse) SetHidden(v bool)` -SetPulpLastUpdated sets PulpLastUpdated field to given value. +SetHidden sets Hidden field to given value. -### HasPulpLastUpdated +### HasHidden -`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` +`func (o *ArtifactDistributionResponse) HasHidden() bool` -HasPulpLastUpdated returns a boolean if a field has been set. +HasHidden returns a boolean if a field has been set. -### GetPulpCreated +### GetPrn -`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` +`func (o *ArtifactDistributionResponse) GetPrn() string` -GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. +GetPrn returns the Prn field if non-nil, zero value otherwise. -### GetPulpCreatedOk +### GetPrnOk -`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` +`func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool)` -GetPulpCreatedOk returns a tuple with the PulpCreated 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. -### SetPulpCreated +### SetPrn -`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` +`func (o *ArtifactDistributionResponse) SetPrn(v string)` -SetPulpCreated sets PulpCreated field to given value. +SetPrn sets Prn field to given value. -### HasPulpCreated +### HasPrn -`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` +`func (o *ArtifactDistributionResponse) HasPrn() bool` -HasPulpCreated returns a boolean if a field has been set. +HasPrn returns a boolean if a field has been set. -### GetName +### GetContentGuard -`func (o *ArtifactDistributionResponse) GetName() string` +`func (o *ArtifactDistributionResponse) GetContentGuard() string` -GetName returns the Name field if non-nil, zero value otherwise. +GetContentGuard returns the ContentGuard field if non-nil, zero value otherwise. -### GetNameOk +### GetContentGuardOk -`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool)` -GetNameOk returns a tuple with the Name 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. -### SetName +### SetContentGuard -`func (o *ArtifactDistributionResponse) SetName(v string)` +`func (o *ArtifactDistributionResponse) SetContentGuard(v string)` -SetName sets Name field to given value. +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 ### GetPulpLabels `func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` @@ -230,41 +195,51 @@ SetPulpLabels sets PulpLabels field to given value. HasPulpLabels returns a boolean if a field has been set. -### GetContentGuard +### GetName -`func (o *ArtifactDistributionResponse) GetContentGuard() string` +`func (o *ArtifactDistributionResponse) GetName() string` -GetContentGuard returns the ContentGuard field if non-nil, zero value otherwise. +GetName returns the Name field if non-nil, zero value otherwise. -### GetContentGuardOk +### GetNameOk -`func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` -GetContentGuardOk returns a tuple with the ContentGuard field if it's non-nil, zero value otherwise +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. -### SetContentGuard +### SetName -`func (o *ArtifactDistributionResponse) SetContentGuard(v string)` +`func (o *ArtifactDistributionResponse) SetName(v string)` -SetContentGuard sets ContentGuard field to given value. +SetName sets Name field to given value. -### HasContentGuard -`func (o *ArtifactDistributionResponse) HasContentGuard() bool` +### GetPulpCreated -HasContentGuard returns a boolean if a field has been set. +`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` -### SetContentGuardNil +GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. -`func (o *ArtifactDistributionResponse) SetContentGuardNil(b bool)` +### GetPulpCreatedOk - SetContentGuardNil sets the value for ContentGuard to be an explicit nil +`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` -### UnsetContentGuard -`func (o *ArtifactDistributionResponse) UnsetContentGuard()` +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. -UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil ### GetBasePath `func (o *ArtifactDistributionResponse) GetBasePath() string` @@ -285,30 +260,55 @@ and a boolean to check if the value has been set. SetBasePath sets BasePath field to given value. -### 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. + +### GetNoContentChangeSince + +`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` + +GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. + +### GetNoContentChangeSinceOk + +`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` + +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. + +### SetNoContentChangeSince + +`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` + +SetNoContentChangeSince sets NoContentChangeSince field to given value. + +### HasNoContentChangeSince + +`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` + +HasNoContentChangeSince 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 caefb88..dfc6fa4 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"` - // Whether this distribution should be shown in the content app. - Hidden *bool `json:"hidden,omitempty"` - // The URL for accessing the publication as defined by this distribution. - BaseUrl *string `json:"base_url,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"` - // Timestamp of creation. - PulpCreated *time.Time `json:"pulp_created,omitempty"` - // A unique name. Ex, `rawhide` and `stable`. - Name string `json:"name"` - PulpLabels *map[string]string `json:"pulp_labels,omitempty"` + PulpHref *string `json:"pulp_href,omitempty"` + // Whether this distribution should be shown in the content app. + Hidden *bool `json:"hidden,omitempty"` + // The Pulp Resource Name (PRN). + Prn *string `json:"prn,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"` + // Timestamp of creation. + PulpCreated *time.Time `json:"pulp_created,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"` - // The Pulp Resource Name (PRN). - Prn *string `json:"prn,omitempty"` + // The URL for accessing the publication as defined by this distribution. + BaseUrl *string `json:"base_url,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"` AdditionalProperties map[string]interface{} } @@ -70,36 +70,68 @@ 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) { +// GetPulpLastUpdated returns the PulpLastUpdated field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time { + if o == nil || IsNil(o.PulpLastUpdated) { + var ret time.Time + return ret + } + return *o.PulpLastUpdated +} + +// GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpLastUpdated) { + return nil, false + } + return o.PulpLastUpdated, true +} + +// HasPulpLastUpdated returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool { + if o != nil && !IsNil(o.PulpLastUpdated) { + return true + } + + return false +} + +// SetPulpLastUpdated gets a reference to the given time.Time and assigns it to the PulpLastUpdated field. +func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time) { + o.PulpLastUpdated = &v +} + +// 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.NoContentChangeSince + return *o.PulpHref } -// GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince 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) GetNoContentChangeSinceOk() (*string, bool) { - if o == nil || IsNil(o.NoContentChangeSince) { +func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool) { + if o == nil || IsNil(o.PulpHref) { return nil, false } - return o.NoContentChangeSince, true + return o.PulpHref, true } -// HasNoContentChangeSince returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool { - if o != nil && !IsNil(o.NoContentChangeSince) { +// 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 } -// SetNoContentChangeSince gets a reference to the given string and assigns it to the NoContentChangeSince field. -func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { - o.NoContentChangeSince = &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 } // GetHidden returns the Hidden field value if set, zero value otherwise. @@ -134,132 +166,110 @@ func (o *ArtifactDistributionResponse) SetHidden(v bool) { o.Hidden = &v } -// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetBaseUrl() string { - if o == nil || IsNil(o.BaseUrl) { +// 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.BaseUrl + return *o.Prn } -// GetBaseUrlOk returns a tuple with the BaseUrl 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) GetBaseUrlOk() (*string, bool) { - if o == nil || IsNil(o.BaseUrl) { +func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool) { + if o == nil || IsNil(o.Prn) { return nil, false } - return o.BaseUrl, true + return o.Prn, true } -// HasBaseUrl returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasBaseUrl() bool { - if o != nil && !IsNil(o.BaseUrl) { +// 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 } -// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. -func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { - o.BaseUrl = &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 } -// GetPulpHref returns the PulpHref field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpHref() string { - if o == nil || IsNil(o.PulpHref) { +// 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.PulpHref + return *o.ContentGuard.Get() } -// GetPulpHrefOk returns a tuple with the PulpHref 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) GetPulpHrefOk() (*string, bool) { - if o == nil || IsNil(o.PulpHref) { +// 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.PulpHref, true + return o.ContentGuard.Get(), o.ContentGuard.IsSet() } -// HasPulpHref returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpHref() bool { - if o != nil && !IsNil(o.PulpHref) { +// 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 } -// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. -func (o *ArtifactDistributionResponse) SetPulpHref(v string) { - o.PulpHref = &v -} - -// GetPulpLastUpdated returns the PulpLastUpdated field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time { - if o == nil || IsNil(o.PulpLastUpdated) { - var ret time.Time - return ret - } - return *o.PulpLastUpdated -} - -// GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpLastUpdated) { - return nil, false - } - return o.PulpLastUpdated, true +// 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) } - -// 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 +// SetContentGuardNil sets the value for ContentGuard to be an explicit nil +func (o *ArtifactDistributionResponse) SetContentGuardNil() { + o.ContentGuard.Set(nil) } -// 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 +// UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil +func (o *ArtifactDistributionResponse) UnsetContentGuard() { + o.ContentGuard.Unset() } -// 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 +// 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.PulpCreated + return *o.PulpLabels } -// GetPulpCreatedOk returns a tuple with the PulpCreated 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) GetPulpCreatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpCreated) { +func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { return nil, false } - return o.PulpCreated, true + return o.PulpLabels, true } -// HasPulpCreated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpCreated() bool { - if o != nil && !IsNil(o.PulpCreated) { +// 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 } -// 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 +// 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 @@ -286,134 +296,124 @@ func (o *ArtifactDistributionResponse) SetName(v string) { o.Name = 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 +// 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.PulpLabels + return *o.PulpCreated } -// GetPulpLabelsOk returns a tuple with the PulpLabels 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) GetPulpLabelsOk() (*map[string]string, bool) { - if o == nil || IsNil(o.PulpLabels) { +func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpCreated) { return nil, false } - return o.PulpLabels, true + return o.PulpCreated, true } -// HasPulpLabels returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLabels() bool { - if o != nil && !IsNil(o.PulpLabels) { +// 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 } -// 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 +// 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 } -// 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()) { +// GetBasePath returns the BasePath field value +func (o *ArtifactDistributionResponse) GetBasePath() string { + if o == nil { var ret string return ret } - return *o.ContentGuard.Get() + + return o.BasePath } -// GetContentGuardOk returns a tuple with the ContentGuard field value if set, nil otherwise +// GetBasePathOk returns a tuple with the BasePath field value // 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) { +func (o *ArtifactDistributionResponse) GetBasePathOk() (*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) + return &o.BasePath, true } -// UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil -func (o *ArtifactDistributionResponse) UnsetContentGuard() { - o.ContentGuard.Unset() +// SetBasePath sets field value +func (o *ArtifactDistributionResponse) SetBasePath(v string) { + o.BasePath = v } -// GetBasePath returns the BasePath field value -func (o *ArtifactDistributionResponse) GetBasePath() string { - if o == nil { +// 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.BasePath + return *o.BaseUrl } -// GetBasePathOk returns a tuple with the BasePath field value +// 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) GetBasePathOk() (*string, bool) { - if o == nil { +func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseUrl) { return nil, false } - return &o.BasePath, true + return o.BaseUrl, true } -// SetBasePath sets field value -func (o *ArtifactDistributionResponse) SetBasePath(v string) { - o.BasePath = v +// 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 } -// GetPrn returns the Prn field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPrn() string { - if o == nil || IsNil(o.Prn) { +// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. +func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { + o.BaseUrl = &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 return ret } - return *o.Prn + return *o.NoContentChangeSince } -// GetPrnOk returns a tuple with the Prn 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) GetPrnOk() (*string, bool) { - if o == nil || IsNil(o.Prn) { +func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool) { + if o == nil || IsNil(o.NoContentChangeSince) { return nil, false } - return o.Prn, true + return o.NoContentChangeSince, true } -// HasPrn returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPrn() bool { - if o != nil && !IsNil(o.Prn) { +// 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 } -// SetPrn gets a reference to the given string and assigns it to the Prn field. -func (o *ArtifactDistributionResponse) SetPrn(v string) { - o.Prn = &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 } 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.NoContentChangeSince) { - toSerialize["no_content_change_since"] = o.NoContentChangeSince - } - if !IsNil(o.Hidden) { - toSerialize["hidden"] = o.Hidden - } - if !IsNil(o.BaseUrl) { - toSerialize["base_url"] = o.BaseUrl + if !IsNil(o.PulpLastUpdated) { + toSerialize["pulp_last_updated"] = o.PulpLastUpdated } if !IsNil(o.PulpHref) { toSerialize["pulp_href"] = o.PulpHref } - if !IsNil(o.PulpLastUpdated) { - toSerialize["pulp_last_updated"] = o.PulpLastUpdated + if !IsNil(o.Hidden) { + toSerialize["hidden"] = o.Hidden } - if !IsNil(o.PulpCreated) { - toSerialize["pulp_created"] = o.PulpCreated + if !IsNil(o.Prn) { + toSerialize["prn"] = o.Prn + } + if o.ContentGuard.IsSet() { + toSerialize["content_guard"] = o.ContentGuard.Get() } - toSerialize["name"] = o.Name if !IsNil(o.PulpLabels) { toSerialize["pulp_labels"] = o.PulpLabels } - if o.ContentGuard.IsSet() { - toSerialize["content_guard"] = o.ContentGuard.Get() + toSerialize["name"] = o.Name + if !IsNil(o.PulpCreated) { + toSerialize["pulp_created"] = o.PulpCreated } toSerialize["base_path"] = o.BasePath - if !IsNil(o.Prn) { - toSerialize["prn"] = o.Prn + if !IsNil(o.BaseUrl) { + toSerialize["base_url"] = o.BaseUrl + } + if !IsNil(o.NoContentChangeSince) { + toSerialize["no_content_change_since"] = o.NoContentChangeSince } 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, "no_content_change_since") - delete(additionalProperties, "hidden") - delete(additionalProperties, "base_url") - delete(additionalProperties, "pulp_href") delete(additionalProperties, "pulp_last_updated") - delete(additionalProperties, "pulp_created") - delete(additionalProperties, "name") - delete(additionalProperties, "pulp_labels") + delete(additionalProperties, "pulp_href") + delete(additionalProperties, "hidden") + delete(additionalProperties, "prn") delete(additionalProperties, "content_guard") + delete(additionalProperties, "pulp_labels") + delete(additionalProperties, "name") + delete(additionalProperties, "pulp_created") delete(additionalProperties, "base_path") - delete(additionalProperties, "prn") + delete(additionalProperties, "base_url") + delete(additionalProperties, "no_content_change_since") o.AdditionalProperties = additionalProperties }