From 7669ad3f577ee06df9f945028eb2f6c11afd8016 Mon Sep 17 00:00:00 2001 From: andrewgdewar Date: Thu, 25 Jul 2024 07:08:49 +0000 Subject: [PATCH] Update pulp bindings to de24b382d968bd5ed3a4252b36e4755ebb4eb2cb7a98d596b8e3294aa65e495a --- release/README.md | 2 +- release/api/openapi.yaml | 68 ++-- release/configuration.go | 2 +- release/docs/ArtifactDistributionResponse.md | 218 ++++++------ .../model_artifact_distribution_response.go | 310 +++++++++--------- 5 files changed, 300 insertions(+), 300 deletions(-) diff --git a/release/README.md b/release/README.md index c36c4de..970899d 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: 9d5beb82a436bd89a92e4d8a965b735ea54669037d2e4353b86e245a563d9642 +- Package version: de24b382d968bd5ed3a4252b36e4755ebb4eb2cb7a98d596b8e3294aa65e495a - Generator version: 7.7.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 51c5b97..7e9827d 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -35819,17 +35819,29 @@ components: ArtifactDistributionResponse: description: A serializer for ArtifactDistribution. example: - pulp_href: https://openapi-generator.tech - hidden: false pulp_labels: key: pulp_labels - name: name + hidden: false + pulp_href: https://openapi-generator.tech base_url: base_url - base_path: base_path + name: name pulp_created: 2000-01-23T04:56:07.000+00:00 + base_path: base_path pulp_last_updated: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech properties: + pulp_labels: + additionalProperties: + nullable: true + type: string + type: object + base_url: + description: The URL for accessing the publication as defined by this distribution. + readOnly: true + type: string + name: + description: "A unique name. Ex, `rawhide` and `stable`." + 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\ @@ -35837,16 +35849,15 @@ components: format: date-time readOnly: true type: string - name: - description: "A unique name. Ex, `rawhide` and `stable`." - type: string - base_url: - description: The URL for accessing the publication as defined by this distribution. + pulp_created: + description: Timestamp of creation. + format: date-time readOnly: true type: string - pulp_href: + content_guard: + description: An optional content-guard. format: uri - readOnly: true + nullable: true type: string hidden: default: false @@ -35857,20 +35868,9 @@ components: paths that overlap with other distribution base paths (e.g. "foo" and "foo/bar") type: string - pulp_labels: - additionalProperties: - nullable: true - type: string - type: object - pulp_created: - description: Timestamp of creation. - format: date-time - readOnly: true - type: string - content_guard: - description: An optional content-guard. + pulp_href: format: uri - nullable: true + readOnly: true type: string required: - base_path @@ -37397,24 +37397,24 @@ components: previous: http://api.example.org/accounts/?offset=200&limit=100 count: 123 results: - - pulp_href: https://openapi-generator.tech - hidden: false - pulp_labels: + - pulp_labels: key: pulp_labels - name: name + hidden: false + pulp_href: https://openapi-generator.tech base_url: base_url - base_path: base_path + name: name pulp_created: 2000-01-23T04:56:07.000+00:00 + base_path: base_path pulp_last_updated: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech - - pulp_href: https://openapi-generator.tech - hidden: false - pulp_labels: + - pulp_labels: key: pulp_labels - name: name + hidden: false + pulp_href: https://openapi-generator.tech base_url: base_url - base_path: base_path + name: name pulp_created: 2000-01-23T04:56:07.000+00:00 + base_path: base_path pulp_last_updated: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech properties: diff --git a/release/configuration.go b/release/configuration.go index f5584fb..4dc6c75 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/9d5beb82a436bd89a92e4d8a965b735ea54669037d2e4353b86e245a563d9642/go", + UserAgent: "OpenAPI-Generator/de24b382d968bd5ed3a4252b36e4755ebb4eb2cb7a98d596b8e3294aa65e495a/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index 9b8afa7..0700c65 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,15 +4,15 @@ 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] -**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] -**PulpHref** | Pointer to **string** | | [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\") | **PulpLabels** | Pointer to **map[string]string** | | [optional] +**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`. | +**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] **ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] +**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\") | +**PulpHref** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -33,50 +33,30 @@ NewArtifactDistributionResponseWithDefaults instantiates a new ArtifactDistribut This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetPulpLastUpdated +### GetPulpLabels -`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` +`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` -GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. +GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. -### GetPulpLastUpdatedOk +### GetPulpLabelsOk -`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` -GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated 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. -### 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. - -### GetName - -`func (o *ArtifactDistributionResponse) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` +### SetPulpLabels -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` -### SetName +SetPulpLabels sets PulpLabels field to given value. -`func (o *ArtifactDistributionResponse) SetName(v string)` +### HasPulpLabels -SetName sets Name field to given value. +`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` +HasPulpLabels returns a boolean if a field has been set. ### GetBaseUrl @@ -103,100 +83,50 @@ SetBaseUrl sets BaseUrl field to given value. HasBaseUrl returns a boolean if a field has been set. -### GetPulpHref - -`func (o *ArtifactDistributionResponse) GetPulpHref() string` - -GetPulpHref returns the PulpHref field if 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. - -### SetPulpHref - -`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` - -SetPulpHref sets PulpHref field to given value. - -### HasPulpHref - -`func (o *ArtifactDistributionResponse) HasPulpHref() bool` - -HasPulpHref 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. - -### 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. -### GetPulpLabels +### GetPulpLastUpdated -`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` -GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. +GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. -### GetPulpLabelsOk +### GetPulpLastUpdatedOk -`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` -GetPulpLabelsOk returns a tuple with the PulpLabels 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. -### SetPulpLabels +### SetPulpLastUpdated -`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` +`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` -SetPulpLabels sets PulpLabels field to given value. +SetPulpLastUpdated sets PulpLastUpdated field to given value. -### HasPulpLabels +### HasPulpLastUpdated -`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` +`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` -HasPulpLabels returns a boolean if a field has been set. +HasPulpLastUpdated returns a boolean if a field has been set. ### GetPulpCreated @@ -258,6 +188,76 @@ 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 +### 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. + +### GetBasePath + +`func (o *ArtifactDistributionResponse) GetBasePath() string` + +GetBasePath returns the BasePath field if non-nil, zero value otherwise. + +### GetBasePathOk + +`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` + +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. + +### SetBasePath + +`func (o *ArtifactDistributionResponse) SetBasePath(v string)` + +SetBasePath sets BasePath field to given value. + + +### GetPulpHref + +`func (o *ArtifactDistributionResponse) GetPulpHref() string` + +GetPulpHref returns the PulpHref field if 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. + +### SetPulpHref + +`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` + +SetPulpHref sets PulpHref field to given value. + +### HasPulpHref + +`func (o *ArtifactDistributionResponse) HasPulpHref() bool` + +HasPulpHref returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/release/model_artifact_distribution_response.go b/release/model_artifact_distribution_response.go index 14489f1..0718bf0 100644 --- a/release/model_artifact_distribution_response.go +++ b/release/model_artifact_distribution_response.go @@ -22,22 +22,22 @@ 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"` - // A unique name. Ex, `rawhide` and `stable`. - Name string `json:"name"` + PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // The URL for accessing the publication as defined by this distribution. BaseUrl *string `json:"base_url,omitempty"` - PulpHref *string `json:"pulp_href,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"` - PulpLabels *map[string]string `json:"pulp_labels,omitempty"` + // A unique name. Ex, `rawhide` and `stable`. + Name string `json:"name"` + // 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"` // An optional content-guard. ContentGuard NullableString `json:"content_guard,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"` + PulpHref *string `json:"pulp_href,omitempty"` AdditionalProperties map[string]interface{} } @@ -66,60 +66,36 @@ 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 +// 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.PulpLastUpdated + return *o.PulpLabels } -// GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated 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) GetPulpLastUpdatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpLastUpdated) { +func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { return nil, false } - return o.PulpLastUpdated, true + return o.PulpLabels, true } -// HasPulpLastUpdated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool { - if o != nil && !IsNil(o.PulpLastUpdated) { +// 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 } -// 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 -} - -// GetName returns the Name field value -func (o *ArtifactDistributionResponse) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *ArtifactDistributionResponse) SetName(v string) { - o.Name = v +// 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 } // GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. @@ -154,124 +130,60 @@ func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { o.BaseUrl = &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.PulpHref -} - -// 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) GetPulpHrefOk() (*string, bool) { - if o == nil || IsNil(o.PulpHref) { - return nil, false - } - return o.PulpHref, true -} - -// 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 -} - -// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. -func (o *ArtifactDistributionResponse) SetPulpHref(v string) { - o.PulpHref = &v -} - -// GetHidden returns the Hidden field value if set, zero value otherwise. -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 -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 } -// 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 +// 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.PulpLabels + return *o.PulpLastUpdated } -// GetPulpLabelsOk returns a tuple with the PulpLabels 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) GetPulpLabelsOk() (*map[string]string, bool) { - if o == nil || IsNil(o.PulpLabels) { +func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpLastUpdated) { return nil, false } - return o.PulpLabels, true + return o.PulpLastUpdated, true } -// HasPulpLabels returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLabels() bool { - if o != nil && !IsNil(o.PulpLabels) { +// 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 } -// 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 +// 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 } // GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. @@ -348,6 +260,94 @@ func (o *ArtifactDistributionResponse) UnsetContentGuard() { o.ContentGuard.Unset() } +// 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 +func (o *ArtifactDistributionResponse) GetBasePath() string { + if o == nil { + var ret string + return ret + } + + return o.BasePath +} + +// GetBasePathOk returns a tuple with the BasePath field value +// and a boolean to check if the value has been set. +func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BasePath, true +} + +// SetBasePath sets field value +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) { + var ret string + return ret + } + return *o.PulpHref +} + +// 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) GetPulpHrefOk() (*string, bool) { + if o == nil || IsNil(o.PulpHref) { + return nil, false + } + return o.PulpHref, true +} + +// 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 +} + +// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. +func (o *ArtifactDistributionResponse) SetPulpHref(v string) { + o.PulpHref = &v +} + func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -358,22 +358,15 @@ 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.PulpLabels) { + toSerialize["pulp_labels"] = o.PulpLabels } - toSerialize["name"] = o.Name if !IsNil(o.BaseUrl) { toSerialize["base_url"] = o.BaseUrl } - if !IsNil(o.PulpHref) { - toSerialize["pulp_href"] = o.PulpHref - } - if !IsNil(o.Hidden) { - toSerialize["hidden"] = o.Hidden - } - toSerialize["base_path"] = o.BasePath - if !IsNil(o.PulpLabels) { - toSerialize["pulp_labels"] = o.PulpLabels + toSerialize["name"] = o.Name + if !IsNil(o.PulpLastUpdated) { + toSerialize["pulp_last_updated"] = o.PulpLastUpdated } if !IsNil(o.PulpCreated) { toSerialize["pulp_created"] = o.PulpCreated @@ -381,6 +374,13 @@ func (o ArtifactDistributionResponse) ToMap() (map[string]interface{}, error) { if o.ContentGuard.IsSet() { toSerialize["content_guard"] = o.ContentGuard.Get() } + if !IsNil(o.Hidden) { + toSerialize["hidden"] = o.Hidden + } + toSerialize["base_path"] = o.BasePath + if !IsNil(o.PulpHref) { + toSerialize["pulp_href"] = o.PulpHref + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -425,15 +425,15 @@ 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, "name") - delete(additionalProperties, "base_url") - delete(additionalProperties, "pulp_href") - delete(additionalProperties, "hidden") - delete(additionalProperties, "base_path") delete(additionalProperties, "pulp_labels") + delete(additionalProperties, "base_url") + delete(additionalProperties, "name") + delete(additionalProperties, "pulp_last_updated") delete(additionalProperties, "pulp_created") delete(additionalProperties, "content_guard") + delete(additionalProperties, "hidden") + delete(additionalProperties, "base_path") + delete(additionalProperties, "pulp_href") o.AdditionalProperties = additionalProperties }