From 0d38dd076cfdb948d602c3d7266b4938429074ca Mon Sep 17 00:00:00 2001 From: andrewgdewar Date: Sat, 21 Sep 2024 07:08:34 +0000 Subject: [PATCH] Update pulp bindings to 9258456e9d3b4a85d3e54836d2b979a4b6e2de137ae5486b92ad2e96ab328e64 --- release/README.md | 2 +- release/api/openapi.yaml | 80 ++--- release/configuration.go | 2 +- release/docs/ArtifactDistributionResponse.md | 222 ++++++------ .../model_artifact_distribution_response.go | 336 +++++++++--------- 5 files changed, 321 insertions(+), 321 deletions(-) diff --git a/release/README.md b/release/README.md index c028c49..c04c09b 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: de24b382d968bd5ed3a4252b36e47556e325661b7a98d596b8e3294aa65e495a +- Package version: 9258456e9d3b4a85d3e54836d2b979a4b6e2de137ae5486b92ad2e96ab328e64 - Generator version: 7.8.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 7a2dffd..8d3c38b 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -36102,63 +36102,63 @@ components: ArtifactDistributionResponse: description: A serializer for ArtifactDistribution. example: - hidden: false - pulp_href: https://openapi-generator.tech pulp_labels: key: pulp_labels + hidden: false + pulp_href: https://openapi-generator.tech name: name - no_content_change_since: no_content_change_since base_url: base_url - pulp_created: 2000-01-23T04:56:07.000+00:00 + no_content_change_since: no_content_change_since base_path: base_path + pulp_created: 2000-01-23T04:56:07.000+00:00 pulp_last_updated: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech properties: - name: - description: "A unique name. Ex, `rawhide` and `stable`." - type: string - hidden: - default: false - description: Whether this distribution should be shown in the content app. - type: boolean - pulp_created: - description: Timestamp of creation. + pulp_last_updated: + description: "Timestamp of the last time this resource was updated. Note:\ + \ for immutable resources - like content, repository versions, and publication\ + \ - pulp_created and pulp_last_updated dates will be the same." format: date-time readOnly: true type: string + pulp_labels: + additionalProperties: + nullable: true + type: string + type: object + name: + description: "A unique name. Ex, `rawhide` and `stable`." + type: string content_guard: description: An optional content-guard. format: uri nullable: 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." + base_url: + description: The URL for accessing the publication as defined by this distribution. readOnly: true type: string + hidden: + default: false + description: Whether this distribution should be shown in the content app. + type: boolean base_path: description: The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. "foo" and "foo/bar") type: string - pulp_href: - format: uri + 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_url: - description: The URL for accessing the publication as defined by this distribution. + pulp_href: + format: uri readOnly: true type: string - pulp_labels: - additionalProperties: - nullable: true - type: string - type: object - pulp_last_updated: - description: "Timestamp of the last time this resource was updated. Note:\ - \ for immutable resources - like content, repository versions, and publication\ - \ - pulp_created and pulp_last_updated dates will be the same." + pulp_created: + description: Timestamp of creation. format: date-time readOnly: true type: string @@ -37709,26 +37709,26 @@ components: previous: http://api.example.org/accounts/?offset=200&limit=100 count: 123 results: - - hidden: false - pulp_href: https://openapi-generator.tech - pulp_labels: + - pulp_labels: key: pulp_labels + hidden: false + pulp_href: https://openapi-generator.tech name: name - no_content_change_since: no_content_change_since base_url: base_url - pulp_created: 2000-01-23T04:56:07.000+00:00 + no_content_change_since: no_content_change_since base_path: base_path + pulp_created: 2000-01-23T04:56:07.000+00:00 pulp_last_updated: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech - - hidden: false - pulp_href: https://openapi-generator.tech - pulp_labels: + - pulp_labels: key: pulp_labels + hidden: false + pulp_href: https://openapi-generator.tech name: name - no_content_change_since: no_content_change_since base_url: base_url - pulp_created: 2000-01-23T04:56:07.000+00:00 + no_content_change_since: no_content_change_since base_path: base_path + pulp_created: 2000-01-23T04:56:07.000+00:00 pulp_last_updated: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech properties: diff --git a/release/configuration.go b/release/configuration.go index 583f1e4..d574eaa 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/de24b382d968bd5ed3a4252b36e47556e325661b7a98d596b8e3294aa65e495a/go", + UserAgent: "OpenAPI-Generator/9258456e9d3b4a85d3e54836d2b979a4b6e2de137ae5486b92ad2e96ab328e64/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index 687d408..047d2f3 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,16 +4,16 @@ 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] +**PulpLabels** | Pointer to **map[string]string** | | [optional] **Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | -**Hidden** | Pointer to **bool** | Whether this distribution should be shown in the content app. | [optional] [default to false] -**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] **ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] -**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] +**BaseUrl** | Pointer to **string** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly] +**Hidden** | Pointer to **bool** | Whether this distribution should be shown in the content app. | [optional] [default to false] **BasePath** | **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | +**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] **PulpHref** | Pointer to **string** | | [optional] [readonly] -**BaseUrl** | Pointer to **string** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly] -**PulpLabels** | Pointer to **map[string]string** | | [optional] -**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] ## Methods @@ -34,75 +34,75 @@ NewArtifactDistributionResponseWithDefaults instantiates a new ArtifactDistribut This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetName +### GetPulpLastUpdated -`func (o *ArtifactDistributionResponse) GetName() string` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` -GetName returns the Name field if non-nil, zero value otherwise. +GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. -### GetNameOk +### GetPulpLastUpdatedOk -`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` -GetNameOk returns a tuple with the Name 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. -### SetName +### SetPulpLastUpdated -`func (o *ArtifactDistributionResponse) SetName(v string)` +`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` -SetName sets Name field to given value. +SetPulpLastUpdated sets PulpLastUpdated field to given value. +### HasPulpLastUpdated -### GetHidden +`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` -`func (o *ArtifactDistributionResponse) GetHidden() bool` +HasPulpLastUpdated returns a boolean if a field has been set. -GetHidden returns the Hidden field if non-nil, zero value otherwise. +### GetPulpLabels -### GetHiddenOk +`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` -`func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool)` +GetPulpLabels returns the PulpLabels field if 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. +### GetPulpLabelsOk -### SetHidden +`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` -`func (o *ArtifactDistributionResponse) SetHidden(v bool)` +GetPulpLabelsOk returns a tuple with the PulpLabels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -SetHidden sets Hidden field to given value. +### SetPulpLabels -### HasHidden +`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` -`func (o *ArtifactDistributionResponse) HasHidden() bool` +SetPulpLabels sets PulpLabels field to given value. -HasHidden returns a boolean if a field has been set. +### HasPulpLabels -### GetPulpCreated +`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` -`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` +HasPulpLabels returns a boolean if a field has been set. -GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. +### GetName -### GetPulpCreatedOk +`func (o *ArtifactDistributionResponse) GetName() string` -`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` +GetName returns the Name field if non-nil, zero value otherwise. -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. +### GetNameOk -### SetPulpCreated +`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` -`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` +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. -SetPulpCreated sets PulpCreated field to given value. +### SetName -### HasPulpCreated +`func (o *ArtifactDistributionResponse) SetName(v string)` -`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` +SetName sets Name field to given value. -HasPulpCreated returns a boolean if a field has been set. ### GetContentGuard @@ -139,150 +139,150 @@ HasContentGuard returns a boolean if a field has been set. `func (o *ArtifactDistributionResponse) UnsetContentGuard()` UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil -### GetNoContentChangeSince +### GetBaseUrl -`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` +`func (o *ArtifactDistributionResponse) GetBaseUrl() string` -GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. -### GetNoContentChangeSinceOk +### GetBaseUrlOk -`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` -GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince 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. -### SetNoContentChangeSince +### SetBaseUrl -`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` +`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` -SetNoContentChangeSince sets NoContentChangeSince field to given value. +SetBaseUrl sets BaseUrl field to given value. -### HasNoContentChangeSince +### HasBaseUrl -`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` +`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` -HasNoContentChangeSince returns a boolean if a field has been set. +HasBaseUrl returns a boolean if a field has been set. -### GetBasePath +### GetHidden -`func (o *ArtifactDistributionResponse) GetBasePath() string` +`func (o *ArtifactDistributionResponse) GetHidden() bool` -GetBasePath returns the BasePath field if non-nil, zero value otherwise. +GetHidden returns the Hidden field if non-nil, zero value otherwise. -### GetBasePathOk +### GetHiddenOk -`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool)` -GetBasePathOk returns a tuple with the BasePath 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. -### SetBasePath +### SetHidden -`func (o *ArtifactDistributionResponse) SetBasePath(v string)` +`func (o *ArtifactDistributionResponse) SetHidden(v bool)` -SetBasePath sets BasePath field to given value. +SetHidden sets Hidden field to given value. +### HasHidden -### GetPulpHref +`func (o *ArtifactDistributionResponse) HasHidden() bool` -`func (o *ArtifactDistributionResponse) GetPulpHref() string` +HasHidden returns a boolean if a field has been set. -GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. +### GetBasePath -### GetPulpHrefOk +`func (o *ArtifactDistributionResponse) GetBasePath() string` -`func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool)` +GetBasePath returns the BasePath field if 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. +### GetBasePathOk -### SetPulpHref +`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` -`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` +GetBasePathOk returns a tuple with the BasePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -SetPulpHref sets PulpHref field to given value. +### SetBasePath -### HasPulpHref +`func (o *ArtifactDistributionResponse) SetBasePath(v string)` -`func (o *ArtifactDistributionResponse) HasPulpHref() bool` +SetBasePath sets BasePath field to given value. -HasPulpHref returns a boolean if a field has been set. -### GetBaseUrl +### GetNoContentChangeSince -`func (o *ArtifactDistributionResponse) GetBaseUrl() string` +`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` -GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. +GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. -### GetBaseUrlOk +### GetNoContentChangeSinceOk -`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` -GetBaseUrlOk returns a tuple with the BaseUrl 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. -### SetBaseUrl +### SetNoContentChangeSince -`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` +`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` -SetBaseUrl sets BaseUrl field to given value. +SetNoContentChangeSince sets NoContentChangeSince field to given value. -### HasBaseUrl +### HasNoContentChangeSince -`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` +`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` -HasBaseUrl returns a boolean if a field has been set. +HasNoContentChangeSince returns a boolean if a field has been set. -### GetPulpLabels +### GetPulpHref -`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` +`func (o *ArtifactDistributionResponse) GetPulpHref() string` -GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. +GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. -### GetPulpLabelsOk +### GetPulpHrefOk -`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool)` -GetPulpLabelsOk returns a tuple with the PulpLabels 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. -### SetPulpLabels +### SetPulpHref -`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` +`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` -SetPulpLabels sets PulpLabels field to given value. +SetPulpHref sets PulpHref field to given value. -### HasPulpLabels +### HasPulpHref -`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` +`func (o *ArtifactDistributionResponse) HasPulpHref() bool` -HasPulpLabels returns a boolean if a field has been set. +HasPulpHref returns a boolean if a field has been set. -### GetPulpLastUpdated +### GetPulpCreated -`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` +`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` -GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. +GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. -### GetPulpLastUpdatedOk +### GetPulpCreatedOk -`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` +`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` -GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field if it's non-nil, zero value otherwise +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. -### SetPulpLastUpdated +### SetPulpCreated -`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` +`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` -SetPulpLastUpdated sets PulpLastUpdated field to given value. +SetPulpCreated sets PulpCreated field to given value. -### HasPulpLastUpdated +### HasPulpCreated -`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` +`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` -HasPulpLastUpdated returns a boolean if a field has been set. +HasPulpCreated 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 77e78a5..fe572a0 100644 --- a/release/model_artifact_distribution_response.go +++ b/release/model_artifact_distribution_response.go @@ -22,24 +22,24 @@ 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"` + PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // A unique name. Ex, `rawhide` and `stable`. Name string `json:"name"` - // Whether this distribution should be shown in the content app. - Hidden *bool `json:"hidden,omitempty"` - // Timestamp of creation. - PulpCreated *time.Time `json:"pulp_created,omitempty"` // An optional content-guard. ContentGuard NullableString `json:"content_guard,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 URL for accessing the publication as defined by this distribution. + BaseUrl *string `json:"base_url,omitempty"` + // Whether this distribution should be shown in the content app. + Hidden *bool `json:"hidden,omitempty"` // The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") BasePath string `json:"base_path"` + // 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"` PulpHref *string `json:"pulp_href,omitempty"` - // The URL for accessing the publication as defined by this distribution. - BaseUrl *string `json:"base_url,omitempty"` - PulpLabels *map[string]string `json:"pulp_labels,omitempty"` - // 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"` AdditionalProperties map[string]interface{} } @@ -68,92 +68,92 @@ func NewArtifactDistributionResponseWithDefaults() *ArtifactDistributionResponse return &this } -// GetName returns the Name field value -func (o *ArtifactDistributionResponse) GetName() string { - if o == nil { - var ret string +// GetPulpLastUpdated returns the PulpLastUpdated field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time { + if o == nil || IsNil(o.PulpLastUpdated) { + var ret time.Time return ret } - - return o.Name + return *o.PulpLastUpdated } -// GetNameOk returns a tuple with the Name field value +// GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool) { - if o == nil { +func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpLastUpdated) { return nil, false } - return &o.Name, true + return o.PulpLastUpdated, true } -// SetName sets field value -func (o *ArtifactDistributionResponse) SetName(v string) { - o.Name = 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 } -// GetHidden returns the Hidden field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetHidden() bool { - if o == nil || IsNil(o.Hidden) { - var ret bool +// 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 +} + +// 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.Hidden + return *o.PulpLabels } -// GetHiddenOk returns a tuple with the Hidden 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) GetHiddenOk() (*bool, bool) { - if o == nil || IsNil(o.Hidden) { +func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { return nil, false } - return o.Hidden, true + return o.PulpLabels, true } -// HasHidden returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasHidden() bool { - if o != nil && !IsNil(o.Hidden) { +// 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 } -// SetHidden gets a reference to the given bool and assigns it to the Hidden field. -func (o *ArtifactDistributionResponse) SetHidden(v bool) { - o.Hidden = &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 } -// 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 +// GetName returns the Name field value +func (o *ArtifactDistributionResponse) GetName() string { + if o == nil { + var ret string return ret } - return *o.PulpCreated + + return o.Name } -// GetPulpCreatedOk returns a tuple with the PulpCreated 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) GetPulpCreatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpCreated) { +func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool) { + if o == nil { return nil, false } - return o.PulpCreated, true -} - -// 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 + return &o.Name, true } -// 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 +// SetName sets field value +func (o *ArtifactDistributionResponse) SetName(v string) { + o.Name = v } // GetContentGuard returns the ContentGuard field value if set, zero value otherwise (both if not set or set to explicit null). @@ -198,36 +198,68 @@ func (o *ArtifactDistributionResponse) UnsetContentGuard() { o.ContentGuard.Unset() } -// GetNoContentChangeSince returns the NoContentChangeSince field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string { - if o == nil || IsNil(o.NoContentChangeSince) { +// 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.NoContentChangeSince + return *o.BaseUrl } -// GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince 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) GetNoContentChangeSinceOk() (*string, bool) { - if o == nil || IsNil(o.NoContentChangeSince) { +func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseUrl) { return nil, false } - return o.NoContentChangeSince, true + return o.BaseUrl, true } -// HasNoContentChangeSince returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool { - if o != nil && !IsNil(o.NoContentChangeSince) { +// 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 } -// SetNoContentChangeSince gets a reference to the given string and assigns it to the NoContentChangeSince field. -func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { - o.NoContentChangeSince = &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 +} + +// GetHidden returns the Hidden field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetHidden() bool { + if o == nil || IsNil(o.Hidden) { + var ret bool + return ret + } + return *o.Hidden +} + +// GetHiddenOk returns a tuple with the Hidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.Hidden) { + return nil, false + } + return o.Hidden, true +} + +// HasHidden returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasHidden() bool { + if o != nil && !IsNil(o.Hidden) { + return true + } + + return false +} + +// SetHidden gets a reference to the given bool and assigns it to the Hidden field. +func (o *ArtifactDistributionResponse) SetHidden(v bool) { + o.Hidden = &v } // GetBasePath returns the BasePath field value @@ -254,132 +286,100 @@ func (o *ArtifactDistributionResponse) SetBasePath(v string) { o.BasePath = v } -// GetPulpHref returns the PulpHref field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpHref() string { - if o == nil || IsNil(o.PulpHref) { +// 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.PulpHref + return *o.NoContentChangeSince } -// GetPulpHrefOk returns a tuple with the PulpHref 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) GetPulpHrefOk() (*string, bool) { - if o == nil || IsNil(o.PulpHref) { +func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool) { + if o == nil || IsNil(o.NoContentChangeSince) { return nil, false } - return o.PulpHref, true + return o.NoContentChangeSince, true } -// HasPulpHref returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpHref() bool { - if o != nil && !IsNil(o.PulpHref) { +// 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 } -// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. -func (o *ArtifactDistributionResponse) SetPulpHref(v string) { - o.PulpHref = &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 } -// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetBaseUrl() string { - if o == nil || IsNil(o.BaseUrl) { +// 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.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 -} - -// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string { - if o == nil || IsNil(o.PulpLabels) { - var ret map[string]string - return ret - } - return *o.PulpLabels + return *o.PulpHref } -// GetPulpLabelsOk returns a tuple with the PulpLabels 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) GetPulpLabelsOk() (*map[string]string, bool) { - if o == nil || IsNil(o.PulpLabels) { +func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool) { + if o == nil || IsNil(o.PulpHref) { return nil, false } - return o.PulpLabels, true + return o.PulpHref, true } -// HasPulpLabels returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLabels() bool { - if o != nil && !IsNil(o.PulpLabels) { +// 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 } -// 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 +// 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) { +// GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time { + if o == nil || IsNil(o.PulpCreated) { var ret time.Time return ret } - return *o.PulpLastUpdated + return *o.PulpCreated } -// GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field value if set, nil otherwise +// GetPulpCreatedOk returns a tuple with the PulpCreated field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpLastUpdated) { +func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpCreated) { return nil, false } - return o.PulpLastUpdated, true + return o.PulpCreated, true } -// HasPulpLastUpdated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool { - if o != nil && !IsNil(o.PulpLastUpdated) { +// HasPulpCreated returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasPulpCreated() bool { + if o != nil && !IsNil(o.PulpCreated) { return true } return false } -// SetPulpLastUpdated gets a reference to the given time.Time and assigns it to the PulpLastUpdated field. -func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time) { - o.PulpLastUpdated = &v +// SetPulpCreated gets a reference to the given time.Time and assigns it to the PulpCreated field. +func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time) { + o.PulpCreated = &v } func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { @@ -392,31 +392,31 @@ func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { func (o ArtifactDistributionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["name"] = o.Name - if !IsNil(o.Hidden) { - toSerialize["hidden"] = o.Hidden + if !IsNil(o.PulpLastUpdated) { + toSerialize["pulp_last_updated"] = o.PulpLastUpdated } - if !IsNil(o.PulpCreated) { - toSerialize["pulp_created"] = o.PulpCreated + if !IsNil(o.PulpLabels) { + toSerialize["pulp_labels"] = o.PulpLabels } + toSerialize["name"] = o.Name if o.ContentGuard.IsSet() { toSerialize["content_guard"] = o.ContentGuard.Get() } + if !IsNil(o.BaseUrl) { + toSerialize["base_url"] = o.BaseUrl + } + if !IsNil(o.Hidden) { + toSerialize["hidden"] = o.Hidden + } + toSerialize["base_path"] = o.BasePath if !IsNil(o.NoContentChangeSince) { toSerialize["no_content_change_since"] = o.NoContentChangeSince } - toSerialize["base_path"] = o.BasePath if !IsNil(o.PulpHref) { toSerialize["pulp_href"] = o.PulpHref } - if !IsNil(o.BaseUrl) { - toSerialize["base_url"] = o.BaseUrl - } - if !IsNil(o.PulpLabels) { - toSerialize["pulp_labels"] = o.PulpLabels - } - if !IsNil(o.PulpLastUpdated) { - toSerialize["pulp_last_updated"] = o.PulpLastUpdated + if !IsNil(o.PulpCreated) { + toSerialize["pulp_created"] = o.PulpCreated } for key, value := range o.AdditionalProperties { @@ -462,16 +462,16 @@ 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, "pulp_labels") delete(additionalProperties, "name") - delete(additionalProperties, "hidden") - delete(additionalProperties, "pulp_created") delete(additionalProperties, "content_guard") - delete(additionalProperties, "no_content_change_since") + delete(additionalProperties, "base_url") + delete(additionalProperties, "hidden") delete(additionalProperties, "base_path") + delete(additionalProperties, "no_content_change_since") delete(additionalProperties, "pulp_href") - delete(additionalProperties, "base_url") - delete(additionalProperties, "pulp_labels") - delete(additionalProperties, "pulp_last_updated") + delete(additionalProperties, "pulp_created") o.AdditionalProperties = additionalProperties }