From 3ace198185ee6fb58f3a415d291f4197b2e9ca7a Mon Sep 17 00:00:00 2001 From: andrewgdewar Date: Tue, 8 Oct 2024 07:09:29 +0000 Subject: [PATCH] Update pulp bindings to 386d86254354e29d3b864523aed47863a3db8d167968b5e2da9ab863deab9a54 --- release/.openapi-generator/VERSION | 2 +- release/README.md | 8 +- release/api/openapi.yaml | 78 ++-- release/configuration.go | 2 +- release/docs/ArtifactDistributionResponse.md | 222 ++++++------ .../model_artifact_distribution_response.go | 332 +++++++++--------- 6 files changed, 322 insertions(+), 322 deletions(-) diff --git a/release/.openapi-generator/VERSION b/release/.openapi-generator/VERSION index 09a6d30..4bc5d61 100644 --- a/release/.openapi-generator/VERSION +++ b/release/.openapi-generator/VERSION @@ -1 +1 @@ -7.8.0 +7.9.0 diff --git a/release/README.md b/release/README.md index b3714bb..a44d24b 100644 --- a/release/README.md +++ b/release/README.md @@ -6,8 +6,8 @@ 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: 689d598a363629d8a5469d9b2a847483938ee6c37d356e3e82bb4a5edeb4224e -- Generator version: 7.8.0 +- Package version: 386d86254354e29d3b864523aed47863a3db8d167968b5e2da9ab863deab9a54 +- Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://pulpproject.org](https://pulpproject.org) @@ -952,7 +952,7 @@ r, err := client.Service.Operation(auth, args) - **API key parameter name**: sessionid - **Location**: -Note, each API key must be added to a map of `map[string]APIKey` where the key is: sessionid and passed in as the auth context for each request. +Note, each API key must be added to a map of `map[string]APIKey` where the key is: cookieAuth and passed in as the auth context for each request. Example @@ -961,7 +961,7 @@ auth := context.WithValue( context.Background(), zest.ContextAPIKeys, map[string]zest.APIKey{ - "sessionid": {Key: "API_KEY_STRING"}, + "cookieAuth": {Key: "API_KEY_STRING"}, }, ) r, err := client.Service.Operation(auth, args) diff --git a/release/api/openapi.yaml b/release/api/openapi.yaml index 77f9b63..db5cd7a 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -37207,28 +37207,43 @@ components: ArtifactDistributionResponse: description: A serializer for ArtifactDistribution. example: - pulp_href: https://openapi-generator.tech pulp_labels: key: pulp_labels + pulp_href: https://openapi-generator.tech hidden: false - no_content_change_since: no_content_change_since - name: name base_url: base_url + name: name + no_content_change_since: no_content_change_since pulp_created: 2000-01-23T04:56:07.000+00:00 base_path: base_path pulp_last_updated: 2000-01-23T04:56:07.000+00:00 prn: prn content_guard: https://openapi-generator.tech properties: - pulp_created: - description: Timestamp of creation. - format: date-time - readOnly: true - type: string + pulp_labels: + additionalProperties: + nullable: true + type: string + type: object pulp_href: format: uri readOnly: true type: string + prn: + description: The Pulp Resource Name (PRN). + readOnly: true + type: string + base_url: + description: The URL for accessing the publication as defined by this distribution. + readOnly: true + type: string + name: + description: "A unique name. Ex, `rawhide` and `stable`." + type: string + hidden: + default: false + description: Whether this distribution should be shown in the content app. + type: boolean pulp_last_updated: description: "Timestamp of the last time this resource was updated. Note:\ \ for immutable resources - like content, repository versions, and publication\ @@ -37236,42 +37251,27 @@ components: format: date-time readOnly: true type: string - prn: - description: The Pulp Resource Name (PRN). - 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 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 - hidden: - default: false - description: Whether this distribution should be shown in the content app. - type: boolean - name: - description: "A unique name. Ex, `rawhide` and `stable`." - type: string content_guard: description: An optional content-guard. format: uri nullable: true type: string - base_url: - description: The URL for accessing the publication as defined by this distribution. + pulp_created: + description: Timestamp of creation. + format: date-time readOnly: true type: string + 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 required: - base_path - name @@ -38894,25 +38894,25 @@ components: previous: http://api.example.org/accounts/?offset=200&limit=100 count: 123 results: - - pulp_href: https://openapi-generator.tech - pulp_labels: + - pulp_labels: key: pulp_labels + pulp_href: https://openapi-generator.tech hidden: false - no_content_change_since: no_content_change_since - name: name base_url: base_url + name: name + no_content_change_since: no_content_change_since pulp_created: 2000-01-23T04:56:07.000+00:00 base_path: base_path pulp_last_updated: 2000-01-23T04:56:07.000+00:00 prn: prn content_guard: https://openapi-generator.tech - - pulp_href: https://openapi-generator.tech - pulp_labels: + - pulp_labels: key: pulp_labels + pulp_href: https://openapi-generator.tech hidden: false - no_content_change_since: no_content_change_since - name: name base_url: base_url + name: name + no_content_change_since: no_content_change_since pulp_created: 2000-01-23T04:56:07.000+00:00 base_path: base_path pulp_last_updated: 2000-01-23T04:56:07.000+00:00 diff --git a/release/configuration.go b/release/configuration.go index c073a11..d13f206 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/689d598a363629d8a5469d9b2a847483938ee6c37d356e3e82bb4a5edeb4224e/go", + UserAgent: "OpenAPI-Generator/386d86254354e29d3b864523aed47863a3db8d167968b5e2da9ab863deab9a54/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index c451900..1cb09ff 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,23 +4,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] +**PulpLabels** | Pointer to **map[string]string** | | [optional] **PulpHref** | Pointer to **string** | | [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] **Prn** | Pointer to **string** | The Pulp Resource Name (PRN). | [optional] [readonly] -**PulpLabels** | Pointer to **map[string]string** | | [optional] -**BasePath** | **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | -**NoContentChangeSince** | Pointer to **string** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional] [readonly] -**Hidden** | Pointer to **bool** | Whether this distribution should be shown in the content app. | [optional] [default to false] +**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`. | +**Hidden** | Pointer to **bool** | Whether this distribution should be shown in the content app. | [optional] [default to false] +**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] +**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] **ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] -**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] +**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\") | ## Methods ### NewArtifactDistributionResponse -`func NewArtifactDistributionResponse(basePath string, name string, ) *ArtifactDistributionResponse` +`func NewArtifactDistributionResponse(name string, basePath string, ) *ArtifactDistributionResponse` NewArtifactDistributionResponse instantiates a new ArtifactDistributionResponse object This constructor will assign default values to properties that have it defined, @@ -35,30 +35,30 @@ NewArtifactDistributionResponseWithDefaults instantiates a new ArtifactDistribut This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetPulpCreated +### GetPulpLabels -`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` +`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` -GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. +GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. -### GetPulpCreatedOk +### GetPulpLabelsOk -`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` -GetPulpCreatedOk returns a tuple with the PulpCreated 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. -### SetPulpCreated +### SetPulpLabels -`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` +`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` -SetPulpCreated sets PulpCreated field to given value. +SetPulpLabels sets PulpLabels field to given value. -### HasPulpCreated +### HasPulpLabels -`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` +`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` -HasPulpCreated returns a boolean if a field has been set. +HasPulpLabels returns a boolean if a field has been set. ### GetPulpHref @@ -85,31 +85,6 @@ SetPulpHref sets PulpHref field to given value. HasPulpHref returns a boolean if a field has been set. -### GetPulpLastUpdated - -`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` - -GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. - -### GetPulpLastUpdatedOk - -`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` - -GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPulpLastUpdated - -`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` - -SetPulpLastUpdated sets PulpLastUpdated field to given value. - -### HasPulpLastUpdated - -`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` - -HasPulpLastUpdated returns a boolean if a field has been set. - ### GetPrn `func (o *ArtifactDistributionResponse) GetPrn() string` @@ -135,120 +110,125 @@ SetPrn sets Prn field to given value. HasPrn 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. -### GetBasePath +### GetName -`func (o *ArtifactDistributionResponse) GetBasePath() string` +`func (o *ArtifactDistributionResponse) GetName() string` -GetBasePath returns the BasePath field if non-nil, zero value otherwise. +GetName returns the Name field if non-nil, zero value otherwise. -### GetBasePathOk +### GetNameOk -`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` -GetBasePathOk returns a tuple with the BasePath field if it's non-nil, zero value otherwise +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetBasePath +### SetName -`func (o *ArtifactDistributionResponse) SetBasePath(v string)` +`func (o *ArtifactDistributionResponse) SetName(v string)` -SetBasePath sets BasePath field to given value. +SetName sets Name field to given value. -### GetNoContentChangeSince +### GetHidden -`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` +`func (o *ArtifactDistributionResponse) GetHidden() bool` -GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. +GetHidden returns the Hidden field if non-nil, zero value otherwise. -### GetNoContentChangeSinceOk +### GetHiddenOk -`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool)` -GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince field if it's non-nil, zero value otherwise +GetHiddenOk returns a tuple with the Hidden field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetNoContentChangeSince +### SetHidden -`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` +`func (o *ArtifactDistributionResponse) SetHidden(v bool)` -SetNoContentChangeSince sets NoContentChangeSince field to given value. +SetHidden sets Hidden field to given value. -### HasNoContentChangeSince +### HasHidden -`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` +`func (o *ArtifactDistributionResponse) HasHidden() bool` -HasNoContentChangeSince returns a boolean if a field has been set. +HasHidden returns a boolean if a field has been set. -### GetHidden +### GetPulpLastUpdated -`func (o *ArtifactDistributionResponse) GetHidden() bool` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` -GetHidden returns the Hidden field if non-nil, zero value otherwise. +GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. -### GetHiddenOk +### GetPulpLastUpdatedOk -`func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` -GetHiddenOk returns a tuple with the Hidden field if it's non-nil, zero value otherwise +GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHidden +### SetPulpLastUpdated -`func (o *ArtifactDistributionResponse) SetHidden(v bool)` +`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` -SetHidden sets Hidden field to given value. +SetPulpLastUpdated sets PulpLastUpdated field to given value. -### HasHidden +### HasPulpLastUpdated -`func (o *ArtifactDistributionResponse) HasHidden() bool` +`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` -HasHidden returns a boolean if a field has been set. +HasPulpLastUpdated returns a boolean if a field has been set. -### GetName +### GetNoContentChangeSince -`func (o *ArtifactDistributionResponse) GetName() string` +`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` -GetName returns the Name field if non-nil, zero value otherwise. +GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. -### GetNameOk +### GetNoContentChangeSinceOk -`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` -GetNameOk returns a tuple with the Name 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. -### SetName +### SetNoContentChangeSince -`func (o *ArtifactDistributionResponse) SetName(v string)` +`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` -SetName sets Name field to given value. +SetNoContentChangeSince sets NoContentChangeSince field to given value. + +### HasNoContentChangeSince + +`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` +HasNoContentChangeSince returns a boolean if a field has been set. ### GetContentGuard @@ -285,30 +265,50 @@ 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 -### GetBaseUrl +### GetPulpCreated -`func (o *ArtifactDistributionResponse) GetBaseUrl() string` +`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` -GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. +GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. -### GetBaseUrlOk +### GetPulpCreatedOk -`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` -GetBaseUrlOk returns a tuple with the BaseUrl 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. -### SetBaseUrl +### SetPulpCreated -`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` +`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` -SetBaseUrl sets BaseUrl field to given value. +SetPulpCreated sets PulpCreated field to given value. -### HasBaseUrl +### HasPulpCreated -`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` +`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` + +HasPulpCreated returns a boolean if a field has been set. + +### GetBasePath + +`func (o *ArtifactDistributionResponse) GetBasePath() string` + +GetBasePath returns the BasePath field if non-nil, zero value otherwise. + +### GetBasePathOk + +`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` + +GetBasePathOk returns a tuple with the BasePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBasePath + +`func (o *ArtifactDistributionResponse) SetBasePath(v string)` + +SetBasePath sets BasePath field to given value. -HasBaseUrl returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/release/model_artifact_distribution_response.go b/release/model_artifact_distribution_response.go index 98ea6ff..e553e6d 100644 --- a/release/model_artifact_distribution_response.go +++ b/release/model_artifact_distribution_response.go @@ -22,26 +22,26 @@ var _ MappedNullable = &ArtifactDistributionResponse{} // ArtifactDistributionResponse A serializer for ArtifactDistribution. type ArtifactDistributionResponse struct { - // Timestamp of creation. - PulpCreated *time.Time `json:"pulp_created,omitempty"` + PulpLabels *map[string]string `json:"pulp_labels,omitempty"` PulpHref *string `json:"pulp_href,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"` // The Pulp Resource Name (PRN). Prn *string `json:"prn,omitempty"` - PulpLabels *map[string]string `json:"pulp_labels,omitempty"` - // The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") - BasePath string `json:"base_path"` - // Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. - NoContentChangeSince *string `json:"no_content_change_since,omitempty"` - // Whether this distribution should be shown in the content app. - Hidden *bool `json:"hidden,omitempty"` + // 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"` + // Whether this distribution should be shown in the content app. + Hidden *bool `json:"hidden,omitempty"` + // Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. + PulpLastUpdated *time.Time `json:"pulp_last_updated,omitempty"` + // Timestamp 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"` // An optional content-guard. ContentGuard NullableString `json:"content_guard,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"` + // 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"` AdditionalProperties map[string]interface{} } @@ -51,12 +51,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(basePath string, name string) *ArtifactDistributionResponse { +func NewArtifactDistributionResponse(name string, basePath string) *ArtifactDistributionResponse { this := ArtifactDistributionResponse{} - this.BasePath = basePath + this.Name = name var hidden bool = false this.Hidden = &hidden - this.Name = name + this.BasePath = basePath return &this } @@ -70,36 +70,36 @@ func NewArtifactDistributionResponseWithDefaults() *ArtifactDistributionResponse return &this } -// GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time { - if o == nil || IsNil(o.PulpCreated) { - var ret time.Time +// 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.PulpCreated + return *o.PulpLabels } -// GetPulpCreatedOk returns a tuple with the PulpCreated 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) GetPulpCreatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpCreated) { +func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { return nil, false } - return o.PulpCreated, true + return o.PulpLabels, true } -// HasPulpCreated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpCreated() bool { - if o != nil && !IsNil(o.PulpCreated) { +// 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 } -// 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 +// 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 } // GetPulpHref returns the PulpHref field value if set, zero value otherwise. @@ -134,38 +134,6 @@ func (o *ArtifactDistributionResponse) SetPulpHref(v string) { o.PulpHref = &v } -// GetPulpLastUpdated returns the PulpLastUpdated field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time { - if o == nil || IsNil(o.PulpLastUpdated) { - var ret time.Time - return ret - } - return *o.PulpLastUpdated -} - -// GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpLastUpdated) { - return nil, false - } - return o.PulpLastUpdated, true -} - -// HasPulpLastUpdated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool { - if o != nil && !IsNil(o.PulpLastUpdated) { - return true - } - - return false -} - -// SetPulpLastUpdated gets a reference to the given time.Time and assigns it to the PulpLastUpdated field. -func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time) { - o.PulpLastUpdated = &v -} - // GetPrn returns the Prn field value if set, zero value otherwise. func (o *ArtifactDistributionResponse) GetPrn() string { if o == nil || IsNil(o.Prn) { @@ -198,148 +166,156 @@ func (o *ArtifactDistributionResponse) SetPrn(v string) { o.Prn = &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 +// 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.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 } -// GetBasePath returns the BasePath field value -func (o *ArtifactDistributionResponse) GetBasePath() string { +// GetName returns the Name field value +func (o *ArtifactDistributionResponse) GetName() string { if o == nil { var ret string return ret } - return o.BasePath + return o.Name } -// GetBasePathOk returns a tuple with the BasePath field value +// GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool) { +func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool) { if o == nil { return nil, false } - return &o.BasePath, true + return &o.Name, true } -// SetBasePath sets field value -func (o *ArtifactDistributionResponse) SetBasePath(v string) { - o.BasePath = v +// SetName sets field value +func (o *ArtifactDistributionResponse) SetName(v string) { + o.Name = v } -// 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 +// GetHidden returns the Hidden field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetHidden() bool { + if o == nil || IsNil(o.Hidden) { + var ret bool return ret } - return *o.NoContentChangeSince + return *o.Hidden } -// GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince field value if set, nil otherwise +// GetHiddenOk returns a tuple with the Hidden field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool) { - if o == nil || IsNil(o.NoContentChangeSince) { +func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.Hidden) { return nil, false } - return o.NoContentChangeSince, true + return o.Hidden, true } -// HasNoContentChangeSince returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool { - if o != nil && !IsNil(o.NoContentChangeSince) { +// HasHidden returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasHidden() bool { + if o != nil && !IsNil(o.Hidden) { return true } return false } -// SetNoContentChangeSince gets a reference to the given string and assigns it to the NoContentChangeSince field. -func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { - o.NoContentChangeSince = &v +// SetHidden gets a reference to the given bool and assigns it to the Hidden field. +func (o *ArtifactDistributionResponse) SetHidden(v bool) { + o.Hidden = &v } -// GetHidden returns the Hidden field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetHidden() bool { - if o == nil || IsNil(o.Hidden) { - var ret bool +// GetPulpLastUpdated returns the PulpLastUpdated field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time { + if o == nil || IsNil(o.PulpLastUpdated) { + var ret time.Time return ret } - return *o.Hidden + return *o.PulpLastUpdated } -// GetHiddenOk returns a tuple with the Hidden field value if set, nil otherwise +// GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool) { - if o == nil || IsNil(o.Hidden) { +func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpLastUpdated) { return nil, false } - return o.Hidden, true + return o.PulpLastUpdated, true } -// HasHidden returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasHidden() bool { - if o != nil && !IsNil(o.Hidden) { +// HasPulpLastUpdated returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool { + if o != nil && !IsNil(o.PulpLastUpdated) { return true } return false } -// SetHidden gets a reference to the given bool and assigns it to the Hidden field. -func (o *ArtifactDistributionResponse) SetHidden(v bool) { - o.Hidden = &v +// SetPulpLastUpdated gets a reference to the given time.Time and assigns it to the PulpLastUpdated field. +func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time) { + o.PulpLastUpdated = &v } -// GetName returns the Name field value -func (o *ArtifactDistributionResponse) GetName() string { - if o == nil { +// 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.Name + return *o.NoContentChangeSince } -// GetNameOk returns a tuple with the Name field value +// 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) GetNameOk() (*string, bool) { - if o == nil { +func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool) { + if o == nil || IsNil(o.NoContentChangeSince) { return nil, false } - return &o.Name, true + return o.NoContentChangeSince, true } -// SetName sets field value -func (o *ArtifactDistributionResponse) SetName(v string) { - o.Name = v +// 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 +} + +// SetNoContentChangeSince gets a reference to the given string and assigns it to the NoContentChangeSince field. +func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { + o.NoContentChangeSince = &v } // GetContentGuard returns the ContentGuard field value if set, zero value otherwise (both if not set or set to explicit null). @@ -384,36 +360,60 @@ func (o *ArtifactDistributionResponse) UnsetContentGuard() { o.ContentGuard.Unset() } -// 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 +// 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.BaseUrl + return *o.PulpCreated } -// GetBaseUrlOk returns a tuple with the BaseUrl 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) GetBaseUrlOk() (*string, bool) { - if o == nil || IsNil(o.BaseUrl) { +func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpCreated) { return nil, false } - return o.BaseUrl, true + return o.PulpCreated, true } -// HasBaseUrl returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasBaseUrl() bool { - if o != nil && !IsNil(o.BaseUrl) { +// 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 } -// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. -func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { - o.BaseUrl = &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 +} + +// 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 } func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { @@ -426,35 +426,35 @@ func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { func (o ArtifactDistributionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.PulpCreated) { - toSerialize["pulp_created"] = o.PulpCreated + if !IsNil(o.PulpLabels) { + toSerialize["pulp_labels"] = o.PulpLabels } if !IsNil(o.PulpHref) { toSerialize["pulp_href"] = o.PulpHref } - if !IsNil(o.PulpLastUpdated) { - toSerialize["pulp_last_updated"] = o.PulpLastUpdated - } if !IsNil(o.Prn) { toSerialize["prn"] = o.Prn } - if !IsNil(o.PulpLabels) { - toSerialize["pulp_labels"] = o.PulpLabels - } - toSerialize["base_path"] = o.BasePath - if !IsNil(o.NoContentChangeSince) { - toSerialize["no_content_change_since"] = o.NoContentChangeSince + if !IsNil(o.BaseUrl) { + toSerialize["base_url"] = o.BaseUrl } + toSerialize["name"] = o.Name if !IsNil(o.Hidden) { toSerialize["hidden"] = o.Hidden } - toSerialize["name"] = o.Name + if !IsNil(o.PulpLastUpdated) { + toSerialize["pulp_last_updated"] = o.PulpLastUpdated + } + if !IsNil(o.NoContentChangeSince) { + toSerialize["no_content_change_since"] = o.NoContentChangeSince + } if o.ContentGuard.IsSet() { toSerialize["content_guard"] = o.ContentGuard.Get() } - if !IsNil(o.BaseUrl) { - toSerialize["base_url"] = o.BaseUrl + if !IsNil(o.PulpCreated) { + toSerialize["pulp_created"] = o.PulpCreated } + toSerialize["base_path"] = o.BasePath for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -468,8 +468,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{ - "base_path", "name", + "base_path", } allProperties := make(map[string]interface{}) @@ -499,17 +499,17 @@ func (o *ArtifactDistributionResponse) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "pulp_created") + delete(additionalProperties, "pulp_labels") delete(additionalProperties, "pulp_href") - delete(additionalProperties, "pulp_last_updated") delete(additionalProperties, "prn") - delete(additionalProperties, "pulp_labels") - delete(additionalProperties, "base_path") - delete(additionalProperties, "no_content_change_since") - delete(additionalProperties, "hidden") + delete(additionalProperties, "base_url") delete(additionalProperties, "name") + delete(additionalProperties, "hidden") + delete(additionalProperties, "pulp_last_updated") + delete(additionalProperties, "no_content_change_since") delete(additionalProperties, "content_guard") - delete(additionalProperties, "base_url") + delete(additionalProperties, "pulp_created") + delete(additionalProperties, "base_path") o.AdditionalProperties = additionalProperties }