diff --git a/release/README.md b/release/README.md index 702f914..53868cf 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: 9258456e9d3b4a85d3e54836d2b97933dd6233137ae5486b92ad2e96ab328e64 +- Package version: d6a984592e569b42a26e536b94e27a33a32ad80b7a8d53bd49838eda6dba3325 - 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 cc71830..c211d8a 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -40223,19 +40223,23 @@ components: ArtifactDistributionResponse: description: A serializer for ArtifactDistribution. example: + pulp_href: https://openapi-generator.tech + hidden: false pulp_labels: key: pulp_labels - hidden: false - 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 + name: name + no_content_change_since: no_content_change_since 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: + prn: + description: The Pulp Resource Name (PRN). + 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\ @@ -40243,51 +40247,47 @@ components: format: date-time readOnly: true type: string - 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 + base_url: + description: The URL for accessing the publication as defined by this distribution. + readOnly: true + type: string pulp_created: description: Timestamp of creation. format: date-time 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\ - \ about content changes." + 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 content_guard: description: An optional content-guard. format: uri nullable: true type: string - name: - description: "A unique name. Ex, `rawhide` and `stable`." - 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 - type: string - pulp_href: - format: uri - readOnly: true + name: + description: "A unique name. Ex, `rawhide` and `stable`." type: string - prn: - description: The Pulp Resource Name (PRN). + no_content_change_since: + description: "Timestamp since when the distributed content served by this\ + \ distribution has not changed. If equals to `null`, no guarantee is provided\ + \ about content changes." readOnly: true type: string + pulp_labels: + additionalProperties: + nullable: true + type: string + type: object required: - base_path - name @@ -42871,27 +42871,27 @@ 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 hidden: false - pulp_href: https://openapi-generator.tech - no_content_change_since: no_content_change_since - name: name + pulp_labels: + key: pulp_labels base_url: base_url - pulp_created: 2000-01-23T04:56:07.000+00:00 + name: name + no_content_change_since: no_content_change_since 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_labels: - key: pulp_labels + - pulp_href: https://openapi-generator.tech hidden: false - pulp_href: https://openapi-generator.tech - no_content_change_since: no_content_change_since - name: name + pulp_labels: + key: pulp_labels base_url: base_url - pulp_created: 2000-01-23T04:56:07.000+00:00 + name: name + no_content_change_since: no_content_change_since 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 b28104d..6f2e549 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/9258456e9d3b4a85d3e54836d2b97933dd6233137ae5486b92ad2e96ab328e64/go", + UserAgent: "OpenAPI-Generator/d6a984592e569b42a26e536b94e27a33a32ad80b7a8d53bd49838eda6dba3325/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index f6a7b12..9b1ba1f 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,17 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**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] -**PulpLabels** | Pointer to **map[string]string** | | [optional] -**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [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] **BasePath** | **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | -**ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] -**Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | -**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] **PulpHref** | Pointer to **string** | | [optional] [readonly] -**Prn** | Pointer to **string** | The Pulp Resource Name (PRN). | [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] +**Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | +**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] +**PulpLabels** | Pointer to **map[string]string** | | [optional] ## Methods @@ -35,6 +35,31 @@ 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 +### 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. + ### GetPulpLastUpdated `func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` @@ -60,30 +85,50 @@ SetPulpLastUpdated sets PulpLastUpdated field to given value. HasPulpLastUpdated returns a boolean if a field has been 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 +### SetBasePath -`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` +`func (o *ArtifactDistributionResponse) SetBasePath(v string)` -SetPulpLabels sets PulpLabels field to given value. +SetBasePath sets BasePath field to given value. -### HasPulpLabels -`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` +### GetBaseUrl -HasPulpLabels returns a boolean if a field has been set. +`func (o *ArtifactDistributionResponse) GetBaseUrl() string` + +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. + +### GetBaseUrlOk + +`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` + +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. + +### SetBaseUrl + +`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` + +SetBaseUrl sets BaseUrl field to given value. + +### HasBaseUrl + +`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` + +HasBaseUrl returns a boolean if a field has been set. ### GetPulpCreated @@ -110,50 +155,30 @@ SetPulpCreated sets PulpCreated field to given value. HasPulpCreated returns a boolean if a field has been set. -### GetNoContentChangeSince +### GetPulpHref -`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` +`func (o *ArtifactDistributionResponse) GetPulpHref() string` -GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. +GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. -### GetNoContentChangeSinceOk +### GetPulpHrefOk -`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool)` -GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince 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. -### SetNoContentChangeSince - -`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` - -SetNoContentChangeSince sets NoContentChangeSince field to given value. - -### HasNoContentChangeSince - -`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` - -HasNoContentChangeSince 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)` +### SetPulpHref -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. +`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` -### SetBasePath +SetPulpHref sets PulpHref field to given value. -`func (o *ArtifactDistributionResponse) SetBasePath(v string)` +### HasPulpHref -SetBasePath sets BasePath field to given value. +`func (o *ArtifactDistributionResponse) HasPulpHref() bool` +HasPulpHref returns a boolean if a field has been set. ### GetContentGuard @@ -190,26 +215,6 @@ 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 -### 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. - - ### GetHidden `func (o *ArtifactDistributionResponse) GetHidden() bool` @@ -235,80 +240,75 @@ SetHidden sets Hidden field to given value. HasHidden returns a boolean if a field has been set. -### GetBaseUrl +### GetName -`func (o *ArtifactDistributionResponse) GetBaseUrl() string` +`func (o *ArtifactDistributionResponse) GetName() string` -GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. +GetName returns the Name field if non-nil, zero value otherwise. -### GetBaseUrlOk +### GetNameOk -`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` -GetBaseUrlOk returns a tuple with the BaseUrl 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. -### SetBaseUrl - -`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` - -SetBaseUrl sets BaseUrl field to given value. +### SetName -### HasBaseUrl +`func (o *ArtifactDistributionResponse) SetName(v string)` -`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` +SetName sets Name field to given value. -HasBaseUrl returns a boolean if a field has been set. -### GetPulpHref +### GetNoContentChangeSince -`func (o *ArtifactDistributionResponse) GetPulpHref() string` +`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` -GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. +GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. -### GetPulpHrefOk +### GetNoContentChangeSinceOk -`func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` -GetPulpHrefOk returns a tuple with the PulpHref 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. -### SetPulpHref +### SetNoContentChangeSince -`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` +`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` -SetPulpHref sets PulpHref field to given value. +SetNoContentChangeSince sets NoContentChangeSince field to given value. -### HasPulpHref +### HasNoContentChangeSince -`func (o *ArtifactDistributionResponse) HasPulpHref() bool` +`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` -HasPulpHref returns a boolean if a field has been set. +HasNoContentChangeSince returns a boolean if a field has been set. -### GetPrn +### GetPulpLabels -`func (o *ArtifactDistributionResponse) GetPrn() string` +`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` -GetPrn returns the Prn field if non-nil, zero value otherwise. +GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. -### GetPrnOk +### GetPulpLabelsOk -`func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` -GetPrnOk returns a tuple with the Prn 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. -### SetPrn +### SetPulpLabels -`func (o *ArtifactDistributionResponse) SetPrn(v string)` +`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` -SetPrn sets Prn field to given value. +SetPulpLabels sets PulpLabels field to given value. -### HasPrn +### HasPulpLabels -`func (o *ArtifactDistributionResponse) HasPrn() bool` +`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` -HasPrn returns a boolean if a field has been set. +HasPulpLabels 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/go.mod b/release/go.mod index 3b32041..3aaab69 100755 --- a/release/go.mod +++ b/release/go.mod @@ -5,6 +5,6 @@ go 1.18 require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/stretchr/testify v1.9.0 // indirect + github.com/stretchr/testify v1.10.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/release/go.sum b/release/go.sum index c06dd09..e556183 100755 --- a/release/go.sum +++ b/release/go.sum @@ -5,8 +5,8 @@ github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= diff --git a/release/model_artifact_distribution_response.go b/release/model_artifact_distribution_response.go index 31c5844..500c8e8 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 { + // 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"` - PulpLabels *map[string]string `json:"pulp_labels,omitempty"` - // Timestamp of creation. - PulpCreated *time.Time `json:"pulp_created,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"` // 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 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"` + PulpHref *string `json:"pulp_href,omitempty"` // An optional content-guard. ContentGuard NullableString `json:"content_guard,omitempty"` - // A unique name. Ex, `rawhide` and `stable`. - Name string `json:"name"` // 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"` - PulpHref *string `json:"pulp_href,omitempty"` - // The Pulp Resource Name (PRN). - Prn *string `json:"prn,omitempty"` + // A unique name. Ex, `rawhide` and `stable`. + Name string `json:"name"` + // 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"` + PulpLabels *map[string]string `json:"pulp_labels,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,9 +54,9 @@ type _ArtifactDistributionResponse ArtifactDistributionResponse func NewArtifactDistributionResponse(basePath string, name string) *ArtifactDistributionResponse { this := ArtifactDistributionResponse{} this.BasePath = basePath - this.Name = name var hidden bool = false this.Hidden = &hidden + this.Name = name return &this } @@ -70,6 +70,38 @@ func NewArtifactDistributionResponseWithDefaults() *ArtifactDistributionResponse return &this } +// 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 +} + // GetPulpLastUpdated returns the PulpLastUpdated field value if set, zero value otherwise. func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time { if o == nil || IsNil(o.PulpLastUpdated) { @@ -102,36 +134,60 @@ func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time) { o.PulpLastUpdated = &v } -// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string { - if o == nil || IsNil(o.PulpLabels) { - 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 + return &o.BasePath, true } -// HasPulpLabels returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLabels() bool { - if o != nil && !IsNil(o.PulpLabels) { +// SetBasePath sets field value +func (o *ArtifactDistributionResponse) SetBasePath(v string) { + o.BasePath = 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 + return ret + } + return *o.BaseUrl +} + +// 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) GetBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseUrl) { + return nil, false + } + return o.BaseUrl, true +} + +// 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 } // GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. @@ -166,60 +222,36 @@ func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time) { o.PulpCreated = &v } -// GetNoContentChangeSince returns the NoContentChangeSince field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string { - if o == nil || IsNil(o.NoContentChangeSince) { +// 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.NoContentChangeSince + return *o.PulpHref } -// GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince 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) GetNoContentChangeSinceOk() (*string, bool) { - if o == nil || IsNil(o.NoContentChangeSince) { +func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool) { + if o == nil || IsNil(o.PulpHref) { return nil, false } - return o.NoContentChangeSince, true + return o.PulpHref, true } -// HasNoContentChangeSince returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool { - if o != nil && !IsNil(o.NoContentChangeSince) { +// 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 } -// SetNoContentChangeSince gets a reference to the given string and assigns it to the NoContentChangeSince field. -func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { - o.NoContentChangeSince = &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 +// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. +func (o *ArtifactDistributionResponse) SetPulpHref(v string) { + o.PulpHref = &v } // GetContentGuard returns the ContentGuard field value if set, zero value otherwise (both if not set or set to explicit null). @@ -264,30 +296,6 @@ func (o *ArtifactDistributionResponse) UnsetContentGuard() { o.ContentGuard.Unset() } -// 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 -} - // GetHidden returns the Hidden field value if set, zero value otherwise. func (o *ArtifactDistributionResponse) GetHidden() bool { if o == nil || IsNil(o.Hidden) { @@ -320,100 +328,92 @@ 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) { +// GetName returns the Name field value +func (o *ArtifactDistributionResponse) GetName() string { + if o == nil { var ret string return ret } - return *o.BaseUrl + + return o.Name } -// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise +// GetNameOk returns a tuple with the Name field value // 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) GetNameOk() (*string, bool) { + if o == nil { return nil, false } - return o.BaseUrl, true -} - -// 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 + return &o.Name, true } -// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. -func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { - o.BaseUrl = &v +// SetName sets field value +func (o *ArtifactDistributionResponse) SetName(v string) { + o.Name = v } -// GetPulpHref returns the PulpHref field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpHref() string { - if o == nil || IsNil(o.PulpHref) { +// 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.PulpHref + return *o.NoContentChangeSince } -// GetPulpHrefOk returns a tuple with the PulpHref 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) GetPulpHrefOk() (*string, bool) { - if o == nil || IsNil(o.PulpHref) { +func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool) { + if o == nil || IsNil(o.NoContentChangeSince) { return nil, false } - return o.PulpHref, true + return o.NoContentChangeSince, true } -// HasPulpHref returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpHref() bool { - if o != nil && !IsNil(o.PulpHref) { +// 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 } -// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. -func (o *ArtifactDistributionResponse) SetPulpHref(v string) { - o.PulpHref = &v +// SetNoContentChangeSince gets a reference to the given string and assigns it to the NoContentChangeSince field. +func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { + o.NoContentChangeSince = &v } -// GetPrn returns the Prn field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPrn() string { - if o == nil || IsNil(o.Prn) { - 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.Prn + return *o.PulpLabels } -// GetPrnOk returns a tuple with the Prn 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) GetPrnOk() (*string, bool) { - if o == nil || IsNil(o.Prn) { +func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { return nil, false } - return o.Prn, true + return o.PulpLabels, true } -// HasPrn returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPrn() bool { - if o != nil && !IsNil(o.Prn) { +// 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 } -// SetPrn gets a reference to the given string and assigns it to the Prn field. -func (o *ArtifactDistributionResponse) SetPrn(v string) { - o.Prn = &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 } func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { @@ -426,34 +426,34 @@ func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { func (o ArtifactDistributionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Prn) { + toSerialize["prn"] = o.Prn + } if !IsNil(o.PulpLastUpdated) { toSerialize["pulp_last_updated"] = o.PulpLastUpdated } - if !IsNil(o.PulpLabels) { - toSerialize["pulp_labels"] = o.PulpLabels + toSerialize["base_path"] = o.BasePath + if !IsNil(o.BaseUrl) { + toSerialize["base_url"] = o.BaseUrl } if !IsNil(o.PulpCreated) { toSerialize["pulp_created"] = o.PulpCreated } - if !IsNil(o.NoContentChangeSince) { - toSerialize["no_content_change_since"] = o.NoContentChangeSince + if !IsNil(o.PulpHref) { + toSerialize["pulp_href"] = o.PulpHref } - toSerialize["base_path"] = o.BasePath if o.ContentGuard.IsSet() { toSerialize["content_guard"] = o.ContentGuard.Get() } - toSerialize["name"] = o.Name if !IsNil(o.Hidden) { toSerialize["hidden"] = o.Hidden } - if !IsNil(o.BaseUrl) { - toSerialize["base_url"] = o.BaseUrl - } - if !IsNil(o.PulpHref) { - toSerialize["pulp_href"] = o.PulpHref + toSerialize["name"] = o.Name + if !IsNil(o.NoContentChangeSince) { + toSerialize["no_content_change_since"] = o.NoContentChangeSince } - if !IsNil(o.Prn) { - toSerialize["prn"] = o.Prn + if !IsNil(o.PulpLabels) { + toSerialize["pulp_labels"] = o.PulpLabels } for key, value := range o.AdditionalProperties { @@ -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, "prn") delete(additionalProperties, "pulp_last_updated") - delete(additionalProperties, "pulp_labels") - delete(additionalProperties, "pulp_created") - delete(additionalProperties, "no_content_change_since") delete(additionalProperties, "base_path") - delete(additionalProperties, "content_guard") - delete(additionalProperties, "name") - delete(additionalProperties, "hidden") delete(additionalProperties, "base_url") + delete(additionalProperties, "pulp_created") delete(additionalProperties, "pulp_href") - delete(additionalProperties, "prn") + delete(additionalProperties, "content_guard") + delete(additionalProperties, "hidden") + delete(additionalProperties, "name") + delete(additionalProperties, "no_content_change_since") + delete(additionalProperties, "pulp_labels") o.AdditionalProperties = additionalProperties }