pulp_container_client 2.16.9 → 2.16.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -7
  3. data/docs/ContainerContainerDistribution.md +7 -7
  4. data/docs/ContainerContainerDistributionResponse.md +11 -11
  5. data/docs/ContainerContainerPushRepository.md +7 -7
  6. data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
  7. data/docs/ContainerContainerRemoteResponseHiddenFields.md +2 -2
  8. data/docs/ContentBlobsApi.md +1 -1
  9. data/docs/ContentManifestsApi.md +1 -1
  10. data/docs/ContentSignaturesApi.md +1 -1
  11. data/docs/ContentTagsApi.md +1 -1
  12. data/docs/DistributionsContainerApi.md +1 -1
  13. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  14. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  15. data/docs/PulpContainerNamespacesApi.md +1 -1
  16. data/docs/RemotesContainerApi.md +1 -1
  17. data/docs/RepositoriesContainerApi.md +1 -1
  18. data/docs/RepositoriesContainerPushApi.md +1 -1
  19. data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
  20. data/docs/RepositoriesContainerVersionsApi.md +1 -1
  21. data/docs/TokenApi.md +1 -1
  22. data/lib/pulp_container_client/configuration.rb +2 -2
  23. data/lib/pulp_container_client/models/container_container_distribution.rb +55 -55
  24. data/lib/pulp_container_client/models/container_container_distribution_response.rb +49 -49
  25. data/lib/pulp_container_client/models/container_container_push_repository.rb +52 -52
  26. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +51 -51
  27. data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
  28. data/lib/pulp_container_client/models/container_container_remote_response.rb +20 -20
  29. data/lib/pulp_container_client/models/container_container_remote_response_hidden_fields.rb +10 -0
  30. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +46 -46
  31. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +43 -43
  32. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
  33. data/lib/pulp_container_client/version.rb +1 -1
  34. data/lib/pulp_container_client.rb +0 -2
  35. data/spec/configuration_spec.rb +3 -3
  36. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  37. data/spec/models/container_container_distribution_spec.rb +6 -6
  38. data/spec/models/container_container_push_repository_response_spec.rb +7 -7
  39. data/spec/models/container_container_push_repository_spec.rb +4 -4
  40. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  41. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  42. metadata +68 -76
  43. data/docs/IndexDynamicApi.md +0 -50
  44. data/docs/IndexStaticApi.md +0 -50
  45. data/lib/pulp_container_client/api/index_dynamic_api.rb +0 -74
  46. data/lib/pulp_container_client/api/index_static_api.rb +0 -74
  47. data/spec/api/index_dynamic_api_spec.rb +0 -45
  48. data/spec/api/index_static_api_spec.rb +0 -45
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcfed4a8ee5b1a19426159c31939b52921b14f6864dbeb874aa385ce025ca662
4
- data.tar.gz: 4c9d591eaac998fd638fc187efe2e32381dbf4be6fc13573c56dda0783d60abe
3
+ metadata.gz: a046a78c2875330a847ca164a7a7bb8c66dcc3ba3bddd384d0775767ae8907f4
4
+ data.tar.gz: 52ed73a814207c6e173d66bd69fd6a3644618886caef017261a1b49d72fa5104
5
5
  SHA512:
6
- metadata.gz: 455e42226353b2154fbace8d55e29e80591fe4cb0dd58c42f339b6b3fde7f780defe13fb0c8a7ccbb253c16456fd12b49c7f87a1b051048c9b8704c86718a6b6
7
- data.tar.gz: 648a43c720072d347e2439efb381e31d814248d40db77418c5aefbbb0852b0d504c375113daec8a907cc8563d88929bcb2a88531886b0cf6318fac7f3ad96f6d
6
+ metadata.gz: 43dcf54ec2eb997fb03b3507f3f8853d4c8d4dc854f9095d7dc53378ea4f3ddc383d4dbf02b88939d2213309268483ccf0438c9adb6d0a410809f820d2f32414
7
+ data.tar.gz: 9ea8d53d70d300d18b384ac2206436f3d59b572291fd1ea5ee8d74889ce4f90d50fc0d4ed81846eafb39a8eff4355a16c73764d940d8809ef28d12003c134ca0
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 2.16.9
10
+ - Package version: 2.16.11
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_container_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_container_client-2.16.9.gem
27
+ gem install ./pulp_container_client-2.16.11.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_container_client-2.16.9.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_container_client-2.16.11.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_container_client', '~> 2.16.9'
36
+ gem 'pulp_container_client', '~> 2.16.11'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -93,7 +93,7 @@ end
93
93
 
94
94
  ## Documentation for API Endpoints
95
95
 
96
- All URIs are relative to *http://pulp*
96
+ All URIs are relative to *http://localhost:24817*
97
97
 
98
98
  Class | Method | HTTP request | Description
99
99
  ------------ | ------------- | ------------- | -------------
@@ -117,8 +117,6 @@ Class | Method | HTTP request | Description
117
117
  *PulpContainerClient::DistributionsContainerApi* | [**set_label**](docs/DistributionsContainerApi.md#set_label) | **POST** {container_container_distribution_href}set_label/ | Set a label
118
118
  *PulpContainerClient::DistributionsContainerApi* | [**unset_label**](docs/DistributionsContainerApi.md#unset_label) | **POST** {container_container_distribution_href}unset_label/ | Unset a label
119
119
  *PulpContainerClient::DistributionsContainerApi* | [**update**](docs/DistributionsContainerApi.md#update) | **PUT** {container_container_distribution_href} | Update a container distribution
120
- *PulpContainerClient::IndexDynamicApi* | [**get**](docs/IndexDynamicApi.md#get) | **GET** /index/dynamic |
121
- *PulpContainerClient::IndexStaticApi* | [**get**](docs/IndexStaticApi.md#get) | **GET** /index/static |
122
120
  *PulpContainerClient::PulpContainerNamespacesApi* | [**add_role**](docs/PulpContainerNamespacesApi.md#add_role) | **POST** {container_container_namespace_href}add_role/ | Add a role
123
121
  *PulpContainerClient::PulpContainerNamespacesApi* | [**create**](docs/PulpContainerNamespacesApi.md#create) | **POST** /pulp/api/v3/pulp_container/namespaces/ | Create a container namespace
124
122
  *PulpContainerClient::PulpContainerNamespacesApi* | [**delete**](docs/PulpContainerNamespacesApi.md#delete) | **DELETE** {container_container_namespace_href} | Delete a container namespace
@@ -4,12 +4,12 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
8
- **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
9
7
  **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
8
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
10
9
  **base_path** | **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\") |
10
+ **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
11
+ **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
11
12
  **pulp_labels** | **Hash<String, String>** | | [optional]
12
- **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
13
13
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
14
14
  **private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
15
15
  **description** | **String** | An optional description. | [optional]
@@ -19,12 +19,12 @@ Name | Type | Description | Notes
19
19
  ```ruby
20
20
  require 'PulpContainerClient'
21
21
 
22
- instance = PulpContainerClient::ContainerContainerDistribution.new(content_guard: null,
23
- name: null,
24
- hidden: null,
22
+ instance = PulpContainerClient::ContainerContainerDistribution.new(hidden: null,
23
+ repository: null,
25
24
  base_path: null,
25
+ name: null,
26
+ content_guard: null,
26
27
  pulp_labels: null,
27
- repository: null,
28
28
  repository_version: null,
29
29
  private: null,
30
30
  description: null)
@@ -4,14 +4,14 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
8
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
- **pulp_href** | **String** | | [optional] [readonly]
10
- **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
11
7
  **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
8
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
12
9
  **base_path** | **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\") |
10
+ **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
11
+ **pulp_href** | **String** | | [optional] [readonly]
12
+ **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
13
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
13
14
  **pulp_labels** | **Hash<String, String>** | | [optional]
14
- **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
15
15
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
16
16
  **registry_path** | **String** | The Registry hostname/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
17
17
  **namespace** | **String** | Namespace this distribution belongs to. | [optional] [readonly]
@@ -23,14 +23,14 @@ Name | Type | Description | Notes
23
23
  ```ruby
24
24
  require 'PulpContainerClient'
25
25
 
26
- instance = PulpContainerClient::ContainerContainerDistributionResponse.new(content_guard: null,
27
- pulp_created: null,
28
- pulp_href: null,
29
- name: null,
30
- hidden: null,
26
+ instance = PulpContainerClient::ContainerContainerDistributionResponse.new(hidden: null,
27
+ repository: null,
31
28
  base_path: null,
29
+ name: null,
30
+ pulp_href: null,
31
+ content_guard: null,
32
+ pulp_created: null,
32
33
  pulp_labels: null,
33
- repository: null,
34
34
  repository_version: null,
35
35
  registry_path: null,
36
36
  namespace: null,
@@ -4,22 +4,22 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **description** | **String** | An optional description. | [optional]
8
- **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
9
7
  **name** | **String** | A unique name for this repository. |
10
- **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
11
8
  **pulp_labels** | **Hash<String, String>** | | [optional]
9
+ **description** | **String** | An optional description. | [optional]
10
+ **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
11
+ **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
12
12
 
13
13
  ## Code Sample
14
14
 
15
15
  ```ruby
16
16
  require 'PulpContainerClient'
17
17
 
18
- instance = PulpContainerClient::ContainerContainerPushRepository.new(description: null,
19
- retain_repo_versions: null,
20
- name: null,
18
+ instance = PulpContainerClient::ContainerContainerPushRepository.new(name: null,
19
+ pulp_labels: null,
20
+ description: null,
21
21
  manifest_signing_service: null,
22
- pulp_labels: null)
22
+ retain_repo_versions: null)
23
23
  ```
24
24
 
25
25
 
@@ -5,14 +5,14 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **latest_version_href** | **String** | | [optional] [readonly]
8
- **description** | **String** | An optional description. | [optional]
9
- **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
10
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
11
- **pulp_href** | **String** | | [optional] [readonly]
12
- **name** | **String** | A unique name for this repository. |
13
8
  **versions_href** | **String** | | [optional] [readonly]
14
- **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
9
+ **name** | **String** | A unique name for this repository. |
10
+ **pulp_href** | **String** | | [optional] [readonly]
11
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
15
12
  **pulp_labels** | **Hash<String, String>** | | [optional]
13
+ **description** | **String** | An optional description. | [optional]
14
+ **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
15
+ **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
16
16
 
17
17
  ## Code Sample
18
18
 
@@ -20,14 +20,14 @@ Name | Type | Description | Notes
20
20
  require 'PulpContainerClient'
21
21
 
22
22
  instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(latest_version_href: null,
23
- description: null,
24
- retain_repo_versions: null,
25
- pulp_created: null,
26
- pulp_href: null,
27
- name: null,
28
23
  versions_href: null,
24
+ name: null,
25
+ pulp_href: null,
26
+ pulp_created: null,
27
+ pulp_labels: null,
28
+ description: null,
29
29
  manifest_signing_service: null,
30
- pulp_labels: null)
30
+ retain_repo_versions: null)
31
31
  ```
32
32
 
33
33
 
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | | [optional]
8
- **is_set** | **Boolean** | | [optional]
7
+ **name** | **String** | |
8
+ **is_set** | **Boolean** | |
9
9
 
10
10
  ## Code Sample
11
11
 
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::ContentBlobsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::ContentManifestsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::ContentSignaturesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::ContentTagsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::DistributionsContainerApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -4,12 +4,12 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
8
- **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
9
7
  **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
8
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
10
9
  **base_path** | **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\") | [optional]
10
+ **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
11
+ **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
11
12
  **pulp_labels** | **Hash<String, String>** | | [optional]
12
- **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
13
13
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
14
14
  **private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
15
15
  **description** | **String** | An optional description. | [optional]
@@ -19,12 +19,12 @@ Name | Type | Description | Notes
19
19
  ```ruby
20
20
  require 'PulpContainerClient'
21
21
 
22
- instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(content_guard: null,
23
- name: null,
24
- hidden: null,
22
+ instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(hidden: null,
23
+ repository: null,
25
24
  base_path: null,
25
+ name: null,
26
+ content_guard: null,
26
27
  pulp_labels: null,
27
- repository: null,
28
28
  repository_version: null,
29
29
  private: null,
30
30
  description: null)
@@ -4,22 +4,22 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **description** | **String** | An optional description. | [optional]
8
- **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
9
7
  **name** | **String** | A unique name for this repository. | [optional]
10
- **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
11
8
  **pulp_labels** | **Hash<String, String>** | | [optional]
9
+ **description** | **String** | An optional description. | [optional]
10
+ **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
11
+ **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
12
12
 
13
13
  ## Code Sample
14
14
 
15
15
  ```ruby
16
16
  require 'PulpContainerClient'
17
17
 
18
- instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(description: null,
19
- retain_repo_versions: null,
20
- name: null,
18
+ instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(name: null,
19
+ pulp_labels: null,
20
+ description: null,
21
21
  manifest_signing_service: null,
22
- pulp_labels: null)
22
+ retain_repo_versions: null)
23
23
  ```
24
24
 
25
25
 
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::PulpContainerNamespacesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::RemotesContainerApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::RepositoriesContainerApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::RepositoriesContainerPushApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::RepositoriesContainerPushVersionsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::RepositoriesContainerVersionsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
data/docs/TokenApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::TokenApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -128,7 +128,7 @@ module PulpContainerClient
128
128
 
129
129
  def initialize
130
130
  @scheme = 'http'
131
- @host = 'pulp'
131
+ @host = 'localhost'
132
132
  @base_path = ''
133
133
  @api_key = {}
134
134
  @api_key_prefix = {}
@@ -210,7 +210,7 @@ module PulpContainerClient
210
210
  def server_settings
211
211
  [
212
212
  {
213
- url: "http://pulp/",
213
+ url: "http://localhost:24817/",
214
214
  description: "No description provided",
215
215
  }
216
216
  ]
@@ -15,22 +15,22 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
18
- # An optional content-guard. If none is specified, a default one will be used.
19
- attr_accessor :content_guard
20
-
21
- # A unique name. Ex, `rawhide` and `stable`.
22
- attr_accessor :name
23
-
24
18
  # Whether this distribution should be shown in the content app.
25
19
  attr_accessor :hidden
26
20
 
21
+ # The latest RepositoryVersion for this Repository will be served.
22
+ attr_accessor :repository
23
+
27
24
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
28
25
  attr_accessor :base_path
29
26
 
30
- attr_accessor :pulp_labels
27
+ # A unique name. Ex, `rawhide` and `stable`.
28
+ attr_accessor :name
31
29
 
32
- # The latest RepositoryVersion for this Repository will be served.
33
- attr_accessor :repository
30
+ # An optional content-guard. If none is specified, a default one will be used.
31
+ attr_accessor :content_guard
32
+
33
+ attr_accessor :pulp_labels
34
34
 
35
35
  # RepositoryVersion to be served
36
36
  attr_accessor :repository_version
@@ -44,12 +44,12 @@ module PulpContainerClient
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'content_guard' => :'content_guard',
48
- :'name' => :'name',
49
47
  :'hidden' => :'hidden',
48
+ :'repository' => :'repository',
50
49
  :'base_path' => :'base_path',
50
+ :'name' => :'name',
51
+ :'content_guard' => :'content_guard',
51
52
  :'pulp_labels' => :'pulp_labels',
52
- :'repository' => :'repository',
53
53
  :'repository_version' => :'repository_version',
54
54
  :'private' => :'private',
55
55
  :'description' => :'description'
@@ -59,12 +59,12 @@ module PulpContainerClient
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
- :'content_guard' => :'String',
63
- :'name' => :'String',
64
62
  :'hidden' => :'Boolean',
63
+ :'repository' => :'String',
65
64
  :'base_path' => :'String',
65
+ :'name' => :'String',
66
+ :'content_guard' => :'String',
66
67
  :'pulp_labels' => :'Hash<String, String>',
67
- :'repository' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,34 +95,34 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'content_guard')
99
- self.content_guard = attributes[:'content_guard']
100
- end
101
-
102
- if attributes.key?(:'name')
103
- self.name = attributes[:'name']
104
- end
105
-
106
98
  if attributes.key?(:'hidden')
107
99
  self.hidden = attributes[:'hidden']
108
100
  else
109
101
  self.hidden = false
110
102
  end
111
103
 
104
+ if attributes.key?(:'repository')
105
+ self.repository = attributes[:'repository']
106
+ end
107
+
112
108
  if attributes.key?(:'base_path')
113
109
  self.base_path = attributes[:'base_path']
114
110
  end
115
111
 
112
+ if attributes.key?(:'name')
113
+ self.name = attributes[:'name']
114
+ end
115
+
116
+ if attributes.key?(:'content_guard')
117
+ self.content_guard = attributes[:'content_guard']
118
+ end
119
+
116
120
  if attributes.key?(:'pulp_labels')
117
121
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
118
122
  self.pulp_labels = value
119
123
  end
120
124
  end
121
125
 
122
- if attributes.key?(:'repository')
123
- self.repository = attributes[:'repository']
124
- end
125
-
126
126
  if attributes.key?(:'repository_version')
127
127
  self.repository_version = attributes[:'repository_version']
128
128
  end
@@ -140,14 +140,6 @@ module PulpContainerClient
140
140
  # @return Array for valid properties with the reasons
141
141
  def list_invalid_properties
142
142
  invalid_properties = Array.new
143
- if @name.nil?
144
- invalid_properties.push('invalid value for "name", name cannot be nil.')
145
- end
146
-
147
- if @name.to_s.length < 1
148
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
149
- end
150
-
151
143
  if @base_path.nil?
152
144
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
153
145
  end
@@ -156,6 +148,14 @@ module PulpContainerClient
156
148
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
157
149
  end
158
150
 
151
+ if @name.nil?
152
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
153
+ end
154
+
155
+ if @name.to_s.length < 1
156
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
157
+ end
158
+
159
159
  if !@description.nil? && @description.to_s.length < 1
160
160
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
161
161
  end
@@ -166,28 +166,14 @@ module PulpContainerClient
166
166
  # Check to see if the all the properties in the model are valid
167
167
  # @return true if the model is valid
168
168
  def valid?
169
- return false if @name.nil?
170
- return false if @name.to_s.length < 1
171
169
  return false if @base_path.nil?
172
170
  return false if @base_path.to_s.length < 1
171
+ return false if @name.nil?
172
+ return false if @name.to_s.length < 1
173
173
  return false if !@description.nil? && @description.to_s.length < 1
174
174
  true
175
175
  end
176
176
 
177
- # Custom attribute writer method with validation
178
- # @param [Object] name Value to be assigned
179
- def name=(name)
180
- if name.nil?
181
- fail ArgumentError, 'name cannot be nil'
182
- end
183
-
184
- if name.to_s.length < 1
185
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
186
- end
187
-
188
- @name = name
189
- end
190
-
191
177
  # Custom attribute writer method with validation
192
178
  # @param [Object] base_path Value to be assigned
193
179
  def base_path=(base_path)
@@ -202,6 +188,20 @@ module PulpContainerClient
202
188
  @base_path = base_path
203
189
  end
204
190
 
191
+ # Custom attribute writer method with validation
192
+ # @param [Object] name Value to be assigned
193
+ def name=(name)
194
+ if name.nil?
195
+ fail ArgumentError, 'name cannot be nil'
196
+ end
197
+
198
+ if name.to_s.length < 1
199
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
200
+ end
201
+
202
+ @name = name
203
+ end
204
+
205
205
  # Custom attribute writer method with validation
206
206
  # @param [Object] description Value to be assigned
207
207
  def description=(description)
@@ -217,12 +217,12 @@ module PulpContainerClient
217
217
  def ==(o)
218
218
  return true if self.equal?(o)
219
219
  self.class == o.class &&
220
- content_guard == o.content_guard &&
221
- name == o.name &&
222
220
  hidden == o.hidden &&
221
+ repository == o.repository &&
223
222
  base_path == o.base_path &&
223
+ name == o.name &&
224
+ content_guard == o.content_guard &&
224
225
  pulp_labels == o.pulp_labels &&
225
- repository == o.repository &&
226
226
  repository_version == o.repository_version &&
227
227
  private == o.private &&
228
228
  description == o.description
@@ -237,7 +237,7 @@ module PulpContainerClient
237
237
  # Calculates hash code according to all attributes.
238
238
  # @return [Integer] Hash code
239
239
  def hash
240
- [content_guard, name, hidden, base_path, pulp_labels, repository, repository_version, private, description].hash
240
+ [hidden, repository, base_path, name, content_guard, pulp_labels, repository_version, private, description].hash
241
241
  end
242
242
 
243
243
  # Builds the object from hash