From a5b61fe75826ba3425910419efa3048fb5104052 Mon Sep 17 00:00:00 2001 From: andrewgdewar Date: Sat, 1 Jul 2023 07:12:34 +0000 Subject: [PATCH] Update pulp bindings to d6a984592e569b42a26e536b94e27ad43bada90b7a8d53bd49838eda6dba3325 --- release/README.md | 2 +- release/api/openapi.yaml | 58 ++--- release/configuration.go | 2 +- release/docs/ArtifactDistributionResponse.md | 172 ++++++------- .../model_artifact_distribution_response.go | 242 +++++++++--------- 5 files changed, 238 insertions(+), 238 deletions(-) diff --git a/release/README.md b/release/README.md index c117a7a8..5df2fa2a 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: 386d86254354e29d3b864523aed478a825833a167968b5e2da9ab863deab9a54 +- Package version: d6a984592e569b42a26e536b94e27ad43bada90b7a8d53bd49838eda6dba3325 - 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 a4192156..6d2055ff 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -18941,27 +18941,33 @@ components: ArtifactDistributionResponse: description: A serializer for ArtifactDistribution. example: - pulp_href: https://openapi-generator.tech + hidden: false pulp_labels: key: pulp_labels - hidden: false - name: name + pulp_href: https://openapi-generator.tech base_url: base_url - pulp_created: 2000-01-23T04:56:07.000+00:00 + name: name base_path: base_path + pulp_created: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech properties: - pulp_href: - format: uri - readOnly: true - type: string content_guard: description: An optional content-guard. format: uri nullable: true type: string - name: - description: "A unique name. Ex, `rawhide` and `stable`." + base_url: + description: The URL for accessing the publication as defined by this distribution. + readOnly: true + type: string + hidden: + default: false + description: Whether this distribution should be shown in the content app. + type: boolean + 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: @@ -18973,19 +18979,13 @@ 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. + pulp_href: + format: uri 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 required: - base_path - name @@ -20162,23 +20162,23 @@ components: previous: http://api.example.org/accounts/?offset=200&limit=100 count: 123 results: - - pulp_href: https://openapi-generator.tech + - hidden: false pulp_labels: key: pulp_labels - hidden: false - name: name + pulp_href: https://openapi-generator.tech base_url: base_url - pulp_created: 2000-01-23T04:56:07.000+00:00 + name: name base_path: base_path + pulp_created: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech - - pulp_href: https://openapi-generator.tech + - hidden: false pulp_labels: key: pulp_labels - hidden: false - name: name + pulp_href: https://openapi-generator.tech base_url: base_url - pulp_created: 2000-01-23T04:56:07.000+00:00 + name: name base_path: base_path + pulp_created: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech properties: count: diff --git a/release/configuration.go b/release/configuration.go index 8717bc2d..077f296b 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/386d86254354e29d3b864523aed478a825833a167968b5e2da9ab863deab9a54/go", + UserAgent: "OpenAPI-Generator/d6a984592e569b42a26e536b94e27ad43bada90b7a8d53bd49838eda6dba3325/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index 2132b6fd..ca92352b 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,20 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PulpHref** | Pointer to **string** | | [optional] [readonly] **ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] -**Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | -**PulpLabels** | Pointer to **map[string]string** | | [optional] -**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\") | **BaseUrl** | Pointer to **string** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly] **Hidden** | Pointer to **bool** | Whether this distribution should be shown in the content app. | [optional] [default to false] +**BasePath** | **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | +**PulpLabels** | Pointer to **map[string]string** | | [optional] +**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] +**PulpHref** | Pointer to **string** | | [optional] [readonly] +**Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | ## Methods ### NewArtifactDistributionResponse -`func NewArtifactDistributionResponse(name string, basePath string, ) *ArtifactDistributionResponse` +`func NewArtifactDistributionResponse(basePath string, name string, ) *ArtifactDistributionResponse` NewArtifactDistributionResponse instantiates a new ArtifactDistributionResponse object This constructor will assign default values to properties that have it defined, @@ -32,31 +32,6 @@ 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 -### GetPulpHref - -`func (o *ArtifactDistributionResponse) GetPulpHref() string` - -GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. - -### GetPulpHrefOk - -`func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool)` - -GetPulpHrefOk returns a tuple with the PulpHref field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPulpHref - -`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` - -SetPulpHref sets PulpHref field to given value. - -### HasPulpHref - -`func (o *ArtifactDistributionResponse) HasPulpHref() bool` - -HasPulpHref returns a boolean if a field has been set. - ### GetContentGuard `func (o *ArtifactDistributionResponse) GetContentGuard() string` @@ -92,24 +67,74 @@ 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 +### GetBaseUrl -`func (o *ArtifactDistributionResponse) GetName() string` +`func (o *ArtifactDistributionResponse) GetBaseUrl() string` -GetName returns the Name field if non-nil, zero value otherwise. +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. -### GetNameOk +### GetBaseUrlOk -`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` -GetNameOk returns a tuple with the Name 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. -### SetName +### SetBaseUrl -`func (o *ArtifactDistributionResponse) SetName(v string)` +`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` -SetName sets Name field to given value. +SetBaseUrl sets BaseUrl field to given value. + +### HasBaseUrl + +`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` + +HasBaseUrl returns a boolean if a field has been set. + +### GetHidden + +`func (o *ArtifactDistributionResponse) GetHidden() bool` + +GetHidden returns the Hidden field if non-nil, zero value otherwise. + +### GetHiddenOk + +`func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool)` + +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. + +### SetHidden + +`func (o *ArtifactDistributionResponse) SetHidden(v bool)` + +SetHidden sets Hidden field to given value. + +### HasHidden + +`func (o *ArtifactDistributionResponse) HasHidden() bool` + +HasHidden 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. ### GetPulpLabels @@ -162,75 +187,50 @@ SetPulpCreated sets PulpCreated field to given value. 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. - - -### GetBaseUrl +### GetPulpHref -`func (o *ArtifactDistributionResponse) GetBaseUrl() string` +`func (o *ArtifactDistributionResponse) GetPulpHref() string` -GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. +GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. -### GetBaseUrlOk +### GetPulpHrefOk -`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool)` -GetBaseUrlOk returns a tuple with the BaseUrl 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. -### SetBaseUrl +### SetPulpHref -`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` +`func (o *ArtifactDistributionResponse) SetPulpHref(v string)` -SetBaseUrl sets BaseUrl field to given value. +SetPulpHref sets PulpHref field to given value. -### HasBaseUrl +### HasPulpHref -`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` +`func (o *ArtifactDistributionResponse) HasPulpHref() bool` -HasBaseUrl returns a boolean if a field has been set. +HasPulpHref returns a boolean if a field has been set. -### GetHidden +### GetName -`func (o *ArtifactDistributionResponse) GetHidden() bool` +`func (o *ArtifactDistributionResponse) GetName() string` -GetHidden returns the Hidden field if non-nil, zero value otherwise. +GetName returns the Name field if non-nil, zero value otherwise. -### GetHiddenOk +### GetNameOk -`func (o *ArtifactDistributionResponse) GetHiddenOk() (*bool, bool)` +`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` -GetHiddenOk returns a tuple with the Hidden 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. -### SetHidden - -`func (o *ArtifactDistributionResponse) SetHidden(v bool)` - -SetHidden sets Hidden field to given value. +### SetName -### HasHidden +`func (o *ArtifactDistributionResponse) SetName(v string)` -`func (o *ArtifactDistributionResponse) HasHidden() bool` +SetName sets Name field to given value. -HasHidden 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 e07037cd..07affc27 100644 --- a/release/model_artifact_distribution_response.go +++ b/release/model_artifact_distribution_response.go @@ -21,32 +21,32 @@ var _ MappedNullable = &ArtifactDistributionResponse{} // ArtifactDistributionResponse A serializer for ArtifactDistribution. type ArtifactDistributionResponse struct { - 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"` - PulpLabels *map[string]string `json:"pulp_labels,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"` // The URL for accessing the publication as defined by this distribution. BaseUrl *string `json:"base_url,omitempty"` // Whether this distribution should be shown in the content app. Hidden *bool `json:"hidden,omitempty"` + // The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") + BasePath string `json:"base_path"` + PulpLabels *map[string]string `json:"pulp_labels,omitempty"` + // Timestamp of creation. + PulpCreated *time.Time `json:"pulp_created,omitempty"` + PulpHref *string `json:"pulp_href,omitempty"` + // A unique name. Ex, `rawhide` and `stable`. + Name string `json:"name"` } // NewArtifactDistributionResponse instantiates a new ArtifactDistributionResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewArtifactDistributionResponse(name string, basePath string) *ArtifactDistributionResponse { +func NewArtifactDistributionResponse(basePath string, name string) *ArtifactDistributionResponse { this := ArtifactDistributionResponse{} - this.Name = name - this.BasePath = basePath var hidden bool = false this.Hidden = &hidden + this.BasePath = basePath + this.Name = name return &this } @@ -60,38 +60,6 @@ func NewArtifactDistributionResponseWithDefaults() *ArtifactDistributionResponse return &this } -// 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.PulpHref -} - -// GetPulpHrefOk returns a tuple with the PulpHref field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool) { - if o == nil || IsNil(o.PulpHref) { - return nil, false - } - return o.PulpHref, true -} - -// HasPulpHref returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpHref() bool { - if o != nil && !IsNil(o.PulpHref) { - return true - } - - return false -} - -// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. -func (o *ArtifactDistributionResponse) SetPulpHref(v string) { - o.PulpHref = &v -} - // 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()) { @@ -134,28 +102,92 @@ func (o *ArtifactDistributionResponse) UnsetContentGuard() { o.ContentGuard.Unset() } -// GetName returns the Name field value -func (o *ArtifactDistributionResponse) GetName() 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.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 +} + +// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. +func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { + o.BaseUrl = &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 + return ret + } + return *o.Hidden +} + +// 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) GetHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.Hidden) { + return nil, false + } + return o.Hidden, true +} + +// 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 +} + +// SetHidden gets a reference to the given bool and assigns it to the Hidden field. +func (o *ArtifactDistributionResponse) SetHidden(v bool) { + o.Hidden = &v +} + +// GetBasePath returns the BasePath field value +func (o *ArtifactDistributionResponse) GetBasePath() string { if o == nil { var ret string return ret } - return o.Name + return o.BasePath } -// GetNameOk returns a tuple with the Name field value +// GetBasePathOk returns a tuple with the BasePath field value // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool) { +func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool) { if o == nil { return nil, false } - return &o.Name, true + return &o.BasePath, true } -// SetName sets field value -func (o *ArtifactDistributionResponse) SetName(v string) { - o.Name = v +// SetBasePath sets field value +func (o *ArtifactDistributionResponse) SetBasePath(v string) { + o.BasePath = v } // GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. @@ -222,92 +254,60 @@ 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 -} - -// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetBaseUrl() string { - if o == nil || IsNil(o.BaseUrl) { +// 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.BaseUrl + return *o.PulpHref } -// GetBaseUrlOk returns a tuple with the BaseUrl 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) GetBaseUrlOk() (*string, bool) { - if o == nil || IsNil(o.BaseUrl) { +func (o *ArtifactDistributionResponse) GetPulpHrefOk() (*string, bool) { + if o == nil || IsNil(o.PulpHref) { return nil, false } - return o.BaseUrl, true + return o.PulpHref, true } -// HasBaseUrl returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasBaseUrl() bool { - if o != nil && !IsNil(o.BaseUrl) { +// 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 } -// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. -func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { - o.BaseUrl = &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 } -// 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 +// GetName returns the Name field value +func (o *ArtifactDistributionResponse) GetName() string { + if o == nil { + var ret string return ret } - return *o.Hidden + + return o.Name } -// GetHiddenOk returns a tuple with the Hidden 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) GetHiddenOk() (*bool, bool) { - if o == nil || IsNil(o.Hidden) { +func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool) { + if o == nil { return nil, false } - return o.Hidden, true -} - -// 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 + return &o.Name, true } -// SetHidden gets a reference to the given bool and assigns it to the Hidden field. -func (o *ArtifactDistributionResponse) SetHidden(v bool) { - o.Hidden = &v +// SetName sets field value +func (o *ArtifactDistributionResponse) SetName(v string) { + o.Name = v } func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { @@ -320,26 +320,26 @@ func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { func (o ArtifactDistributionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - 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 + } + toSerialize["base_path"] = o.BasePath if !IsNil(o.PulpLabels) { toSerialize["pulp_labels"] = o.PulpLabels } if !IsNil(o.PulpCreated) { toSerialize["pulp_created"] = o.PulpCreated } - toSerialize["base_path"] = o.BasePath - if !IsNil(o.BaseUrl) { - toSerialize["base_url"] = o.BaseUrl - } - if !IsNil(o.Hidden) { - toSerialize["hidden"] = o.Hidden + if !IsNil(o.PulpHref) { + toSerialize["pulp_href"] = o.PulpHref } + toSerialize["name"] = o.Name return toSerialize, nil }