diff --git a/release/README.md b/release/README.md index 43e52205..a963795d 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: de24b382d968bd5ed3a4252b36e475e8ea58b20b7a98d596b8e3294aa65e495a +- Package version: e69db48356e528a464be3da896237bab442bedfa7d54eb5892a9db36ae29d5a3 - 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 63e78c44..627c9029 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -13,7 +13,7 @@ info: x-logo: url: https://pulp.plan.io/attachments/download/517478/pulp_logo_word_rectangle.svg x-pulp-app-versions: - core: 3.29.0 + core: 3.29.1 certguard: 1.6.5 rpm: 3.22.2 x-pulp-domain-enabled: true @@ -18933,42 +18933,21 @@ components: ArtifactDistributionResponse: description: A serializer for ArtifactDistribution. example: - pulp_labels: - key: pulp_labels pulp_href: https://openapi-generator.tech hidden: false - name: name + pulp_labels: + key: pulp_labels base_url: base_url + name: name base_path: base_path pulp_created: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech properties: - pulp_labels: - additionalProperties: - nullable: true - type: string - type: object - content_guard: - description: An optional content-guard. - format: uri - nullable: true - type: string - pulp_href: - format: uri - readOnly: true - type: string - name: - description: "A unique name. Ex, `rawhide` and `stable`." - type: string base_path: description: The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. "foo" and "foo/bar") type: string - hidden: - default: false - description: Whether this distribution should be shown in the content app. - type: boolean base_url: description: The URL for accessing the publication as defined by this distribution. readOnly: true @@ -18978,6 +18957,27 @@ components: format: date-time readOnly: true type: string + name: + description: "A unique name. Ex, `rawhide` and `stable`." + type: string + pulp_href: + format: uri + readOnly: true + type: string + hidden: + default: false + description: Whether this distribution should be shown in the content app. + type: boolean + pulp_labels: + additionalProperties: + nullable: true + type: string + type: object + content_guard: + description: An optional content-guard. + format: uri + nullable: true + type: string required: - base_path - name @@ -20154,21 +20154,21 @@ components: previous: http://api.example.org/accounts/?offset=200&limit=100 count: 123 results: - - pulp_labels: - key: pulp_labels - pulp_href: https://openapi-generator.tech + - pulp_href: https://openapi-generator.tech hidden: false - name: name + pulp_labels: + key: pulp_labels base_url: base_url + name: name base_path: base_path pulp_created: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech - - pulp_labels: - key: pulp_labels - pulp_href: https://openapi-generator.tech + - pulp_href: https://openapi-generator.tech hidden: false - name: name + pulp_labels: + key: pulp_labels base_url: base_url + name: name base_path: base_path pulp_created: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech diff --git a/release/configuration.go b/release/configuration.go index 29cf7294..4555c33f 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/de24b382d968bd5ed3a4252b36e475e8ea58b20b7a98d596b8e3294aa65e495a/go", + UserAgent: "OpenAPI-Generator/e69db48356e528a464be3da896237bab442bedfa7d54eb5892a9db36ae29d5a3/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index d08d6de7..8f78bc98 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,20 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PulpLabels** | Pointer to **map[string]string** | | [optional] -**ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] -**PulpHref** | Pointer to **string** | | [optional] [readonly] -**Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | **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\") | -**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] **PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] +**Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | +**PulpHref** | Pointer to **string** | | [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] +**ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] ## 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, @@ -32,90 +32,75 @@ NewArtifactDistributionResponseWithDefaults instantiates a new ArtifactDistribut This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetPulpLabels +### GetBasePath -`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` +`func (o *ArtifactDistributionResponse) GetBasePath() string` -GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. +GetBasePath returns the BasePath field if non-nil, zero value otherwise. -### GetPulpLabelsOk +### GetBasePathOk -`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` +`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` -GetPulpLabelsOk returns a tuple with the PulpLabels 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. -### SetPulpLabels - -`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` - -SetPulpLabels sets PulpLabels field to given value. +### SetBasePath -### HasPulpLabels +`func (o *ArtifactDistributionResponse) SetBasePath(v string)` -`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` +SetBasePath sets BasePath field to given value. -HasPulpLabels returns a boolean if a field has been set. -### GetContentGuard +### GetBaseUrl -`func (o *ArtifactDistributionResponse) GetContentGuard() string` +`func (o *ArtifactDistributionResponse) GetBaseUrl() string` -GetContentGuard returns the ContentGuard field if non-nil, zero value otherwise. +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. -### GetContentGuardOk +### GetBaseUrlOk -`func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` -GetContentGuardOk returns a tuple with the ContentGuard 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. -### SetContentGuard - -`func (o *ArtifactDistributionResponse) SetContentGuard(v string)` - -SetContentGuard sets ContentGuard field to given value. - -### HasContentGuard - -`func (o *ArtifactDistributionResponse) HasContentGuard() bool` +### SetBaseUrl -HasContentGuard returns a boolean if a field has been set. +`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` -### SetContentGuardNil +SetBaseUrl sets BaseUrl field to given value. -`func (o *ArtifactDistributionResponse) SetContentGuardNil(b bool)` +### HasBaseUrl - SetContentGuardNil sets the value for ContentGuard to be an explicit nil +`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` -### UnsetContentGuard -`func (o *ArtifactDistributionResponse) UnsetContentGuard()` +HasBaseUrl returns a boolean if a field has been set. -UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil -### GetPulpHref +### GetPulpCreated -`func (o *ArtifactDistributionResponse) GetPulpHref() string` +`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` -GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. +GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. -### GetPulpHrefOk +### GetPulpCreatedOk -`func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` -GetPulpHrefOk returns a tuple with the PulpHref 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. -### SetPulpHref +### SetPulpCreated -`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` +`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` -SetPulpHref sets PulpHref field to given value. +SetPulpCreated sets PulpCreated field to given value. -### HasPulpHref +### HasPulpCreated -`func (o *ArtifactDistributionResponse) HasPulpHref() bool` +`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` -HasPulpHref returns a boolean if a field has been set. +HasPulpCreated returns a boolean if a field has been set. ### GetName @@ -137,25 +122,30 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetBasePath +### GetPulpHref -`func (o *ArtifactDistributionResponse) GetBasePath() string` +`func (o *ArtifactDistributionResponse) GetPulpHref() string` -GetBasePath returns the BasePath field if non-nil, zero value otherwise. +GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. -### GetBasePathOk +### GetPulpHrefOk -`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool)` -GetBasePathOk returns a tuple with the BasePath 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. -### SetBasePath +### SetPulpHref -`func (o *ArtifactDistributionResponse) SetBasePath(v string)` +`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` -SetBasePath sets BasePath field to given value. +SetPulpHref sets PulpHref field to given value. + +### HasPulpHref +`func (o *ArtifactDistributionResponse) HasPulpHref() bool` + +HasPulpHref returns a boolean if a field has been set. ### GetHidden @@ -182,56 +172,66 @@ SetHidden sets Hidden field to given value. HasHidden returns a boolean if a field has been set. -### GetBaseUrl +### GetPulpLabels -`func (o *ArtifactDistributionResponse) GetBaseUrl() string` +`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` -GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. +GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. -### GetBaseUrlOk +### GetPulpLabelsOk -`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` -GetBaseUrlOk returns a tuple with the BaseUrl 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. -### SetBaseUrl +### SetPulpLabels -`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` +`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` -SetBaseUrl sets BaseUrl field to given value. +SetPulpLabels sets PulpLabels field to given value. -### HasBaseUrl +### HasPulpLabels -`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` +`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` -HasBaseUrl returns a boolean if a field has been set. +HasPulpLabels returns a boolean if a field has been set. -### GetPulpCreated +### GetContentGuard -`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` +`func (o *ArtifactDistributionResponse) GetContentGuard() string` -GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. +GetContentGuard returns the ContentGuard field if non-nil, zero value otherwise. -### GetPulpCreatedOk +### GetContentGuardOk -`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` +`func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool)` -GetPulpCreatedOk returns a tuple with the PulpCreated field if it's non-nil, zero value otherwise +GetContentGuardOk returns a tuple with the ContentGuard field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPulpCreated +### SetContentGuard -`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` +`func (o *ArtifactDistributionResponse) SetContentGuard(v string)` -SetPulpCreated sets PulpCreated field to given value. +SetContentGuard sets ContentGuard field to given value. -### HasPulpCreated +### HasContentGuard -`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` +`func (o *ArtifactDistributionResponse) HasContentGuard() bool` -HasPulpCreated returns a boolean if a field has been set. +HasContentGuard returns a boolean if a field has been set. +### SetContentGuardNil + +`func (o *ArtifactDistributionResponse) SetContentGuardNil(b bool)` + + SetContentGuardNil sets the value for ContentGuard to be an explicit nil + +### UnsetContentGuard +`func (o *ArtifactDistributionResponse) UnsetContentGuard()` + +UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil [[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 801d5895..4b3f1cdf 100644 --- a/release/model_artifact_distribution_response.go +++ b/release/model_artifact_distribution_response.go @@ -21,30 +21,30 @@ var _ MappedNullable = &ArtifactDistributionResponse{} // ArtifactDistributionResponse A serializer for ArtifactDistribution. type ArtifactDistributionResponse struct { - PulpLabels *map[string]string `json:"pulp_labels,omitempty"` - // An optional content-guard. - ContentGuard NullableString `json:"content_guard,omitempty"` - PulpHref *string `json:"pulp_href,omitempty"` - // A unique name. Ex, `rawhide` and `stable`. - Name string `json:"name"` // 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"` - // 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 creation. PulpCreated *time.Time `json:"pulp_created,omitempty"` + // A unique name. Ex, `rawhide` and `stable`. + Name string `json:"name"` + PulpHref *string `json:"pulp_href,omitempty"` + // Whether this distribution should be shown in the content app. + Hidden *bool `json:"hidden,omitempty"` + PulpLabels *map[string]string `json:"pulp_labels,omitempty"` + // An optional content-guard. + ContentGuard NullableString `json:"content_guard,omitempty"` } // NewArtifactDistributionResponse instantiates a new ArtifactDistributionResponse object // 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.Name = name this.BasePath = basePath + this.Name = name var hidden bool = false this.Hidden = &hidden return &this @@ -60,110 +60,92 @@ func NewArtifactDistributionResponseWithDefaults() *ArtifactDistributionResponse return &this } -// 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 +// GetBasePath returns the BasePath field value +func (o *ArtifactDistributionResponse) GetBasePath() string { + if o == nil { + var ret string return ret } - return *o.PulpLabels + + return o.BasePath } -// GetPulpLabelsOk returns a tuple with the PulpLabels 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) GetPulpLabelsOk() (*map[string]string, bool) { - if o == nil || IsNil(o.PulpLabels) { +func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool) { + if o == nil { 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 + return &o.BasePath, true } -// 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 +// 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). -func (o *ArtifactDistributionResponse) GetContentGuard() string { - if o == nil || IsNil(o.ContentGuard.Get()) { +// 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.ContentGuard.Get() + return *o.BaseUrl } -// GetContentGuardOk returns a tuple with the ContentGuard 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. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool) { - if o == nil { +func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseUrl) { return nil, false } - return o.ContentGuard.Get(), o.ContentGuard.IsSet() + return o.BaseUrl, true } -// HasContentGuard returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasContentGuard() bool { - if o != nil && o.ContentGuard.IsSet() { +// 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 } -// SetContentGuard gets a reference to the given NullableString and assigns it to the ContentGuard field. -func (o *ArtifactDistributionResponse) SetContentGuard(v string) { - o.ContentGuard.Set(&v) -} -// SetContentGuardNil sets the value for ContentGuard to be an explicit nil -func (o *ArtifactDistributionResponse) SetContentGuardNil() { - o.ContentGuard.Set(nil) -} - -// UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil -func (o *ArtifactDistributionResponse) UnsetContentGuard() { - o.ContentGuard.Unset() +// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. +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 +// 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.PulpHref + return *o.PulpCreated } -// GetPulpHrefOk returns a tuple with the PulpHref field value if set, nil otherwise +// GetPulpCreatedOk returns a tuple with the PulpCreated field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool) { - if o == nil || IsNil(o.PulpHref) { +func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpCreated) { return nil, false } - return o.PulpHref, true + return o.PulpCreated, true } -// HasPulpHref returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpHref() bool { - if o != nil && !IsNil(o.PulpHref) { +// 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 } -// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. -func (o *ArtifactDistributionResponse) SetPulpHref(v string) { - o.PulpHref = &v +// SetPulpCreated gets a reference to the given time.Time and assigns it to the PulpCreated field. +func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time) { + o.PulpCreated = &v } // GetName returns the Name field value @@ -190,28 +172,36 @@ func (o *ArtifactDistributionResponse) SetName(v string) { o.Name = v } -// GetBasePath returns the BasePath field value -func (o *ArtifactDistributionResponse) GetBasePath() string { - if o == nil { +// 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.BasePath + return *o.PulpHref } -// GetBasePathOk returns a tuple with the BasePath field value +// 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) GetBasePathOk() (*string, bool) { - if o == nil { +func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool) { + if o == nil || IsNil(o.PulpHref) { return nil, false } - return &o.BasePath, true + return o.PulpHref, true } -// SetBasePath sets field value -func (o *ArtifactDistributionResponse) SetBasePath(v string) { - o.BasePath = v +// 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. @@ -246,68 +236,78 @@ 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) { - 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.BaseUrl + return *o.PulpLabels } -// GetBaseUrlOk returns a tuple with the BaseUrl 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) GetBaseUrlOk() (*string, bool) { - if o == nil || IsNil(o.BaseUrl) { +func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { return nil, false } - return o.BaseUrl, true + return o.PulpLabels, true } -// HasBaseUrl returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasBaseUrl() bool { - if o != nil && !IsNil(o.BaseUrl) { +// 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 } -// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. -func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { - o.BaseUrl = &v +// SetPulpLabels gets a reference to the given map[string]string and assigns it to the PulpLabels field. +func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string) { + o.PulpLabels = &v } -// GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time { - if o == nil || IsNil(o.PulpCreated) { - var ret time.Time +// GetContentGuard returns the ContentGuard field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ArtifactDistributionResponse) GetContentGuard() string { + if o == nil || IsNil(o.ContentGuard.Get()) { + var ret string return ret } - return *o.PulpCreated + return *o.ContentGuard.Get() } -// GetPulpCreatedOk returns a tuple with the PulpCreated field value if set, nil otherwise +// GetContentGuardOk returns a tuple with the ContentGuard field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpCreated) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool) { + if o == nil { return nil, false } - return o.PulpCreated, true + return o.ContentGuard.Get(), o.ContentGuard.IsSet() } -// HasPulpCreated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpCreated() bool { - if o != nil && !IsNil(o.PulpCreated) { +// HasContentGuard returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasContentGuard() bool { + if o != nil && o.ContentGuard.IsSet() { return true } return false } -// 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 +// SetContentGuard gets a reference to the given NullableString and assigns it to the ContentGuard field. +func (o *ArtifactDistributionResponse) SetContentGuard(v string) { + o.ContentGuard.Set(&v) +} +// SetContentGuardNil sets the value for ContentGuard to be an explicit nil +func (o *ArtifactDistributionResponse) SetContentGuardNil() { + o.ContentGuard.Set(nil) +} + +// UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil +func (o *ArtifactDistributionResponse) UnsetContentGuard() { + o.ContentGuard.Unset() } func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { @@ -320,25 +320,25 @@ func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { func (o ArtifactDistributionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.PulpLabels) { - toSerialize["pulp_labels"] = o.PulpLabels + toSerialize["base_path"] = o.BasePath + if !IsNil(o.BaseUrl) { + toSerialize["base_url"] = o.BaseUrl } - if o.ContentGuard.IsSet() { - toSerialize["content_guard"] = o.ContentGuard.Get() + if !IsNil(o.PulpCreated) { + toSerialize["pulp_created"] = o.PulpCreated } + toSerialize["name"] = o.Name if !IsNil(o.PulpHref) { toSerialize["pulp_href"] = o.PulpHref } - toSerialize["name"] = o.Name - toSerialize["base_path"] = o.BasePath if !IsNil(o.Hidden) { toSerialize["hidden"] = o.Hidden } - if !IsNil(o.BaseUrl) { - toSerialize["base_url"] = o.BaseUrl + if !IsNil(o.PulpLabels) { + toSerialize["pulp_labels"] = o.PulpLabels } - if !IsNil(o.PulpCreated) { - toSerialize["pulp_created"] = o.PulpCreated + if o.ContentGuard.IsSet() { + toSerialize["content_guard"] = o.ContentGuard.Get() } return toSerialize, nil }