From 4320b8a352dff2d6cb1c0a6b98694cac943df796 Mon Sep 17 00:00:00 2001 From: andrewgdewar Date: Tue, 19 Mar 2024 07:04:15 +0000 Subject: [PATCH] Update pulp bindings to b96da963e282496dea8346bd425a7e99624e58c87e8639db952b3ae5d4b58e83 --- release/README.md | 2 +- release/api/openapi.yaml | 44 +-- release/configuration.go | 2 +- release/docs/ArtifactDistributionResponse.md | 198 ++++++------ .../model_artifact_distribution_response.go | 282 +++++++++--------- 5 files changed, 264 insertions(+), 264 deletions(-) diff --git a/release/README.md b/release/README.md index 9445c8c..045f53c 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: d6a984592e569b42a26e536b94e27aaaea3628cb7a8d53bd49838eda6dba3325 +- Package version: b96da963e282496dea8346bd425a7e99624e58c87e8639db952b3ae5d4b58e83 - Generator version: 7.4.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 93e34c9..2e34753 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -27920,10 +27920,10 @@ components: ArtifactDistributionResponse: description: A serializer for ArtifactDistribution. example: - hidden: false pulp_href: https://openapi-generator.tech pulp_labels: key: pulp_labels + hidden: false base_url: base_url name: name base_path: base_path @@ -27931,18 +27931,25 @@ components: pulp_last_updated: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech properties: - base_url: - description: The URL for accessing the publication as defined by this distribution. - readOnly: true + content_guard: + description: An optional content-guard. + format: uri + nullable: true type: string - name: - description: "A unique name. Ex, `rawhide` and `stable`." + pulp_href: + format: uri + readOnly: true type: string base_path: description: The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. "foo" and "foo/bar") type: string + pulp_labels: + additionalProperties: + nullable: true + type: string + type: object pulp_created: description: Timestamp of creation. format: date-time @@ -27952,20 +27959,10 @@ components: default: false description: Whether this distribution should be shown in the content app. type: boolean - content_guard: - description: An optional content-guard. - format: uri - nullable: true - type: string - pulp_href: - format: uri + base_url: + description: The URL for accessing the publication as defined by this distribution. readOnly: true type: string - pulp_labels: - additionalProperties: - nullable: true - type: string - type: object pulp_last_updated: description: "Timestamp of the last time this resource was updated. Note:\ \ for immutable resources - like content, repository versions, and publication\ @@ -27973,6 +27970,9 @@ components: format: date-time readOnly: true type: string + name: + description: "A unique name. Ex, `rawhide` and `stable`." + type: string required: - base_path - name @@ -29357,20 +29357,20 @@ components: previous: http://api.example.org/accounts/?offset=200&limit=100 count: 123 results: - - hidden: false - pulp_href: https://openapi-generator.tech + - pulp_href: https://openapi-generator.tech pulp_labels: key: pulp_labels + hidden: false base_url: base_url name: name base_path: base_path pulp_created: 2000-01-23T04:56:07.000+00:00 pulp_last_updated: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech - - hidden: false - pulp_href: https://openapi-generator.tech + - pulp_href: https://openapi-generator.tech pulp_labels: key: pulp_labels + hidden: false base_url: base_url name: name base_path: base_path diff --git a/release/configuration.go b/release/configuration.go index 54aaca6..81be78f 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/d6a984592e569b42a26e536b94e27aaaea3628cb7a8d53bd49838eda6dba3325/go", + UserAgent: "OpenAPI-Generator/b96da963e282496dea8346bd425a7e99624e58c87e8639db952b3ae5d4b58e83/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index 667bdd7..f91f711 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,21 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**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`. | -**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\") | -**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] -**Hidden** | Pointer to **bool** | Whether this distribution should be shown in the content app. | [optional] [default to false] **ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] **PulpHref** | Pointer to **string** | | [optional] [readonly] +**BasePath** | **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | **PulpLabels** | Pointer to **map[string]string** | | [optional] +**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] +**Hidden** | Pointer to **bool** | Whether this distribution should be shown in the content app. | [optional] [default to false] +**BaseUrl** | Pointer to **string** | The URL for accessing the publication as defined by this distribution. | [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] +**Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | ## Methods ### NewArtifactDistributionResponse -`func NewArtifactDistributionResponse(name string, basePath string, ) *ArtifactDistributionResponse` +`func NewArtifactDistributionResponse(basePath string, name string, ) *ArtifactDistributionResponse` NewArtifactDistributionResponse instantiates a new ArtifactDistributionResponse object This constructor will assign default values to properties that have it defined, @@ -33,50 +33,65 @@ 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 -### GetBaseUrl +### GetContentGuard -`func (o *ArtifactDistributionResponse) GetBaseUrl() string` +`func (o *ArtifactDistributionResponse) GetContentGuard() string` -GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. +GetContentGuard returns the ContentGuard field if non-nil, zero value otherwise. -### GetBaseUrlOk +### GetContentGuardOk -`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool)` -GetBaseUrlOk returns a tuple with the BaseUrl 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. -### SetBaseUrl +### SetContentGuard -`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` +`func (o *ArtifactDistributionResponse) SetContentGuard(v string)` -SetBaseUrl sets BaseUrl field to given value. +SetContentGuard sets ContentGuard field to given value. -### HasBaseUrl +### HasContentGuard -`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` +`func (o *ArtifactDistributionResponse) HasContentGuard() bool` -HasBaseUrl returns a boolean if a field has been set. +HasContentGuard returns a boolean if a field has been set. -### GetName +### SetContentGuardNil -`func (o *ArtifactDistributionResponse) GetName() string` +`func (o *ArtifactDistributionResponse) SetContentGuardNil(b bool)` -GetName returns the Name field if non-nil, zero value otherwise. + SetContentGuardNil sets the value for ContentGuard to be an explicit nil -### GetNameOk +### UnsetContentGuard +`func (o *ArtifactDistributionResponse) UnsetContentGuard()` -`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` +UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil +### GetPulpHref -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +`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. -### SetName +### SetPulpHref -`func (o *ArtifactDistributionResponse) SetName(v string)` +`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` -SetName sets Name 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. ### GetBasePath @@ -98,6 +113,31 @@ and a boolean to check if the value has been set. SetBasePath sets BasePath field to given value. +### 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. + ### GetPulpCreated `func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` @@ -148,90 +188,30 @@ SetHidden sets Hidden field to given value. HasHidden returns a boolean if a field has been set. -### GetContentGuard - -`func (o *ArtifactDistributionResponse) GetContentGuard() string` - -GetContentGuard returns the ContentGuard field if non-nil, zero value otherwise. - -### GetContentGuardOk - -`func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool)` - -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. - -### SetContentGuard - -`func (o *ArtifactDistributionResponse) SetContentGuard(v string)` - -SetContentGuard sets ContentGuard field to given value. - -### HasContentGuard - -`func (o *ArtifactDistributionResponse) HasContentGuard() bool` - -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 -### 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. - -### GetPulpLabels +### GetBaseUrl -`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` +`func (o *ArtifactDistributionResponse) GetBaseUrl() string` -GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. -### GetPulpLabelsOk +### GetBaseUrlOk -`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` +`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` -GetPulpLabelsOk returns a tuple with the PulpLabels 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. -### SetPulpLabels +### SetBaseUrl -`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` +`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` -SetPulpLabels sets PulpLabels field to given value. +SetBaseUrl sets BaseUrl field to given value. -### HasPulpLabels +### HasBaseUrl -`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` +`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` -HasPulpLabels returns a boolean if a field has been set. +HasBaseUrl returns a boolean if a field has been set. ### GetPulpLastUpdated @@ -258,6 +238,26 @@ SetPulpLastUpdated sets PulpLastUpdated field to given value. 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)` + +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. + +### SetName + +`func (o *ArtifactDistributionResponse) SetName(v string)` + +SetName sets Name field to given value. + + [[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 d8c86b2..1b57804 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 { - // The URL for accessing the publication as defined by this distribution. - BaseUrl *string `json:"base_url,omitempty"` - // A unique name. Ex, `rawhide` and `stable`. - Name string `json:"name"` + // An optional content-guard. + ContentGuard NullableString `json:"content_guard,omitempty"` + PulpHref *string `json:"pulp_href,omitempty"` // The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") BasePath string `json:"base_path"` + PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // Timestamp of creation. PulpCreated *time.Time `json:"pulp_created,omitempty"` // Whether this distribution should be shown in the content app. Hidden *bool `json:"hidden,omitempty"` - // An optional content-guard. - ContentGuard NullableString `json:"content_guard,omitempty"` - PulpHref *string `json:"pulp_href,omitempty"` - 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"` // 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"` AdditionalProperties map[string]interface{} } @@ -47,12 +47,12 @@ type _ArtifactDistributionResponse ArtifactDistributionResponse // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewArtifactDistributionResponse(name string, basePath string) *ArtifactDistributionResponse { +func NewArtifactDistributionResponse(basePath string, name string) *ArtifactDistributionResponse { this := ArtifactDistributionResponse{} - this.Name = name this.BasePath = basePath var hidden bool = false this.Hidden = &hidden + this.Name = name return &this } @@ -66,60 +66,78 @@ func NewArtifactDistributionResponseWithDefaults() *ArtifactDistributionResponse return &this } -// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetBaseUrl() string { - if o == nil || IsNil(o.BaseUrl) { +// 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.BaseUrl + return *o.ContentGuard.Get() } -// GetBaseUrlOk returns a tuple with the BaseUrl 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) GetBaseUrlOk() (*string, bool) { - if o == nil || IsNil(o.BaseUrl) { +// 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.BaseUrl, true + return o.ContentGuard.Get(), o.ContentGuard.IsSet() } -// HasBaseUrl returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasBaseUrl() bool { - if o != nil && !IsNil(o.BaseUrl) { +// 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 } -// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. -func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { - o.BaseUrl = &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) } -// GetName returns the Name field value -func (o *ArtifactDistributionResponse) GetName() string { - if o == nil { +// UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil +func (o *ArtifactDistributionResponse) UnsetContentGuard() { + o.ContentGuard.Unset() +} + +// 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.Name + return *o.PulpHref } -// GetNameOk returns a tuple with the Name 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) GetNameOk() (*string, bool) { - if o == nil { +func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool) { + if o == nil || IsNil(o.PulpHref) { return nil, false } - return &o.Name, true + return o.PulpHref, true } -// SetName sets field value -func (o *ArtifactDistributionResponse) SetName(v string) { - o.Name = 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 } // GetBasePath returns the BasePath field value @@ -146,6 +164,38 @@ func (o *ArtifactDistributionResponse) SetBasePath(v string) { o.BasePath = 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 +} + // GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time { if o == nil || IsNil(o.PulpCreated) { @@ -210,110 +260,36 @@ func (o *ArtifactDistributionResponse) SetHidden(v bool) { o.Hidden = &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()) { - var ret string - return ret - } - return *o.ContentGuard.Get() -} - -// GetContentGuardOk returns a tuple with the ContentGuard 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 { - return nil, false - } - return o.ContentGuard.Get(), o.ContentGuard.IsSet() -} - -// 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 -} - -// 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() -} - -// GetPulpHref returns the PulpHref field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpHref() string { - if o == nil || IsNil(o.PulpHref) { +// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetBaseUrl() string { + if o == nil || IsNil(o.BaseUrl) { var ret string return ret } - return *o.PulpHref -} - -// 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 -} - -// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string { - if o == nil || IsNil(o.PulpLabels) { - var ret map[string]string - return ret - } - return *o.PulpLabels + return *o.BaseUrl } -// GetPulpLabelsOk returns a tuple with the PulpLabels field value if set, nil otherwise +// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool) { - if o == nil || IsNil(o.PulpLabels) { +func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseUrl) { return nil, false } - return o.PulpLabels, true + return o.BaseUrl, true } -// HasPulpLabels returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLabels() bool { - if o != nil && !IsNil(o.PulpLabels) { +// 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 } -// 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 +// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. +func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { + o.BaseUrl = &v } // GetPulpLastUpdated returns the PulpLastUpdated field value if set, zero value otherwise. @@ -348,6 +324,30 @@ 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 +} + func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -358,29 +358,29 @@ func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { func (o ArtifactDistributionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.BaseUrl) { - toSerialize["base_url"] = o.BaseUrl - } - toSerialize["name"] = o.Name - toSerialize["base_path"] = o.BasePath - if !IsNil(o.PulpCreated) { - toSerialize["pulp_created"] = o.PulpCreated - } - if !IsNil(o.Hidden) { - toSerialize["hidden"] = o.Hidden - } if o.ContentGuard.IsSet() { toSerialize["content_guard"] = o.ContentGuard.Get() } if !IsNil(o.PulpHref) { toSerialize["pulp_href"] = o.PulpHref } + toSerialize["base_path"] = o.BasePath if !IsNil(o.PulpLabels) { toSerialize["pulp_labels"] = o.PulpLabels } + if !IsNil(o.PulpCreated) { + toSerialize["pulp_created"] = o.PulpCreated + } + if !IsNil(o.Hidden) { + toSerialize["hidden"] = o.Hidden + } + if !IsNil(o.BaseUrl) { + toSerialize["base_url"] = o.BaseUrl + } if !IsNil(o.PulpLastUpdated) { toSerialize["pulp_last_updated"] = o.PulpLastUpdated } + toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -394,8 +394,8 @@ func (o *ArtifactDistributionResponse) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "name", "base_path", + "name", } allProperties := make(map[string]interface{}) @@ -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, "base_url") - delete(additionalProperties, "name") - delete(additionalProperties, "base_path") - delete(additionalProperties, "pulp_created") - delete(additionalProperties, "hidden") delete(additionalProperties, "content_guard") delete(additionalProperties, "pulp_href") + delete(additionalProperties, "base_path") delete(additionalProperties, "pulp_labels") + delete(additionalProperties, "pulp_created") + delete(additionalProperties, "hidden") + delete(additionalProperties, "base_url") delete(additionalProperties, "pulp_last_updated") + delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties }