pulp_container_client 2.9.1 → 2.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +3 -3
  4. data/docs/ContainerContainerDistributionResponse.md +7 -7
  5. data/docs/ContainerContainerPushRepository.md +4 -4
  6. data/docs/ContainerContainerPushRepositoryResponse.md +8 -8
  7. data/docs/ContainerContainerRemote.md +1 -1
  8. data/docs/ContainerContainerRemoteResponse.md +1 -1
  9. data/docs/PatchedcontainerContainerDistribution.md +3 -3
  10. data/docs/PatchedcontainerContainerPushRepository.md +4 -4
  11. data/docs/PatchedcontainerContainerRemote.md +1 -1
  12. data/lib/pulp_container_client/api/repositories_container_api.rb +4 -0
  13. data/lib/pulp_container_client/models/container_container_distribution.rb +64 -11
  14. data/lib/pulp_container_client/models/container_container_distribution_response.rb +27 -27
  15. data/lib/pulp_container_client/models/container_container_namespace.rb +9 -0
  16. data/lib/pulp_container_client/models/container_container_push_repository.rb +55 -21
  17. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +36 -36
  18. data/lib/pulp_container_client/models/container_container_remote.rb +178 -1
  19. data/lib/pulp_container_client/models/container_container_remote_response.rb +1 -1
  20. data/lib/pulp_container_client/models/container_container_repository.rb +34 -0
  21. data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +34 -0
  22. data/lib/pulp_container_client/models/oci_build_image.rb +15 -0
  23. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +56 -11
  24. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +46 -16
  25. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +166 -1
  26. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +30 -0
  27. data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +30 -0
  28. data/lib/pulp_container_client/models/remove_image.rb +19 -0
  29. data/lib/pulp_container_client/models/tag_image.rb +28 -0
  30. data/lib/pulp_container_client/models/un_tag_image.rb +9 -0
  31. data/lib/pulp_container_client/version.rb +1 -1
  32. data/pulp_container_client.gemspec +1 -1
  33. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  34. data/spec/models/container_container_distribution_spec.rb +4 -4
  35. data/spec/models/container_container_push_repository_response_spec.rb +7 -7
  36. data/spec/models/container_container_push_repository_spec.rb +4 -4
  37. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  38. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  39. metadata +56 -50
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce8543c50043c609624f971583a76ff9ee2c10c9bcdf1e2bff4d165aa2f7c0e1
4
- data.tar.gz: 56cb01eb6b999eda62b0dcccce8f052e5b3255736e103baa59457800ca7c1ff3
3
+ metadata.gz: 5e185729c67bf17625e1c445b41d91cda811eeee39a948b76cfa293072ed5362
4
+ data.tar.gz: ce8e7f81ba26a17bcbb78b9c86c1f868ebbd5b85f341be8c4b05de62af4c4566
5
5
  SHA512:
6
- metadata.gz: 67935194469a11972711f44fda43ec7d149d6b52eca1ca1bcd2a9780905c3811582d77c41fb98ce8608ead396f844faae7e52193c997145b455fc0c02def86cb
7
- data.tar.gz: 8283dbb36f0b5a620dfaa5be19b23711dd169256e8f87e068e34f6da824d1554a08a4888d3cf1e035a4c61200d54cda780a287f074c0bac09745cffeaaa3f4f4
6
+ metadata.gz: f572f37a31d12328a4d0a7b4a56f3c9e8d089c58d9dc5ce847e0d60fd6c6d2e7b5a37ea5faab5d9e8b3bdd59c42c351851e7ea1f3711c994bc889e2173aaeba8
7
+ data.tar.gz: d952a00988144165e2f2f5fbda3797681e15e3b86f1de0ad716a5334f274861aa9db72599e86069b3f60edf6a015ae34b65170c412aefae5812ea85da824df7f
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.9.1
10
+ - Package version: 2.10.1
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.9.1.gem
27
+ gem install ./pulp_container_client-2.10.1.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_container_client-2.9.1.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_container_client-2.10.1.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.9.1'
36
+ gem 'pulp_container_client', '~> 2.10.1'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -4,10 +4,10 @@
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
7
  **pulp_labels** | [**Object**](.md) | | [optional]
9
8
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
10
9
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
10
+ **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
11
11
  **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\") |
12
12
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
13
13
  **private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
@@ -18,10 +18,10 @@ Name | Type | Description | Notes
18
18
  ```ruby
19
19
  require 'PulpContainerClient'
20
20
 
21
- instance = PulpContainerClient::ContainerContainerDistribution.new(content_guard: null,
22
- pulp_labels: null,
21
+ instance = PulpContainerClient::ContainerContainerDistribution.new(pulp_labels: null,
23
22
  repository: null,
24
23
  name: null,
24
+ content_guard: null,
25
25
  base_path: null,
26
26
  repository_version: null,
27
27
  private: null,
@@ -4,13 +4,13 @@
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
7
  **pulp_labels** | [**Object**](.md) | | [optional]
9
8
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
10
- **pulp_href** | **String** | | [optional] [readonly]
9
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
11
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]
12
+ **pulp_href** | **String** | | [optional] [readonly]
12
13
  **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\") |
13
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
14
14
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
15
15
  **registry_path** | **String** | The Registry hostame/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
16
16
  **namespace** | **String** | Namespace this distribution belongs to. | [optional] [readonly]
@@ -22,13 +22,13 @@ Name | Type | Description | Notes
22
22
  ```ruby
23
23
  require 'PulpContainerClient'
24
24
 
25
- instance = PulpContainerClient::ContainerContainerDistributionResponse.new(content_guard: null,
26
- pulp_labels: null,
25
+ instance = PulpContainerClient::ContainerContainerDistributionResponse.new(pulp_labels: null,
27
26
  repository: null,
28
- pulp_href: null,
27
+ pulp_created: null,
29
28
  name: null,
29
+ content_guard: null,
30
+ pulp_href: null,
30
31
  base_path: null,
31
- pulp_created: null,
32
32
  repository_version: null,
33
33
  registry_path: null,
34
34
  namespace: null,
@@ -4,20 +4,20 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
8
7
  **pulp_labels** | [**Object**](.md) | | [optional]
9
8
  **name** | **String** | A unique name for this repository. |
10
9
  **description** | **String** | An optional description. | [optional]
10
+ **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
11
11
 
12
12
  ## Code Sample
13
13
 
14
14
  ```ruby
15
15
  require 'PulpContainerClient'
16
16
 
17
- instance = PulpContainerClient::ContainerContainerPushRepository.new(retain_repo_versions: null,
18
- pulp_labels: null,
17
+ instance = PulpContainerClient::ContainerContainerPushRepository.new(pulp_labels: null,
19
18
  name: null,
20
- description: null)
19
+ description: null,
20
+ retain_repo_versions: null)
21
21
  ```
22
22
 
23
23
 
@@ -4,28 +4,28 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
8
- **versions_href** | **String** | | [optional] [readonly]
9
7
  **pulp_labels** | [**Object**](.md) | | [optional]
8
+ **versions_href** | **String** | | [optional] [readonly]
10
9
  **latest_version_href** | **String** | | [optional] [readonly]
11
- **pulp_href** | **String** | | [optional] [readonly]
10
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
12
11
  **name** | **String** | A unique name for this repository. |
13
12
  **description** | **String** | An optional description. | [optional]
14
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
13
+ **pulp_href** | **String** | | [optional] [readonly]
14
+ **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
15
15
 
16
16
  ## Code Sample
17
17
 
18
18
  ```ruby
19
19
  require 'PulpContainerClient'
20
20
 
21
- instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(retain_repo_versions: null,
21
+ instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(pulp_labels: null,
22
22
  versions_href: null,
23
- pulp_labels: null,
24
23
  latest_version_href: null,
25
- pulp_href: null,
24
+ pulp_created: null,
26
25
  name: null,
27
26
  description: null,
28
- pulp_created: null)
27
+ pulp_href: null,
28
+ retain_repo_versions: null)
29
29
  ```
30
30
 
31
31
 
@@ -24,7 +24,7 @@ Name | Type | Description | Notes
24
24
  **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
25
25
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
26
26
  **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
27
- **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
27
+ **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
28
28
  **upstream_name** | **String** | Name of the upstream repository |
29
29
  **include_tags** | **Array<String>** | A list of tags to include during sync. Wildcards *, ? are recognized. 'include_tags' is evaluated before 'exclude_tags'. | [optional]
30
30
  **exclude_tags** | **Array<String>** | A list of tags to exclude during sync. Wildcards *, ? are recognized. 'exclude_tags' is evaluated after 'include_tags'. | [optional]
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
22
22
  **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
23
23
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
24
24
  **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
25
- **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
25
+ **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
26
26
  **upstream_name** | **String** | Name of the upstream repository |
27
27
  **include_tags** | **Array<String>** | A list of tags to include during sync. Wildcards *, ? are recognized. 'include_tags' is evaluated before 'exclude_tags'. | [optional]
28
28
  **exclude_tags** | **Array<String>** | A list of tags to exclude during sync. Wildcards *, ? are recognized. 'exclude_tags' is evaluated after 'include_tags'. | [optional]
@@ -4,10 +4,10 @@
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
7
  **pulp_labels** | [**Object**](.md) | | [optional]
9
8
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
10
9
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
10
+ **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
11
11
  **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]
12
12
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
13
13
  **private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
@@ -18,10 +18,10 @@ Name | Type | Description | Notes
18
18
  ```ruby
19
19
  require 'PulpContainerClient'
20
20
 
21
- instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(content_guard: null,
22
- pulp_labels: null,
21
+ instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(pulp_labels: null,
23
22
  repository: null,
24
23
  name: null,
24
+ content_guard: null,
25
25
  base_path: null,
26
26
  repository_version: null,
27
27
  private: null,
@@ -4,20 +4,20 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
8
7
  **pulp_labels** | [**Object**](.md) | | [optional]
9
8
  **name** | **String** | A unique name for this repository. | [optional]
10
9
  **description** | **String** | An optional description. | [optional]
10
+ **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
11
11
 
12
12
  ## Code Sample
13
13
 
14
14
  ```ruby
15
15
  require 'PulpContainerClient'
16
16
 
17
- instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(retain_repo_versions: null,
18
- pulp_labels: null,
17
+ instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(pulp_labels: null,
19
18
  name: null,
20
- description: null)
19
+ description: null,
20
+ retain_repo_versions: null)
21
21
  ```
22
22
 
23
23
 
@@ -24,7 +24,7 @@ Name | Type | Description | Notes
24
24
  **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
25
25
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
26
26
  **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
27
- **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
27
+ **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
28
28
  **upstream_name** | **String** | Name of the upstream repository | [optional]
29
29
  **include_tags** | **Array<String>** | A list of tags to include during sync. Wildcards *, ? are recognized. 'include_tags' is evaluated before 'exclude_tags'. | [optional]
30
30
  **exclude_tags** | **Array<String>** | A list of tags to exclude during sync. Wildcards *, ? are recognized. 'exclude_tags' is evaluated after 'include_tags'. | [optional]
@@ -120,6 +120,10 @@ module PulpContainerClient
120
120
  if @api_client.config.client_side_validation && container_container_repository_href.nil?
121
121
  fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.build_image"
122
122
  end
123
+ if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'].to_s.length < 1
124
+ fail ArgumentError, 'invalid value for "opts[:"tag"]" when calling RepositoriesContainerApi.build_image, the character length must be great than or equal to 1.'
125
+ end
126
+
123
127
  # resource path
124
128
  local_var_path = '{container_container_repository_href}build_image/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
125
129
 
@@ -15,9 +15,6 @@ 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
18
  attr_accessor :pulp_labels
22
19
 
23
20
  # The latest RepositoryVersion for this Repository will be served.
@@ -26,6 +23,9 @@ module PulpContainerClient
26
23
  # A unique name. Ex, `rawhide` and `stable`.
27
24
  attr_accessor :name
28
25
 
26
+ # An optional content-guard. If none is specified, a default one will be used.
27
+ attr_accessor :content_guard
28
+
29
29
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
30
30
  attr_accessor :base_path
31
31
 
@@ -41,10 +41,10 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'content_guard' => :'content_guard',
45
44
  :'pulp_labels' => :'pulp_labels',
46
45
  :'repository' => :'repository',
47
46
  :'name' => :'name',
47
+ :'content_guard' => :'content_guard',
48
48
  :'base_path' => :'base_path',
49
49
  :'repository_version' => :'repository_version',
50
50
  :'private' => :'private',
@@ -55,10 +55,10 @@ module PulpContainerClient
55
55
  # Attribute type mapping.
56
56
  def self.openapi_types
57
57
  {
58
- :'content_guard' => :'String',
59
58
  :'pulp_labels' => :'Object',
60
59
  :'repository' => :'String',
61
60
  :'name' => :'String',
61
+ :'content_guard' => :'String',
62
62
  :'base_path' => :'String',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
@@ -90,10 +90,6 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
- if attributes.key?(:'content_guard')
94
- self.content_guard = attributes[:'content_guard']
95
- end
96
-
97
93
  if attributes.key?(:'pulp_labels')
98
94
  self.pulp_labels = attributes[:'pulp_labels']
99
95
  end
@@ -106,6 +102,10 @@ module PulpContainerClient
106
102
  self.name = attributes[:'name']
107
103
  end
108
104
 
105
+ if attributes.key?(:'content_guard')
106
+ self.content_guard = attributes[:'content_guard']
107
+ end
108
+
109
109
  if attributes.key?(:'base_path')
110
110
  self.base_path = attributes[:'base_path']
111
111
  end
@@ -131,10 +131,22 @@ module PulpContainerClient
131
131
  invalid_properties.push('invalid value for "name", name cannot be nil.')
132
132
  end
133
133
 
134
+ if @name.to_s.length < 1
135
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
136
+ end
137
+
134
138
  if @base_path.nil?
135
139
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
136
140
  end
137
141
 
142
+ if @base_path.to_s.length < 1
143
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
144
+ end
145
+
146
+ if !@description.nil? && @description.to_s.length < 1
147
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
148
+ end
149
+
138
150
  invalid_properties
139
151
  end
140
152
 
@@ -142,19 +154,60 @@ module PulpContainerClient
142
154
  # @return true if the model is valid
143
155
  def valid?
144
156
  return false if @name.nil?
157
+ return false if @name.to_s.length < 1
145
158
  return false if @base_path.nil?
159
+ return false if @base_path.to_s.length < 1
160
+ return false if !@description.nil? && @description.to_s.length < 1
146
161
  true
147
162
  end
148
163
 
164
+ # Custom attribute writer method with validation
165
+ # @param [Object] name Value to be assigned
166
+ def name=(name)
167
+ if name.nil?
168
+ fail ArgumentError, 'name cannot be nil'
169
+ end
170
+
171
+ if name.to_s.length < 1
172
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
173
+ end
174
+
175
+ @name = name
176
+ end
177
+
178
+ # Custom attribute writer method with validation
179
+ # @param [Object] base_path Value to be assigned
180
+ def base_path=(base_path)
181
+ if base_path.nil?
182
+ fail ArgumentError, 'base_path cannot be nil'
183
+ end
184
+
185
+ if base_path.to_s.length < 1
186
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
187
+ end
188
+
189
+ @base_path = base_path
190
+ end
191
+
192
+ # Custom attribute writer method with validation
193
+ # @param [Object] description Value to be assigned
194
+ def description=(description)
195
+ if !description.nil? && description.to_s.length < 1
196
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
197
+ end
198
+
199
+ @description = description
200
+ end
201
+
149
202
  # Checks equality by comparing each attribute.
150
203
  # @param [Object] Object to be compared
151
204
  def ==(o)
152
205
  return true if self.equal?(o)
153
206
  self.class == o.class &&
154
- content_guard == o.content_guard &&
155
207
  pulp_labels == o.pulp_labels &&
156
208
  repository == o.repository &&
157
209
  name == o.name &&
210
+ content_guard == o.content_guard &&
158
211
  base_path == o.base_path &&
159
212
  repository_version == o.repository_version &&
160
213
  private == o.private &&
@@ -170,7 +223,7 @@ module PulpContainerClient
170
223
  # Calculates hash code according to all attributes.
171
224
  # @return [Integer] Hash code
172
225
  def hash
173
- [content_guard, pulp_labels, repository, name, base_path, repository_version, private, description].hash
226
+ [pulp_labels, repository, name, content_guard, base_path, repository_version, private, description].hash
174
227
  end
175
228
 
176
229
  # Builds the object from hash
@@ -15,25 +15,25 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
- # An optional content-guard. If none is specified, a default one will be used.
19
- attr_accessor :content_guard
20
-
21
18
  attr_accessor :pulp_labels
22
19
 
23
20
  # The latest RepositoryVersion for this Repository will be served.
24
21
  attr_accessor :repository
25
22
 
26
- attr_accessor :pulp_href
23
+ # Timestamp of creation.
24
+ attr_accessor :pulp_created
27
25
 
28
26
  # A unique name. Ex, `rawhide` and `stable`.
29
27
  attr_accessor :name
30
28
 
29
+ # An optional content-guard. If none is specified, a default one will be used.
30
+ attr_accessor :content_guard
31
+
32
+ attr_accessor :pulp_href
33
+
31
34
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
32
35
  attr_accessor :base_path
33
36
 
34
- # Timestamp of creation.
35
- attr_accessor :pulp_created
36
-
37
37
  # RepositoryVersion to be served
38
38
  attr_accessor :repository_version
39
39
 
@@ -52,13 +52,13 @@ module PulpContainerClient
52
52
  # Attribute mapping from ruby-style variable name to JSON key.
53
53
  def self.attribute_map
54
54
  {
55
- :'content_guard' => :'content_guard',
56
55
  :'pulp_labels' => :'pulp_labels',
57
56
  :'repository' => :'repository',
58
- :'pulp_href' => :'pulp_href',
57
+ :'pulp_created' => :'pulp_created',
59
58
  :'name' => :'name',
59
+ :'content_guard' => :'content_guard',
60
+ :'pulp_href' => :'pulp_href',
60
61
  :'base_path' => :'base_path',
61
- :'pulp_created' => :'pulp_created',
62
62
  :'repository_version' => :'repository_version',
63
63
  :'registry_path' => :'registry_path',
64
64
  :'namespace' => :'namespace',
@@ -70,13 +70,13 @@ module PulpContainerClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'content_guard' => :'String',
74
73
  :'pulp_labels' => :'Object',
75
74
  :'repository' => :'String',
76
- :'pulp_href' => :'String',
75
+ :'pulp_created' => :'DateTime',
77
76
  :'name' => :'String',
77
+ :'content_guard' => :'String',
78
+ :'pulp_href' => :'String',
78
79
  :'base_path' => :'String',
79
- :'pulp_created' => :'DateTime',
80
80
  :'repository_version' => :'String',
81
81
  :'registry_path' => :'String',
82
82
  :'namespace' => :'String',
@@ -109,10 +109,6 @@ module PulpContainerClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
- if attributes.key?(:'content_guard')
113
- self.content_guard = attributes[:'content_guard']
114
- end
115
-
116
112
  if attributes.key?(:'pulp_labels')
117
113
  self.pulp_labels = attributes[:'pulp_labels']
118
114
  end
@@ -121,20 +117,24 @@ module PulpContainerClient
121
117
  self.repository = attributes[:'repository']
122
118
  end
123
119
 
124
- if attributes.key?(:'pulp_href')
125
- self.pulp_href = attributes[:'pulp_href']
120
+ if attributes.key?(:'pulp_created')
121
+ self.pulp_created = attributes[:'pulp_created']
126
122
  end
127
123
 
128
124
  if attributes.key?(:'name')
129
125
  self.name = attributes[:'name']
130
126
  end
131
127
 
132
- if attributes.key?(:'base_path')
133
- self.base_path = attributes[:'base_path']
128
+ if attributes.key?(:'content_guard')
129
+ self.content_guard = attributes[:'content_guard']
134
130
  end
135
131
 
136
- if attributes.key?(:'pulp_created')
137
- self.pulp_created = attributes[:'pulp_created']
132
+ if attributes.key?(:'pulp_href')
133
+ self.pulp_href = attributes[:'pulp_href']
134
+ end
135
+
136
+ if attributes.key?(:'base_path')
137
+ self.base_path = attributes[:'base_path']
138
138
  end
139
139
 
140
140
  if attributes.key?(:'repository_version')
@@ -186,13 +186,13 @@ module PulpContainerClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
- content_guard == o.content_guard &&
190
189
  pulp_labels == o.pulp_labels &&
191
190
  repository == o.repository &&
192
- pulp_href == o.pulp_href &&
191
+ pulp_created == o.pulp_created &&
193
192
  name == o.name &&
193
+ content_guard == o.content_guard &&
194
+ pulp_href == o.pulp_href &&
194
195
  base_path == o.base_path &&
195
- pulp_created == o.pulp_created &&
196
196
  repository_version == o.repository_version &&
197
197
  registry_path == o.registry_path &&
198
198
  namespace == o.namespace &&
@@ -209,7 +209,7 @@ module PulpContainerClient
209
209
  # Calculates hash code according to all attributes.
210
210
  # @return [Integer] Hash code
211
211
  def hash
212
- [content_guard, pulp_labels, repository, pulp_href, name, base_path, pulp_created, repository_version, registry_path, namespace, private, description].hash
212
+ [pulp_labels, repository, pulp_created, name, content_guard, pulp_href, base_path, repository_version, registry_path, namespace, private, description].hash
213
213
  end
214
214
 
215
215
  # Builds the object from hash
@@ -69,6 +69,10 @@ module PulpContainerClient
69
69
  invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
70
70
  end
71
71
 
72
+ if @name.to_s.length < 1
73
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
74
+ end
75
+
72
76
  invalid_properties
73
77
  end
74
78
 
@@ -77,6 +81,7 @@ module PulpContainerClient
77
81
  def valid?
78
82
  return false if @name.nil?
79
83
  return false if @name.to_s.length > 255
84
+ return false if @name.to_s.length < 1
80
85
  true
81
86
  end
82
87
 
@@ -91,6 +96,10 @@ module PulpContainerClient
91
96
  fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 255.'
92
97
  end
93
98
 
99
+ if name.to_s.length < 1
100
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
101
+ end
102
+
94
103
  @name = name
95
104
  end
96
105