diff --git a/release/README.md b/release/README.md index fa27618..2fe1b05 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: 689d598a363629d8a5469d9b2a847485d8bed2c37d356e3e82bb4a5edeb4224e +- Package version: 9258456e9d3b4a85d3e54836d2b9793a9955a3c37ae5486b92ad2e96ab328e64 - 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 b41ff7e..0ce3a91 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -39669,35 +39669,19 @@ 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 name: name base_url: base_url - 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_created: - description: Timestamp of creation. - format: date-time - 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\ - \ - pulp_created and pulp_last_updated dates will be the same." - format: date-time - readOnly: true - type: string - pulp_href: - format: uri - 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\ @@ -39708,13 +39692,30 @@ components: default: false description: Whether this distribution should be shown in the content app. type: boolean + pulp_labels: + additionalProperties: + nullable: true + type: string + type: object base_path: description: The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. "foo" and "foo/bar") type: string - prn: - description: The Pulp Resource Name (PRN). + 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_created: + description: Timestamp of creation. + format: date-time + readOnly: true + type: string + pulp_href: + format: uri readOnly: true type: string name: @@ -39724,16 +39725,15 @@ components: description: The URL for accessing the publication as defined by this distribution. readOnly: true type: string - pulp_labels: - additionalProperties: - nullable: true - type: string - type: object content_guard: description: An optional content-guard. format: uri nullable: true type: string + prn: + description: The Pulp Resource Name (PRN). + readOnly: true + type: string required: - base_path - name @@ -42317,27 +42317,27 @@ components: previous: http://api.example.org/accounts/?offset=200&limit=100 count: 123 results: - - pulp_href: https://openapi-generator.tech - hidden: false + - hidden: false pulp_labels: key: pulp_labels + pulp_href: https://openapi-generator.tech no_content_change_since: no_content_change_since name: name base_url: base_url - 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 - - pulp_href: https://openapi-generator.tech - hidden: false + - hidden: false pulp_labels: key: pulp_labels + pulp_href: https://openapi-generator.tech no_content_change_since: no_content_change_since name: name base_url: base_url - 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 f3e4906..b18b46c 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/689d598a363629d8a5469d9b2a847485d8bed2c37d356e3e82bb4a5edeb4224e/go", + UserAgent: "OpenAPI-Generator/9258456e9d3b4a85d3e54836d2b9793a9955a3c37ae5486b92ad2e96ab328e64/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index 7899210..ed61d7f 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,17 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [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] -**PulpHref** | Pointer to **string** | | [optional] [readonly] **NoContentChangeSince** | Pointer to **string** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional] [readonly] **Hidden** | Pointer to **bool** | Whether this distribution should be shown in the content app. | [optional] [default to false] +**PulpLabels** | Pointer to **map[string]string** | | [optional] **BasePath** | **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | -**Prn** | Pointer to **string** | The Pulp Resource Name (PRN). | [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] +**PulpHref** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | **BaseUrl** | Pointer to **string** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly] -**PulpLabels** | Pointer to **map[string]string** | | [optional] **ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] +**Prn** | Pointer to **string** | The Pulp Resource Name (PRN). | [optional] [readonly] ## Methods @@ -35,175 +35,175 @@ 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 -### GetPulpCreated +### GetNoContentChangeSince -`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` +`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` -GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. +GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. -### GetPulpCreatedOk +### GetNoContentChangeSinceOk -`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` +`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` -GetPulpCreatedOk returns a tuple with the PulpCreated 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. -### SetPulpCreated +### SetNoContentChangeSince -`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` +`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` -SetPulpCreated sets PulpCreated field to given value. +SetNoContentChangeSince sets NoContentChangeSince field to given value. -### HasPulpCreated +### HasNoContentChangeSince -`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` +`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` -HasPulpCreated returns a boolean if a field has been set. +HasNoContentChangeSince 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. -### GetPulpHref +### GetPulpLabels -`func (o *ArtifactDistributionResponse) GetPulpHref() string` +`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` -GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. +GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. -### GetPulpHrefOk +### GetPulpLabelsOk -`func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` -GetPulpHrefOk returns a tuple with the PulpHref field if it's non-nil, zero value otherwise +GetPulpLabelsOk returns a tuple with the PulpLabels field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPulpHref +### SetPulpLabels -`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` +`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` -SetPulpHref sets PulpHref field to given value. +SetPulpLabels sets PulpLabels field to given value. -### HasPulpHref +### HasPulpLabels -`func (o *ArtifactDistributionResponse) HasPulpHref() bool` +`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` -HasPulpHref returns a boolean if a field has been set. +HasPulpLabels returns a boolean if a field has been set. -### GetNoContentChangeSince +### GetBasePath -`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` +`func (o *ArtifactDistributionResponse) GetBasePath() string` -GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. +GetBasePath returns the BasePath field if non-nil, zero value otherwise. -### GetNoContentChangeSinceOk +### GetBasePathOk -`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` -GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince 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. -### SetNoContentChangeSince - -`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` - -SetNoContentChangeSince sets NoContentChangeSince field to given value. +### SetBasePath -### HasNoContentChangeSince +`func (o *ArtifactDistributionResponse) SetBasePath(v string)` -`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` +SetBasePath sets BasePath field to given value. -HasNoContentChangeSince returns a boolean if a field has been set. -### GetHidden +### GetPulpLastUpdated -`func (o *ArtifactDistributionResponse) GetHidden() bool` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` -GetHidden returns the Hidden field if non-nil, zero value otherwise. +GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. -### GetHiddenOk +### GetPulpLastUpdatedOk -`func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` -GetHiddenOk returns a tuple with the Hidden 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. -### SetHidden +### SetPulpLastUpdated -`func (o *ArtifactDistributionResponse) SetHidden(v bool)` +`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` -SetHidden sets Hidden field to given value. +SetPulpLastUpdated sets PulpLastUpdated field to given value. -### HasHidden +### HasPulpLastUpdated -`func (o *ArtifactDistributionResponse) HasHidden() bool` +`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` -HasHidden returns a boolean if a field has been set. +HasPulpLastUpdated returns a boolean if a field has been set. -### GetBasePath +### GetPulpCreated -`func (o *ArtifactDistributionResponse) GetBasePath() string` +`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` -GetBasePath returns the BasePath field if non-nil, zero value otherwise. +GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. -### GetBasePathOk +### GetPulpCreatedOk -`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` -GetBasePathOk returns a tuple with the BasePath 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. -### SetBasePath +### SetPulpCreated -`func (o *ArtifactDistributionResponse) SetBasePath(v string)` +`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` -SetBasePath sets BasePath field to given value. +SetPulpCreated sets PulpCreated field to given value. +### HasPulpCreated -### GetPrn +`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` -`func (o *ArtifactDistributionResponse) GetPrn() string` +HasPulpCreated returns a boolean if a field has been set. -GetPrn returns the Prn field if non-nil, zero value otherwise. +### GetPulpHref -### GetPrnOk +`func (o *ArtifactDistributionResponse) GetPulpHref() string` -`func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool)` +GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. -GetPrnOk returns a tuple with the Prn field if it's non-nil, zero value otherwise +### GetPulpHrefOk + +`func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool)` + +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 @@ -250,31 +250,6 @@ SetBaseUrl sets BaseUrl field to given value. HasBaseUrl returns a boolean if a field has been set. -### GetPulpLabels - -`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` - -GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. - -### GetPulpLabelsOk - -`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, 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. - -### SetPulpLabels - -`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` - -SetPulpLabels sets PulpLabels field to given value. - -### HasPulpLabels - -`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` - -HasPulpLabels returns a boolean if a field has been set. - ### GetContentGuard `func (o *ArtifactDistributionResponse) GetContentGuard() string` @@ -310,6 +285,31 @@ 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 +### GetPrn + +`func (o *ArtifactDistributionResponse) GetPrn() string` + +GetPrn returns the Prn field if non-nil, zero value otherwise. + +### GetPrnOk + +`func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool)` + +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. + +### SetPrn + +`func (o *ArtifactDistributionResponse) SetPrn(v string)` + +SetPrn sets Prn field to given value. + +### HasPrn + +`func (o *ArtifactDistributionResponse) HasPrn() bool` + +HasPrn 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 96c20d7..8fd3615 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 creation. - PulpCreated *time.Time `json:"pulp_created,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"` - PulpHref *string `json:"pulp_href,omitempty"` // Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. NoContentChangeSince *string `json:"no_content_change_since,omitempty"` // Whether this distribution should be shown in the content app. Hidden *bool `json:"hidden,omitempty"` + PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") BasePath string `json:"base_path"` - // The Pulp Resource Name (PRN). - Prn *string `json:"prn,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"` + PulpHref *string `json:"pulp_href,omitempty"` // A unique name. Ex, `rawhide` and `stable`. Name string `json:"name"` // 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"` // An optional content-guard. ContentGuard NullableString `json:"content_guard,omitempty"` + // The Pulp Resource Name (PRN). + Prn *string `json:"prn,omitempty"` AdditionalProperties map[string]interface{} } @@ -70,220 +70,220 @@ func NewArtifactDistributionResponseWithDefaults() *ArtifactDistributionResponse return &this } -// 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 +// 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.PulpCreated + return *o.NoContentChangeSince } -// GetPulpCreatedOk returns a tuple with the PulpCreated 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) GetPulpCreatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpCreated) { +func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool) { + if o == nil || IsNil(o.NoContentChangeSince) { return nil, false } - return o.PulpCreated, true + return o.NoContentChangeSince, true } -// HasPulpCreated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpCreated() bool { - if o != nil && !IsNil(o.PulpCreated) { +// 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 } -// 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 +// SetNoContentChangeSince gets a reference to the given string and assigns it to the NoContentChangeSince field. +func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { + o.NoContentChangeSince = &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 +// 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.PulpLastUpdated + return *o.Hidden } -// GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field value if set, nil otherwise +// 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) GetPulpLastUpdatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpLastUpdated) { +func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.Hidden) { return nil, false } - return o.PulpLastUpdated, true + return o.Hidden, true } -// HasPulpLastUpdated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool { - if o != nil && !IsNil(o.PulpLastUpdated) { +// 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 } -// 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 +// SetHidden gets a reference to the given bool and assigns it to the Hidden field. +func (o *ArtifactDistributionResponse) SetHidden(v bool) { + o.Hidden = &v } -// GetPulpHref returns the PulpHref field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpHref() string { - if o == nil || IsNil(o.PulpHref) { - var ret string +// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string { + if o == nil || IsNil(o.PulpLabels) { + var ret map[string]string return ret } - return *o.PulpHref + return *o.PulpLabels } -// GetPulpHrefOk returns a tuple with the PulpHref field value if set, nil otherwise +// GetPulpLabelsOk returns a tuple with the PulpLabels field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool) { - if o == nil || IsNil(o.PulpHref) { +func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { return nil, false } - return o.PulpHref, true + return o.PulpLabels, true } -// HasPulpHref returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpHref() bool { - if o != nil && !IsNil(o.PulpHref) { +// HasPulpLabels returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasPulpLabels() bool { + if o != nil && !IsNil(o.PulpLabels) { return true } return false } -// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. -func (o *ArtifactDistributionResponse) SetPulpHref(v string) { - o.PulpHref = &v +// SetPulpLabels gets a reference to the given map[string]string and assigns it to the PulpLabels field. +func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string) { + o.PulpLabels = &v } -// GetNoContentChangeSince returns the NoContentChangeSince field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string { - if o == nil || IsNil(o.NoContentChangeSince) { +// GetBasePath returns the BasePath field value +func (o *ArtifactDistributionResponse) GetBasePath() string { + if o == nil { var ret string return ret } - return *o.NoContentChangeSince + + return o.BasePath } -// GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince 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. -func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool) { - if o == nil || IsNil(o.NoContentChangeSince) { +func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool) { + if o == nil { return nil, false } - return o.NoContentChangeSince, true -} - -// 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 + return &o.BasePath, true } -// SetNoContentChangeSince gets a reference to the given string and assigns it to the NoContentChangeSince field. -func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { - o.NoContentChangeSince = &v +// SetBasePath sets field value +func (o *ArtifactDistributionResponse) SetBasePath(v string) { + o.BasePath = 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 +// 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.Hidden + return *o.PulpLastUpdated } -// GetHiddenOk returns a tuple with the Hidden field value if set, nil otherwise +// GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool) { - if o == nil || IsNil(o.Hidden) { +func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpLastUpdated) { return nil, false } - return o.Hidden, true + return o.PulpLastUpdated, true } -// HasHidden returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasHidden() bool { - if o != nil && !IsNil(o.Hidden) { +// 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 } -// SetHidden gets a reference to the given bool and assigns it to the Hidden field. -func (o *ArtifactDistributionResponse) SetHidden(v bool) { - o.Hidden = &v +// SetPulpLastUpdated gets a reference to the given time.Time and assigns it to the PulpLastUpdated field. +func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time) { + o.PulpLastUpdated = &v } -// GetBasePath returns the BasePath field value -func (o *ArtifactDistributionResponse) GetBasePath() string { - if o == nil { - var ret string +// GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time { + if o == nil || IsNil(o.PulpCreated) { + var ret time.Time return ret } - - return o.BasePath + return *o.PulpCreated } -// GetBasePathOk returns a tuple with the BasePath field value +// 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) GetBasePathOk() (*string, bool) { - if o == nil { +func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpCreated) { return nil, false } - return &o.BasePath, true + return o.PulpCreated, true } -// SetBasePath sets field value -func (o *ArtifactDistributionResponse) SetBasePath(v string) { - o.BasePath = v +// 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 } -// GetPrn returns the Prn field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPrn() string { - if o == nil || IsNil(o.Prn) { +// 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 +} + +// 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 @@ -342,38 +342,6 @@ 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 -} - -// 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) GetPulpLabelsOk() (*map[string]string, bool) { - if o == nil || IsNil(o.PulpLabels) { - return nil, false - } - return o.PulpLabels, true -} - -// 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 -} - -// SetPulpLabels gets a reference to the given map[string]string and assigns it to the PulpLabels field. -func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string) { - o.PulpLabels = &v -} - // GetContentGuard returns the ContentGuard field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ArtifactDistributionResponse) GetContentGuard() string { if o == nil || IsNil(o.ContentGuard.Get()) { @@ -416,6 +384,38 @@ func (o *ArtifactDistributionResponse) UnsetContentGuard() { o.ContentGuard.Unset() } +// 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.Prn +} + +// 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) GetPrnOk() (*string, bool) { + if o == nil || IsNil(o.Prn) { + return nil, false + } + return o.Prn, true +} + +// HasPrn returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasPrn() bool { + if o != nil && !IsNil(o.Prn) { + return true + } + + return false +} + +// SetPrn gets a reference to the given string and assigns it to the Prn field. +func (o *ArtifactDistributionResponse) SetPrn(v string) { + o.Prn = &v +} + func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -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.PulpCreated) { - toSerialize["pulp_created"] = o.PulpCreated - } - if !IsNil(o.PulpLastUpdated) { - toSerialize["pulp_last_updated"] = o.PulpLastUpdated - } - if !IsNil(o.PulpHref) { - toSerialize["pulp_href"] = o.PulpHref - } if !IsNil(o.NoContentChangeSince) { toSerialize["no_content_change_since"] = o.NoContentChangeSince } if !IsNil(o.Hidden) { toSerialize["hidden"] = o.Hidden } + if !IsNil(o.PulpLabels) { + toSerialize["pulp_labels"] = o.PulpLabels + } toSerialize["base_path"] = o.BasePath - if !IsNil(o.Prn) { - toSerialize["prn"] = o.Prn + if !IsNil(o.PulpLastUpdated) { + toSerialize["pulp_last_updated"] = o.PulpLastUpdated + } + if !IsNil(o.PulpCreated) { + toSerialize["pulp_created"] = o.PulpCreated + } + if !IsNil(o.PulpHref) { + toSerialize["pulp_href"] = o.PulpHref } toSerialize["name"] = o.Name if !IsNil(o.BaseUrl) { toSerialize["base_url"] = o.BaseUrl } - if !IsNil(o.PulpLabels) { - toSerialize["pulp_labels"] = o.PulpLabels - } if o.ContentGuard.IsSet() { toSerialize["content_guard"] = o.ContentGuard.Get() } + if !IsNil(o.Prn) { + toSerialize["prn"] = o.Prn + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -499,17 +499,17 @@ func (o *ArtifactDistributionResponse) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "pulp_created") - delete(additionalProperties, "pulp_last_updated") - delete(additionalProperties, "pulp_href") delete(additionalProperties, "no_content_change_since") delete(additionalProperties, "hidden") + delete(additionalProperties, "pulp_labels") delete(additionalProperties, "base_path") - delete(additionalProperties, "prn") + delete(additionalProperties, "pulp_last_updated") + delete(additionalProperties, "pulp_created") + delete(additionalProperties, "pulp_href") delete(additionalProperties, "name") delete(additionalProperties, "base_url") - delete(additionalProperties, "pulp_labels") delete(additionalProperties, "content_guard") + delete(additionalProperties, "prn") o.AdditionalProperties = additionalProperties }