From 567dd4e1faf1fde39234ecae418db5f049935680 Mon Sep 17 00:00:00 2001 From: andrewgdewar Date: Wed, 27 Nov 2024 07:09:58 +0000 Subject: [PATCH] Update pulp bindings to b96da963e282496dea8346bd425a7eaabbb4b5c87e8639db952b3ae5d4b58e83 --- release/README.md | 2 +- release/api/openapi.yaml | 88 ++-- release/configuration.go | 2 +- release/docs/ArtifactDistributionResponse.md | 286 ++++++------ .../model_artifact_distribution_response.go | 420 +++++++++--------- 5 files changed, 399 insertions(+), 399 deletions(-) diff --git a/release/README.md b/release/README.md index 53868cf..972027f 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: d6a984592e569b42a26e536b94e27a33a32ad80b7a8d53bd49838eda6dba3325 +- Package version: b96da963e282496dea8346bd425a7eaabbb4b5c87e8639db952b3ae5d4b58e83 - 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 c211d8a..5b61e7b 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -40223,21 +40223,42 @@ components: ArtifactDistributionResponse: description: A serializer for ArtifactDistribution. example: - pulp_href: https://openapi-generator.tech hidden: false pulp_labels: key: pulp_labels - base_url: base_url + pulp_href: https://openapi-generator.tech name: name + base_url: base_url no_content_change_since: no_content_change_since - base_path: base_path 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: - prn: - description: The Pulp Resource Name (PRN). + hidden: + default: false + description: Whether this distribution should be shown in the content app. + type: boolean + pulp_labels: + additionalProperties: + nullable: true + type: string + type: object + content_guard: + description: An optional content-guard. + format: uri + nullable: true + type: string + pulp_href: + format: uri + readOnly: true + type: string + name: + description: "A unique name. Ex, `rawhide` and `stable`." + type: string + base_url: + description: The URL for accessing the publication as defined by this distribution. readOnly: true type: string pulp_last_updated: @@ -40247,13 +40268,10 @@ components: 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 - base_url: - description: The URL for accessing the publication as defined by this distribution. + 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_created: @@ -40261,33 +40279,15 @@ components: format: date-time readOnly: true type: string - pulp_href: - format: uri + prn: + description: The Pulp Resource Name (PRN). readOnly: true type: string - content_guard: - description: An optional content-guard. - format: uri - nullable: 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 - 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 + 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 required: - base_path - name @@ -42871,27 +42871,27 @@ components: previous: http://api.example.org/accounts/?offset=200&limit=100 count: 123 results: - - pulp_href: https://openapi-generator.tech - hidden: false + - hidden: false pulp_labels: key: pulp_labels - base_url: base_url + pulp_href: https://openapi-generator.tech name: name + base_url: base_url no_content_change_since: no_content_change_since - base_path: base_path 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 - hidden: false + - hidden: false pulp_labels: key: pulp_labels - base_url: base_url + pulp_href: https://openapi-generator.tech name: name + base_url: base_url no_content_change_since: no_content_change_since - base_path: base_path 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 diff --git a/release/configuration.go b/release/configuration.go index 6f2e549..3d075d5 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/d6a984592e569b42a26e536b94e27a33a32ad80b7a8d53bd49838eda6dba3325/go", + UserAgent: "OpenAPI-Generator/b96da963e282496dea8346bd425a7eaabbb4b5c87e8639db952b3ae5d4b58e83/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index 9b1ba1f..2d841b3 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,23 +4,23 @@ 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] -**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\") | -**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] -**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] +**PulpLabels** | Pointer to **map[string]string** | | [optional] +**ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] +**PulpHref** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | +**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] **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] +**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] +**Prn** | Pointer to **string** | The Pulp Resource Name (PRN). | [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,126 +35,91 @@ 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 +### GetHidden -`func (o *ArtifactDistributionResponse) GetPrn() string` +`func (o *ArtifactDistributionResponse) GetHidden() bool` -GetPrn returns the Prn field if non-nil, zero value otherwise. +GetHidden returns the Hidden field if non-nil, zero value otherwise. -### GetPrnOk +### GetHiddenOk -`func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool)` -GetPrnOk returns a tuple with the Prn 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. -### SetPrn +### SetHidden -`func (o *ArtifactDistributionResponse) SetPrn(v string)` +`func (o *ArtifactDistributionResponse) SetHidden(v bool)` -SetPrn sets Prn field to given value. +SetHidden sets Hidden field to given value. -### HasPrn +### HasHidden -`func (o *ArtifactDistributionResponse) HasPrn() bool` +`func (o *ArtifactDistributionResponse) HasHidden() bool` -HasPrn returns a boolean if a field has been set. +HasHidden returns a boolean if a field has been set. -### GetPulpLastUpdated +### GetPulpLabels -`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` +`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` -GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. +GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. -### GetPulpLastUpdatedOk +### GetPulpLabelsOk -`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` -GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field if it's non-nil, zero value otherwise +GetPulpLabelsOk returns a tuple with the PulpLabels field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPulpLastUpdated - -`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` - -SetPulpLastUpdated sets PulpLastUpdated field to given value. - -### HasPulpLastUpdated - -`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` - -HasPulpLastUpdated returns a boolean if a field has been set. - -### GetBasePath - -`func (o *ArtifactDistributionResponse) GetBasePath() string` - -GetBasePath returns the BasePath field if non-nil, zero value otherwise. - -### GetBasePathOk - -`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` +### SetPulpLabels -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) SetPulpLabels(v map[string]string)` -### SetBasePath +SetPulpLabels sets PulpLabels field to given value. -`func (o *ArtifactDistributionResponse) SetBasePath(v string)` +### HasPulpLabels -SetBasePath sets BasePath field to given value. +`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` +HasPulpLabels returns a boolean if a field has been 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 - -`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 - -`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` - -GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. +### SetContentGuard -### GetPulpCreatedOk +`func (o *ArtifactDistributionResponse) SetContentGuard(v string)` -`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` +SetContentGuard sets ContentGuard field to given value. -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. +### HasContentGuard -### SetPulpCreated +`func (o *ArtifactDistributionResponse) HasContentGuard() bool` -`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` +HasContentGuard returns a boolean if a field has been set. -SetPulpCreated sets PulpCreated field to given value. +### SetContentGuardNil -### HasPulpCreated +`func (o *ArtifactDistributionResponse) SetContentGuardNil(b bool)` -`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` + SetContentGuardNil sets the value for ContentGuard to be an explicit nil -HasPulpCreated returns a boolean if a field has been set. +### 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` @@ -180,85 +145,75 @@ SetPulpHref sets PulpHref field to given value. HasPulpHref returns a boolean if a field has been set. -### GetContentGuard +### GetName -`func (o *ArtifactDistributionResponse) GetContentGuard() string` +`func (o *ArtifactDistributionResponse) GetName() string` -GetContentGuard returns the ContentGuard field if non-nil, zero value otherwise. +GetName returns the Name field if non-nil, zero value otherwise. -### GetContentGuardOk +### GetNameOk -`func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` -GetContentGuardOk returns a tuple with the ContentGuard 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. -### 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 +### SetName -`func (o *ArtifactDistributionResponse) SetContentGuardNil(b bool)` +`func (o *ArtifactDistributionResponse) SetName(v string)` - SetContentGuardNil sets the value for ContentGuard to be an explicit nil +SetName sets Name field to given value. -### UnsetContentGuard -`func (o *ArtifactDistributionResponse) UnsetContentGuard()` -UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil -### GetHidden +### GetBaseUrl -`func (o *ArtifactDistributionResponse) GetHidden() bool` +`func (o *ArtifactDistributionResponse) GetBaseUrl() string` -GetHidden returns the Hidden field if non-nil, zero value otherwise. +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. -### GetHiddenOk +### GetBaseUrlOk -`func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool)` +`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` -GetHiddenOk returns a tuple with the Hidden 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. -### SetHidden +### SetBaseUrl -`func (o *ArtifactDistributionResponse) SetHidden(v bool)` +`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` -SetHidden sets Hidden field to given value. +SetBaseUrl sets BaseUrl field to given value. -### HasHidden +### HasBaseUrl -`func (o *ArtifactDistributionResponse) HasHidden() bool` +`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` -HasHidden returns a boolean if a field has been set. +HasBaseUrl returns a boolean if a field has been set. -### GetName +### GetPulpLastUpdated -`func (o *ArtifactDistributionResponse) GetName() string` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time` -GetName returns the Name field if non-nil, zero value otherwise. +GetPulpLastUpdated returns the PulpLastUpdated field if non-nil, zero value otherwise. -### GetNameOk +### GetPulpLastUpdatedOk -`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool)` -GetNameOk returns a tuple with the Name 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. -### SetName +### SetPulpLastUpdated -`func (o *ArtifactDistributionResponse) SetName(v string)` +`func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time)` -SetName sets Name field to given value. +SetPulpLastUpdated sets PulpLastUpdated field to given value. + +### HasPulpLastUpdated + +`func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool` +HasPulpLastUpdated returns a boolean if a field has been set. ### GetNoContentChangeSince @@ -285,30 +240,75 @@ SetNoContentChangeSince sets NoContentChangeSince field to given value. HasNoContentChangeSince returns a boolean if a field has been set. -### GetPulpLabels +### GetPulpCreated -`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` +`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` -GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. +GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. -### GetPulpLabelsOk +### GetPulpCreatedOk -`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` -GetPulpLabelsOk returns a tuple with the PulpLabels 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. -### SetPulpLabels +### SetPulpCreated -`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` +`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` -SetPulpLabels sets PulpLabels field to given value. +SetPulpCreated sets PulpCreated field to given value. -### HasPulpLabels +### HasPulpCreated -`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` +`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` + +HasPulpCreated returns a boolean if a field has been 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. + +### 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. -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/model_artifact_distribution_response.go b/release/model_artifact_distribution_response.go index 500c8e8..be1fb06 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"` - // 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"` // Whether this distribution should be shown in the content app. Hidden *bool `json:"hidden,omitempty"` + PulpLabels *map[string]string `json:"pulp_labels,omitempty"` + // An optional content-guard. + ContentGuard NullableString `json:"content_guard,omitempty"` + PulpHref *string `json:"pulp_href,omitempty"` // A unique name. Ex, `rawhide` and `stable`. Name string `json:"name"` + // 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"` // 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"` + // Timestamp of creation. + PulpCreated *time.Time `json:"pulp_created,omitempty"` + // The Pulp Resource Name (PRN). + Prn *string `json:"prn,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 var hidden bool = false this.Hidden = &hidden this.Name = name + this.BasePath = basePath return &this } @@ -70,156 +70,110 @@ 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 +// 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.Prn + return *o.Hidden } -// GetPrnOk returns a tuple with the Prn 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) GetPrnOk() (*string, bool) { - if o == nil || IsNil(o.Prn) { +func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.Hidden) { return nil, false } - return o.Prn, true + return o.Hidden, true } -// HasPrn returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPrn() bool { - if o != nil && !IsNil(o.Prn) { +// 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 } -// SetPrn gets a reference to the given string and assigns it to the Prn field. -func (o *ArtifactDistributionResponse) SetPrn(v string) { - o.Prn = &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 } -// GetPulpLastUpdated returns the PulpLastUpdated field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time { - if o == nil || IsNil(o.PulpLastUpdated) { - var ret time.Time +// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string { + if o == nil || IsNil(o.PulpLabels) { + var ret map[string]string return ret } - return *o.PulpLastUpdated + return *o.PulpLabels } -// GetPulpLastUpdatedOk returns a tuple with the PulpLastUpdated field value if set, nil otherwise +// GetPulpLabelsOk returns a tuple with the PulpLabels field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpLastUpdated) { +func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { return nil, false } - return o.PulpLastUpdated, true + return o.PulpLabels, true } -// HasPulpLastUpdated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLastUpdated() bool { - if o != nil && !IsNil(o.PulpLastUpdated) { +// HasPulpLabels returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasPulpLabels() bool { + if o != nil && !IsNil(o.PulpLabels) { return true } return false } -// SetPulpLastUpdated gets a reference to the given time.Time and assigns it to the PulpLastUpdated field. -func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time) { - o.PulpLastUpdated = &v +// 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 } -// GetBasePath returns the BasePath field value -func (o *ArtifactDistributionResponse) GetBasePath() string { - if o == nil { +// 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.BasePath + return *o.ContentGuard.Get() } -// GetBasePathOk returns a tuple with the BasePath field value +// 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) GetBasePathOk() (*string, bool) { +// 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.BasePath, true -} - -// 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 + 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 -} - -// 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.PulpCreated -} - -// 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) GetPulpCreatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpCreated) { - return nil, false - } - return o.PulpCreated, true +// 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) } - -// 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 +// SetContentGuardNil sets the value for ContentGuard to be an explicit nil +func (o *ArtifactDistributionResponse) SetContentGuardNil() { + o.ContentGuard.Set(nil) } -// 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 +// 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. @@ -254,102 +208,92 @@ 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). -func (o *ArtifactDistributionResponse) GetContentGuard() string { - if o == nil || IsNil(o.ContentGuard.Get()) { +// GetName returns the Name field value +func (o *ArtifactDistributionResponse) GetName() string { + if o == nil { var ret string return ret } - return *o.ContentGuard.Get() + + return o.Name } -// GetContentGuardOk returns a tuple with the ContentGuard 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. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool) { +func (o *ArtifactDistributionResponse) GetNameOk() (*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) + return &o.Name, true } -// UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil -func (o *ArtifactDistributionResponse) UnsetContentGuard() { - o.ContentGuard.Unset() +// 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) { - var ret bool +// 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.Hidden + return *o.BaseUrl } -// GetHiddenOk returns a tuple with the Hidden 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) GetHiddenOk() (*bool, bool) { - if o == nil || IsNil(o.Hidden) { +func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseUrl) { return nil, false } - return o.Hidden, true + return o.BaseUrl, true } -// HasHidden returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasHidden() bool { - if o != nil && !IsNil(o.Hidden) { +// 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 } -// SetHidden gets a reference to the given bool and assigns it to the Hidden field. -func (o *ArtifactDistributionResponse) SetHidden(v bool) { - o.Hidden = &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 } -// GetName returns the Name field value -func (o *ArtifactDistributionResponse) GetName() string { - if o == nil { - var ret string +// GetPulpLastUpdated returns the PulpLastUpdated field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPulpLastUpdated() time.Time { + if o == nil || IsNil(o.PulpLastUpdated) { + var ret time.Time return ret } - - return o.Name + return *o.PulpLastUpdated } -// GetNameOk returns a tuple with the Name field value +// 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) GetNameOk() (*string, bool) { - if o == nil { +func (o *ArtifactDistributionResponse) GetPulpLastUpdatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpLastUpdated) { return nil, false } - return &o.Name, true + return o.PulpLastUpdated, true } -// SetName sets field value -func (o *ArtifactDistributionResponse) SetName(v string) { - o.Name = v +// 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 } // GetNoContentChangeSince returns the NoContentChangeSince field value if set, zero value otherwise. @@ -384,36 +328,92 @@ func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { o.NoContentChangeSince = &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 +// 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.PulpLabels + return *o.PulpCreated } -// GetPulpLabelsOk returns a tuple with the PulpLabels 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) GetPulpLabelsOk() (*map[string]string, bool) { - if o == nil || IsNil(o.PulpLabels) { +func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpCreated) { return nil, false } - return o.PulpLabels, true + return o.PulpCreated, true } -// HasPulpLabels returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLabels() bool { - if o != nil && !IsNil(o.PulpLabels) { +// 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 } -// 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 +// 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 +} + +// 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 +} + +// 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.Prn) { - toSerialize["prn"] = o.Prn - } - if !IsNil(o.PulpLastUpdated) { - toSerialize["pulp_last_updated"] = o.PulpLastUpdated + if !IsNil(o.Hidden) { + toSerialize["hidden"] = o.Hidden } - toSerialize["base_path"] = o.BasePath - if !IsNil(o.BaseUrl) { - toSerialize["base_url"] = o.BaseUrl + if !IsNil(o.PulpLabels) { + toSerialize["pulp_labels"] = o.PulpLabels } - if !IsNil(o.PulpCreated) { - toSerialize["pulp_created"] = o.PulpCreated + if o.ContentGuard.IsSet() { + toSerialize["content_guard"] = o.ContentGuard.Get() } if !IsNil(o.PulpHref) { toSerialize["pulp_href"] = o.PulpHref } - if o.ContentGuard.IsSet() { - toSerialize["content_guard"] = o.ContentGuard.Get() + toSerialize["name"] = o.Name + if !IsNil(o.BaseUrl) { + toSerialize["base_url"] = o.BaseUrl } - if !IsNil(o.Hidden) { - toSerialize["hidden"] = o.Hidden + if !IsNil(o.PulpLastUpdated) { + toSerialize["pulp_last_updated"] = o.PulpLastUpdated } - toSerialize["name"] = o.Name if !IsNil(o.NoContentChangeSince) { toSerialize["no_content_change_since"] = o.NoContentChangeSince } - if !IsNil(o.PulpLabels) { - toSerialize["pulp_labels"] = o.PulpLabels + if !IsNil(o.PulpCreated) { + toSerialize["pulp_created"] = o.PulpCreated + } + if !IsNil(o.Prn) { + toSerialize["prn"] = o.Prn } + 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, "prn") - delete(additionalProperties, "pulp_last_updated") - delete(additionalProperties, "base_path") - delete(additionalProperties, "base_url") - delete(additionalProperties, "pulp_created") - delete(additionalProperties, "pulp_href") - delete(additionalProperties, "content_guard") delete(additionalProperties, "hidden") + delete(additionalProperties, "pulp_labels") + delete(additionalProperties, "content_guard") + delete(additionalProperties, "pulp_href") delete(additionalProperties, "name") + delete(additionalProperties, "base_url") + delete(additionalProperties, "pulp_last_updated") delete(additionalProperties, "no_content_change_since") - delete(additionalProperties, "pulp_labels") + delete(additionalProperties, "pulp_created") + delete(additionalProperties, "prn") + delete(additionalProperties, "base_path") o.AdditionalProperties = additionalProperties }