From a419b23580b82e40b802bc47645532e6737d20bc Mon Sep 17 00:00:00 2001 From: andrewgdewar Date: Thu, 5 Dec 2024 07:10:03 +0000 Subject: [PATCH] Update pulp bindings to b59d5a8be2d6a9584b32d696a4527643d56d6e127b8e3dae95843eb29436da38 --- release/README.md | 2 +- release/api/openapi.yaml | 76 ++-- release/configuration.go | 2 +- release/docs/ArtifactDistributionResponse.md | 250 ++++++------ .../model_artifact_distribution_response.go | 358 +++++++++--------- 5 files changed, 344 insertions(+), 344 deletions(-) diff --git a/release/README.md b/release/README.md index 1ba5588..bf90dc4 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: 689d598a363629d8a5469d9b2a84748b9922def37d356e3e82bb4a5edeb4224e +- Package version: b59d5a8be2d6a9584b32d696a4527643d56d6e127b8e3dae95843eb29436da38 - Generator version: 7.10.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://pulpproject.org](https://pulpproject.org) diff --git a/release/api/openapi.yaml b/release/api/openapi.yaml index 9ef6755..b57e034 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -40223,40 +40223,33 @@ components: ArtifactDistributionResponse: description: A serializer for ArtifactDistribution. example: + pulp_href: https://openapi-generator.tech hidden: false pulp_labels: key: pulp_labels - pulp_href: https://openapi-generator.tech + no_content_change_since: no_content_change_since base_url: base_url name: name - no_content_change_since: no_content_change_since - pulp_created: 2000-01-23T04:56:07.000+00:00 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 prn: prn content_guard: https://openapi-generator.tech properties: - 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 - 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. + 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 - prn: - description: The Pulp Resource Name (PRN). + pulp_href: + format: uri readOnly: true type: string - name: - description: "A unique name. Ex, `rawhide` and `stable`." + 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 content_guard: description: An optional content-guard. @@ -40268,25 +40261,32 @@ components: format: date-time readOnly: true type: string + hidden: + default: false + description: Whether this distribution should be shown in the content app. + type: boolean + 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 - no_content_change_since: - description: "Timestamp since when the distributed content served by this\ - \ distribution has not changed. If equals to `null`, no guarantee is provided\ - \ about content changes." + prn: + description: The Pulp Resource Name (PRN). readOnly: true type: string - pulp_href: - format: uri + base_url: + description: The URL for accessing the publication as defined by this distribution. 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") + name: + description: "A unique name. Ex, `rawhide` and `stable`." type: string required: - base_path @@ -42871,27 +42871,27 @@ components: previous: http://api.example.org/accounts/?offset=200&limit=100 count: 123 results: - - hidden: false + - pulp_href: https://openapi-generator.tech + hidden: false pulp_labels: key: pulp_labels - pulp_href: https://openapi-generator.tech + no_content_change_since: no_content_change_since base_url: base_url name: name - no_content_change_since: no_content_change_since - pulp_created: 2000-01-23T04:56:07.000+00:00 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 prn: prn content_guard: https://openapi-generator.tech - - hidden: false + - pulp_href: https://openapi-generator.tech + hidden: false pulp_labels: key: pulp_labels - pulp_href: https://openapi-generator.tech + no_content_change_since: no_content_change_since base_url: base_url name: name - no_content_change_since: no_content_change_since - pulp_created: 2000-01-23T04:56:07.000+00:00 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 prn: prn content_guard: https://openapi-generator.tech diff --git a/release/configuration.go b/release/configuration.go index 6f859cf..813332b 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/689d598a363629d8a5469d9b2a84748b9922def37d356e3e82bb4a5edeb4224e/go", + UserAgent: "OpenAPI-Generator/b59d5a8be2d6a9584b32d696a4527643d56d6e127b8e3dae95843eb29436da38/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index ff04647..c4a982f 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,23 +4,23 @@ 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] -**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] -**Prn** | Pointer to **string** | The Pulp Resource Name (PRN). | [optional] [readonly] -**Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | -**ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] -**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] -**PulpLabels** | Pointer to **map[string]string** | | [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] **PulpHref** | Pointer to **string** | | [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\") | +**ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] +**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] +**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] +**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] +**Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | ## Methods ### NewArtifactDistributionResponse -`func NewArtifactDistributionResponse(name string, basePath string, ) *ArtifactDistributionResponse` +`func NewArtifactDistributionResponse(basePath string, name string, ) *ArtifactDistributionResponse` NewArtifactDistributionResponse instantiates a new ArtifactDistributionResponse object This constructor will assign default values to properties that have it defined, @@ -35,124 +35,74 @@ 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 -### GetPulpLastUpdated - -`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` - -GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. - -### GetPulpLastUpdatedOk - -`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` - -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. - -### SetPulpLastUpdated - -`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` - -SetPulpLastUpdated sets PulpLastUpdated field to given value. - -### HasPulpLastUpdated - -`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` - -HasPulpLastUpdated 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 +### 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. -### GetPrn +### GetPulpHref -`func (o *ArtifactDistributionResponse) GetPrn() string` +`func (o *ArtifactDistributionResponse) GetPulpHref() string` -GetPrn returns the Prn field if non-nil, zero value otherwise. +GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. -### GetPrnOk +### GetPulpHrefOk -`func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool)` -GetPrnOk returns a tuple with the Prn 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. -### SetPrn +### SetPulpHref -`func (o *ArtifactDistributionResponse) SetPrn(v string)` +`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` -SetPrn sets Prn field to given value. +SetPulpHref sets PulpHref field to given value. -### HasPrn +### HasPulpHref -`func (o *ArtifactDistributionResponse) HasPrn() bool` +`func (o *ArtifactDistributionResponse) HasPulpHref() bool` -HasPrn returns a boolean if a field has been set. +HasPulpHref returns a boolean if a field has been set. -### GetName +### GetBasePath -`func (o *ArtifactDistributionResponse) GetName() string` +`func (o *ArtifactDistributionResponse) GetBasePath() string` -GetName returns the Name field if non-nil, zero value otherwise. +GetBasePath returns the BasePath field if non-nil, zero value otherwise. -### GetNameOk +### GetBasePathOk -`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +GetBasePathOk returns a tuple with the BasePath field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetName +### SetBasePath -`func (o *ArtifactDistributionResponse) SetName(v string)` +`func (o *ArtifactDistributionResponse) SetBasePath(v string)` -SetName sets Name field to given value. +SetBasePath sets BasePath field to given value. ### GetContentGuard @@ -215,6 +165,56 @@ SetPulpCreated sets PulpCreated field to given value. HasPulpCreated 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. + +### GetPulpLastUpdated + +`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` + +GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. + +### GetPulpLastUpdatedOk + +`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` + +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. + +### SetPulpLastUpdated + +`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` + +SetPulpLastUpdated sets PulpLastUpdated field to given value. + +### HasPulpLastUpdated + +`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` + +HasPulpLastUpdated returns a boolean if a field has been set. + ### GetPulpLabels `func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` @@ -240,74 +240,74 @@ SetPulpLabels sets PulpLabels field to given value. HasPulpLabels returns a boolean if a field has been set. -### GetNoContentChangeSince +### GetPrn -`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` +`func (o *ArtifactDistributionResponse) GetPrn() string` -GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. +GetPrn returns the Prn field if non-nil, zero value otherwise. -### GetNoContentChangeSinceOk +### GetPrnOk -`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool)` -GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince field if it's non-nil, zero value otherwise +GetPrnOk returns a tuple with the Prn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetNoContentChangeSince +### SetPrn -`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` +`func (o *ArtifactDistributionResponse) SetPrn(v string)` -SetNoContentChangeSince sets NoContentChangeSince field to given value. +SetPrn sets Prn field to given value. -### HasNoContentChangeSince +### HasPrn -`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` +`func (o *ArtifactDistributionResponse) HasPrn() bool` -HasNoContentChangeSince returns a boolean if a field has been set. +HasPrn returns a boolean if a field has been set. -### GetPulpHref +### GetBaseUrl -`func (o *ArtifactDistributionResponse) GetPulpHref() string` +`func (o *ArtifactDistributionResponse) GetBaseUrl() string` -GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. -### GetPulpHrefOk +### GetBaseUrlOk -`func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` -GetPulpHrefOk returns a tuple with the PulpHref 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. -### SetPulpHref +### SetBaseUrl -`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` +`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` -SetPulpHref sets PulpHref field to given value. +SetBaseUrl sets BaseUrl field to given value. -### HasPulpHref +### HasBaseUrl -`func (o *ArtifactDistributionResponse) HasPulpHref() bool` +`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` -HasPulpHref returns a boolean if a field has been set. +HasBaseUrl returns a boolean if a field has been set. -### GetBasePath +### GetName -`func (o *ArtifactDistributionResponse) GetBasePath() string` +`func (o *ArtifactDistributionResponse) GetName() string` -GetBasePath returns the BasePath field if non-nil, zero value otherwise. +GetName returns the Name field if non-nil, zero value otherwise. -### GetBasePathOk +### GetNameOk -`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` -GetBasePathOk returns a tuple with the BasePath 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. -### SetBasePath +### SetName -`func (o *ArtifactDistributionResponse) SetBasePath(v string)` +`func (o *ArtifactDistributionResponse) SetName(v string)` -SetBasePath sets BasePath field to given value. +SetName sets Name field to given value. diff --git a/release/model_artifact_distribution_response.go b/release/model_artifact_distribution_response.go index f665621..9dd982f 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"` + // 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 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"` + // An optional content-guard. + ContentGuard NullableString `json:"content_guard,omitempty"` + // 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"` - // The URL for accessing the publication as defined by this distribution. - BaseUrl *string `json:"base_url,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"` + PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // 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"` // A unique name. Ex, `rawhide` and `stable`. Name string `json:"name"` - // An optional content-guard. - ContentGuard NullableString `json:"content_guard,omitempty"` - // Timestamp of creation. - PulpCreated *time.Time `json:"pulp_created,omitempty"` - PulpLabels *map[string]string `json:"pulp_labels,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"` - PulpHref *string `json:"pulp_href,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"` AdditionalProperties map[string]interface{} } @@ -51,12 +51,12 @@ type _ArtifactDistributionResponse ArtifactDistributionResponse // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewArtifactDistributionResponse(name string, basePath string) *ArtifactDistributionResponse { +func NewArtifactDistributionResponse(basePath string, name string) *ArtifactDistributionResponse { this := ArtifactDistributionResponse{} + this.BasePath = basePath var hidden bool = false this.Hidden = &hidden this.Name = name - this.BasePath = basePath return &this } @@ -70,156 +70,92 @@ func NewArtifactDistributionResponseWithDefaults() *ArtifactDistributionResponse return &this } -// 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 -} - -// 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 -} - -// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetBaseUrl() string { - if o == nil || IsNil(o.BaseUrl) { +// 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.BaseUrl + return *o.NoContentChangeSince } -// GetBaseUrlOk returns a tuple with the BaseUrl 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) GetBaseUrlOk() (*string, bool) { - if o == nil || IsNil(o.BaseUrl) { +func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool) { + if o == nil || IsNil(o.NoContentChangeSince) { return nil, false } - return o.BaseUrl, true + return o.NoContentChangeSince, true } -// HasBaseUrl returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasBaseUrl() bool { - if o != nil && !IsNil(o.BaseUrl) { +// 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 } -// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. -func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { - o.BaseUrl = &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 } -// GetPrn returns the Prn field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPrn() string { - if o == nil || IsNil(o.Prn) { +// 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.Prn + return *o.PulpHref } -// GetPrnOk returns a tuple with the Prn 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) GetPrnOk() (*string, bool) { - if o == nil || IsNil(o.Prn) { +func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool) { + if o == nil || IsNil(o.PulpHref) { return nil, false } - return o.Prn, true + return o.PulpHref, true } -// HasPrn returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPrn() bool { - if o != nil && !IsNil(o.Prn) { +// 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 } -// SetPrn gets a reference to the given string and assigns it to the Prn field. -func (o *ArtifactDistributionResponse) SetPrn(v string) { - o.Prn = &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 } -// GetName returns the Name field value -func (o *ArtifactDistributionResponse) GetName() string { +// GetBasePath returns the BasePath field value +func (o *ArtifactDistributionResponse) GetBasePath() string { if o == nil { var ret string return ret } - return o.Name + return o.BasePath } -// GetNameOk returns a tuple with the Name field value +// GetBasePathOk returns a tuple with the BasePath field value // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool) { +func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool) { if o == nil { return nil, false } - return &o.Name, true + return &o.BasePath, true } -// SetName sets field value -func (o *ArtifactDistributionResponse) SetName(v string) { - o.Name = v +// SetBasePath sets field value +func (o *ArtifactDistributionResponse) SetBasePath(v string) { + o.BasePath = v } // GetContentGuard returns the ContentGuard field value if set, zero value otherwise (both if not set or set to explicit null). @@ -296,6 +232,70 @@ func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time) { o.PulpCreated = &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 +} + +// 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 +} + // GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string { if o == nil || IsNil(o.PulpLabels) { @@ -328,92 +328,92 @@ func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string) { o.PulpLabels = &v } -// GetNoContentChangeSince returns the NoContentChangeSince field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string { - if o == nil || IsNil(o.NoContentChangeSince) { +// GetPrn returns the Prn field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPrn() string { + if o == nil || IsNil(o.Prn) { var ret string return ret } - return *o.NoContentChangeSince + return *o.Prn } -// GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince field value if set, nil otherwise +// GetPrnOk returns a tuple with the Prn field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool) { - if o == nil || IsNil(o.NoContentChangeSince) { +func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool) { + if o == nil || IsNil(o.Prn) { return nil, false } - return o.NoContentChangeSince, true + return o.Prn, true } -// HasNoContentChangeSince returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool { - if o != nil && !IsNil(o.NoContentChangeSince) { +// HasPrn returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasPrn() bool { + if o != nil && !IsNil(o.Prn) { return true } return false } -// SetNoContentChangeSince gets a reference to the given string and assigns it to the NoContentChangeSince field. -func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { - o.NoContentChangeSince = &v +// SetPrn gets a reference to the given string and assigns it to the Prn field. +func (o *ArtifactDistributionResponse) SetPrn(v string) { + o.Prn = &v } -// GetPulpHref returns the PulpHref field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpHref() string { - if o == nil || IsNil(o.PulpHref) { +// 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.PulpHref + return *o.BaseUrl } -// GetPulpHrefOk returns a tuple with the PulpHref 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) GetPulpHrefOk() (*string, bool) { - if o == nil || IsNil(o.PulpHref) { +func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseUrl) { return nil, false } - return o.PulpHref, true + return o.BaseUrl, true } -// HasPulpHref returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpHref() bool { - if o != nil && !IsNil(o.PulpHref) { +// 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 } -// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. -func (o *ArtifactDistributionResponse) SetPulpHref(v string) { - o.PulpHref = &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 } -// GetBasePath returns the BasePath field value -func (o *ArtifactDistributionResponse) GetBasePath() string { +// GetName returns the Name field value +func (o *ArtifactDistributionResponse) GetName() string { if o == nil { var ret string return ret } - return o.BasePath + return o.Name } -// GetBasePathOk returns a tuple with the BasePath field value +// GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool) { +func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool) { if o == nil { return nil, false } - return &o.BasePath, true + return &o.Name, true } -// SetBasePath sets field value -func (o *ArtifactDistributionResponse) SetBasePath(v string) { - o.BasePath = v +// SetName sets field value +func (o *ArtifactDistributionResponse) SetName(v string) { + o.Name = v } func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { @@ -426,35 +426,35 @@ 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.Hidden) { - toSerialize["hidden"] = o.Hidden - } - if !IsNil(o.BaseUrl) { - toSerialize["base_url"] = o.BaseUrl + if !IsNil(o.NoContentChangeSince) { + toSerialize["no_content_change_since"] = o.NoContentChangeSince } - if !IsNil(o.Prn) { - toSerialize["prn"] = o.Prn + if !IsNil(o.PulpHref) { + toSerialize["pulp_href"] = o.PulpHref } - toSerialize["name"] = o.Name + toSerialize["base_path"] = o.BasePath if o.ContentGuard.IsSet() { toSerialize["content_guard"] = o.ContentGuard.Get() } if !IsNil(o.PulpCreated) { toSerialize["pulp_created"] = o.PulpCreated } + if !IsNil(o.Hidden) { + toSerialize["hidden"] = o.Hidden + } + if !IsNil(o.PulpLastUpdated) { + toSerialize["pulp_last_updated"] = o.PulpLastUpdated + } if !IsNil(o.PulpLabels) { toSerialize["pulp_labels"] = o.PulpLabels } - if !IsNil(o.NoContentChangeSince) { - toSerialize["no_content_change_since"] = o.NoContentChangeSince + if !IsNil(o.Prn) { + toSerialize["prn"] = o.Prn } - if !IsNil(o.PulpHref) { - toSerialize["pulp_href"] = o.PulpHref + if !IsNil(o.BaseUrl) { + toSerialize["base_url"] = o.BaseUrl } - toSerialize["base_path"] = o.BasePath + toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -468,8 +468,8 @@ func (o *ArtifactDistributionResponse) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "name", "base_path", + "name", } allProperties := make(map[string]interface{}) @@ -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, "hidden") - delete(additionalProperties, "base_url") - delete(additionalProperties, "prn") - delete(additionalProperties, "name") - delete(additionalProperties, "content_guard") - delete(additionalProperties, "pulp_created") - delete(additionalProperties, "pulp_labels") delete(additionalProperties, "no_content_change_since") delete(additionalProperties, "pulp_href") delete(additionalProperties, "base_path") + delete(additionalProperties, "content_guard") + delete(additionalProperties, "pulp_created") + delete(additionalProperties, "hidden") + delete(additionalProperties, "pulp_last_updated") + delete(additionalProperties, "pulp_labels") + delete(additionalProperties, "prn") + delete(additionalProperties, "base_url") + delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties }