pulp_container_client 2.9.3 → 2.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +5 -5
  4. data/docs/ContainerContainerDistributionResponse.md +9 -9
  5. data/docs/ContainerContainerPushRepository.md +4 -4
  6. data/docs/ContainerContainerPushRepositoryResponse.md +9 -9
  7. data/docs/ContainerContainerRemote.md +1 -1
  8. data/docs/ContainerContainerRemoteResponse.md +1 -1
  9. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  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 +73 -20
  14. data/lib/pulp_container_client/models/container_container_distribution_response.rb +31 -31
  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 +48 -14
  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 +65 -20
  24. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +44 -14
  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/spec/models/container_container_distribution_response_spec.rb +5 -5
  33. data/spec/models/container_container_distribution_spec.rb +5 -5
  34. data/spec/models/container_container_push_repository_response_spec.rb +7 -7
  35. data/spec/models/container_container_push_repository_spec.rb +4 -4
  36. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  37. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  38. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb9ce8089820aea7ee7ec67d58033119efd02760247219488773e7a23ab41d13
4
- data.tar.gz: a85285ea0955d848e59673414cf0eb4758fd09dab06c53c798f62ba3f1f0d205
3
+ metadata.gz: 7bb64058920155b92e47accb8d28140bb37e01be99c318922836676047648347
4
+ data.tar.gz: 5146c4a9d38671f020e6828b7de287a1d48a7401ef0ea59273ae93acf03442be
5
5
  SHA512:
6
- metadata.gz: 74fb15536b4b44f90582815a8de657dec0ab41d5b05ccd4cd81b092d20b416c2f48c1120561d68c28768bb1c4c2433277883d11119577957f6814dbd727c0e67
7
- data.tar.gz: b5e4e8d140f022de7ea54443d7317058b1b6a95d281903bca16ce5f80531dafbc1bc2c04192d8d6cde7b5001c01d285d57785059b798cdc52d71fa70459f87d5
6
+ metadata.gz: ac127bce597b6b8e379d9c449579447b31a2701dd9c7394fdfe5b3719e00e47fc414d8e37e03ab44ef52765f4e2d8007d5f46a1fc27f9813683c35b7ac3b82fc
7
+ data.tar.gz: a7348e6e391b0581698acfdd5ec987dbf245eefe430cd7e9b36563dd747f37c21fcfb2b6495661c119679c9dfe6787ba2634f67c2359cb434a1e6a5911dfe4ab
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.3
10
+ - Package version: 2.10.2
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.3.gem
27
+ gem install ./pulp_container_client-2.10.2.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_container_client-2.9.3.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_container_client-2.10.2.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.3'
36
+ gem 'pulp_container_client', '~> 2.10.2'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -4,11 +4,11 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **pulp_labels** | [**Object**](.md) | | [optional]
8
+ **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
7
9
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
8
10
  **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\") |
9
- **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
10
11
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
11
- **pulp_labels** | [**Object**](.md) | | [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]
14
14
  **description** | **String** | An optional description. | [optional]
@@ -18,11 +18,11 @@ Name | Type | Description | Notes
18
18
  ```ruby
19
19
  require 'PulpContainerClient'
20
20
 
21
- instance = PulpContainerClient::ContainerContainerDistribution.new(name: null,
22
- base_path: null,
21
+ instance = PulpContainerClient::ContainerContainerDistribution.new(pulp_labels: null,
23
22
  content_guard: null,
23
+ name: null,
24
+ base_path: null,
24
25
  repository: null,
25
- pulp_labels: null,
26
26
  repository_version: null,
27
27
  private: null,
28
28
  description: null)
@@ -4,13 +4,13 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **pulp_labels** | [**Object**](.md) | | [optional]
8
+ **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
7
9
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
8
- **pulp_href** | **String** | | [optional] [readonly]
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
10
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
11
- **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
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** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
13
- **pulp_labels** | [**Object**](.md) | | [optional]
13
+ **pulp_href** | **String** | | [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(name: null,
26
- pulp_href: null,
27
- base_path: null,
28
- pulp_created: null,
25
+ instance = PulpContainerClient::ContainerContainerDistributionResponse.new(pulp_labels: null,
29
26
  content_guard: null,
27
+ name: null,
28
+ pulp_created: null,
29
+ base_path: null,
30
30
  repository: null,
31
- pulp_labels: null,
31
+ pulp_href: 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
+ **pulp_labels** | [**Object**](.md) | | [optional]
7
8
  **description** | **String** | An optional description. | [optional]
8
9
  **name** | **String** | A unique name for this repository. |
9
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]
10
- **pulp_labels** | [**Object**](.md) | | [optional]
11
11
 
12
12
  ## Code Sample
13
13
 
14
14
  ```ruby
15
15
  require 'PulpContainerClient'
16
16
 
17
- instance = PulpContainerClient::ContainerContainerPushRepository.new(description: null,
17
+ instance = PulpContainerClient::ContainerContainerPushRepository.new(pulp_labels: null,
18
+ description: null,
18
19
  name: null,
19
- retain_repo_versions: null,
20
- pulp_labels: 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
+ **pulp_labels** | [**Object**](.md) | | [optional]
8
+ **versions_href** | **String** | | [optional] [readonly]
7
9
  **description** | **String** | An optional description. | [optional]
8
10
  **name** | **String** | A unique name for this repository. |
9
- **pulp_href** | **String** | | [optional] [readonly]
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
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
12
- **versions_href** | **String** | | [optional] [readonly]
13
12
  **latest_version_href** | **String** | | [optional] [readonly]
14
- **pulp_labels** | [**Object**](.md) | | [optional]
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(description: null,
21
+ instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(pulp_labels: null,
22
+ versions_href: null,
23
+ description: null,
22
24
  name: null,
23
- pulp_href: null,
24
- retain_repo_versions: null,
25
25
  pulp_created: null,
26
- versions_href: null,
27
26
  latest_version_href: null,
28
- pulp_labels: 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,11 +4,11 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **pulp_labels** | [**Object**](.md) | | [optional]
8
+ **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
7
9
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
8
10
  **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]
9
- **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
10
11
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
11
- **pulp_labels** | [**Object**](.md) | | [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]
14
14
  **description** | **String** | An optional description. | [optional]
@@ -18,11 +18,11 @@ Name | Type | Description | Notes
18
18
  ```ruby
19
19
  require 'PulpContainerClient'
20
20
 
21
- instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(name: null,
22
- base_path: null,
21
+ instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(pulp_labels: null,
23
22
  content_guard: null,
23
+ name: null,
24
+ base_path: null,
24
25
  repository: null,
25
- pulp_labels: null,
26
26
  repository_version: null,
27
27
  private: null,
28
28
  description: null)
@@ -4,20 +4,20 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **pulp_labels** | [**Object**](.md) | | [optional]
7
8
  **description** | **String** | An optional description. | [optional]
8
9
  **name** | **String** | A unique name for this repository. | [optional]
9
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]
10
- **pulp_labels** | [**Object**](.md) | | [optional]
11
11
 
12
12
  ## Code Sample
13
13
 
14
14
  ```ruby
15
15
  require 'PulpContainerClient'
16
16
 
17
- instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(description: null,
17
+ instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(pulp_labels: null,
18
+ description: null,
18
19
  name: null,
19
- retain_repo_versions: null,
20
- pulp_labels: 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,20 +15,20 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
18
+ attr_accessor :pulp_labels
19
+
20
+ # An optional content-guard. If none is specified, a default one will be used.
21
+ attr_accessor :content_guard
22
+
18
23
  # A unique name. Ex, `rawhide` and `stable`.
19
24
  attr_accessor :name
20
25
 
21
26
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
22
27
  attr_accessor :base_path
23
28
 
24
- # An optional content-guard. If none is specified, a default one will be used.
25
- attr_accessor :content_guard
26
-
27
29
  # The latest RepositoryVersion for this Repository will be served.
28
30
  attr_accessor :repository
29
31
 
30
- attr_accessor :pulp_labels
31
-
32
32
  # RepositoryVersion to be served
33
33
  attr_accessor :repository_version
34
34
 
@@ -41,11 +41,11 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
+ :'pulp_labels' => :'pulp_labels',
45
+ :'content_guard' => :'content_guard',
44
46
  :'name' => :'name',
45
47
  :'base_path' => :'base_path',
46
- :'content_guard' => :'content_guard',
47
48
  :'repository' => :'repository',
48
- :'pulp_labels' => :'pulp_labels',
49
49
  :'repository_version' => :'repository_version',
50
50
  :'private' => :'private',
51
51
  :'description' => :'description'
@@ -55,11 +55,11 @@ module PulpContainerClient
55
55
  # Attribute type mapping.
56
56
  def self.openapi_types
57
57
  {
58
+ :'pulp_labels' => :'Object',
59
+ :'content_guard' => :'String',
58
60
  :'name' => :'String',
59
61
  :'base_path' => :'String',
60
- :'content_guard' => :'String',
61
62
  :'repository' => :'String',
62
- :'pulp_labels' => :'Object',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -90,6 +90,14 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
+ if attributes.key?(:'pulp_labels')
94
+ self.pulp_labels = attributes[:'pulp_labels']
95
+ end
96
+
97
+ if attributes.key?(:'content_guard')
98
+ self.content_guard = attributes[:'content_guard']
99
+ end
100
+
93
101
  if attributes.key?(:'name')
94
102
  self.name = attributes[:'name']
95
103
  end
@@ -98,18 +106,10 @@ module PulpContainerClient
98
106
  self.base_path = attributes[:'base_path']
99
107
  end
100
108
 
101
- if attributes.key?(:'content_guard')
102
- self.content_guard = attributes[:'content_guard']
103
- end
104
-
105
109
  if attributes.key?(:'repository')
106
110
  self.repository = attributes[:'repository']
107
111
  end
108
112
 
109
- if attributes.key?(:'pulp_labels')
110
- self.pulp_labels = attributes[:'pulp_labels']
111
- end
112
-
113
113
  if attributes.key?(:'repository_version')
114
114
  self.repository_version = attributes[:'repository_version']
115
115
  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,20 +154,61 @@ 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 &&
207
+ pulp_labels == o.pulp_labels &&
208
+ content_guard == o.content_guard &&
154
209
  name == o.name &&
155
210
  base_path == o.base_path &&
156
- content_guard == o.content_guard &&
157
211
  repository == o.repository &&
158
- pulp_labels == o.pulp_labels &&
159
212
  repository_version == o.repository_version &&
160
213
  private == o.private &&
161
214
  description == o.description
@@ -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
- [name, base_path, content_guard, repository, pulp_labels, repository_version, private, description].hash
226
+ [pulp_labels, content_guard, name, base_path, repository, repository_version, private, description].hash
174
227
  end
175
228
 
176
229
  # Builds the object from hash
@@ -15,24 +15,24 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
- # A unique name. Ex, `rawhide` and `stable`.
19
- attr_accessor :name
18
+ attr_accessor :pulp_labels
20
19
 
21
- attr_accessor :pulp_href
20
+ # An optional content-guard. If none is specified, a default one will be used.
21
+ attr_accessor :content_guard
22
22
 
23
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
24
- attr_accessor :base_path
23
+ # A unique name. Ex, `rawhide` and `stable`.
24
+ attr_accessor :name
25
25
 
26
26
  # Timestamp of creation.
27
27
  attr_accessor :pulp_created
28
28
 
29
- # An optional content-guard. If none is specified, a default one will be used.
30
- attr_accessor :content_guard
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
+ attr_accessor :base_path
31
31
 
32
32
  # The latest RepositoryVersion for this Repository will be served.
33
33
  attr_accessor :repository
34
34
 
35
- attr_accessor :pulp_labels
35
+ attr_accessor :pulp_href
36
36
 
37
37
  # RepositoryVersion to be served
38
38
  attr_accessor :repository_version
@@ -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
+ :'pulp_labels' => :'pulp_labels',
56
+ :'content_guard' => :'content_guard',
55
57
  :'name' => :'name',
56
- :'pulp_href' => :'pulp_href',
57
- :'base_path' => :'base_path',
58
58
  :'pulp_created' => :'pulp_created',
59
- :'content_guard' => :'content_guard',
59
+ :'base_path' => :'base_path',
60
60
  :'repository' => :'repository',
61
- :'pulp_labels' => :'pulp_labels',
61
+ :'pulp_href' => :'pulp_href',
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
+ :'pulp_labels' => :'Object',
74
+ :'content_guard' => :'String',
73
75
  :'name' => :'String',
74
- :'pulp_href' => :'String',
75
- :'base_path' => :'String',
76
76
  :'pulp_created' => :'DateTime',
77
- :'content_guard' => :'String',
77
+ :'base_path' => :'String',
78
78
  :'repository' => :'String',
79
- :'pulp_labels' => :'Object',
79
+ :'pulp_href' => :'String',
80
80
  :'repository_version' => :'String',
81
81
  :'registry_path' => :'String',
82
82
  :'namespace' => :'String',
@@ -109,32 +109,32 @@ module PulpContainerClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
- if attributes.key?(:'name')
113
- self.name = attributes[:'name']
112
+ if attributes.key?(:'pulp_labels')
113
+ self.pulp_labels = attributes[:'pulp_labels']
114
114
  end
115
115
 
116
- if attributes.key?(:'pulp_href')
117
- self.pulp_href = attributes[:'pulp_href']
116
+ if attributes.key?(:'content_guard')
117
+ self.content_guard = attributes[:'content_guard']
118
118
  end
119
119
 
120
- if attributes.key?(:'base_path')
121
- self.base_path = attributes[:'base_path']
120
+ if attributes.key?(:'name')
121
+ self.name = attributes[:'name']
122
122
  end
123
123
 
124
124
  if attributes.key?(:'pulp_created')
125
125
  self.pulp_created = attributes[:'pulp_created']
126
126
  end
127
127
 
128
- if attributes.key?(:'content_guard')
129
- self.content_guard = attributes[:'content_guard']
128
+ if attributes.key?(:'base_path')
129
+ self.base_path = attributes[:'base_path']
130
130
  end
131
131
 
132
132
  if attributes.key?(:'repository')
133
133
  self.repository = attributes[:'repository']
134
134
  end
135
135
 
136
- if attributes.key?(:'pulp_labels')
137
- self.pulp_labels = attributes[:'pulp_labels']
136
+ if attributes.key?(:'pulp_href')
137
+ self.pulp_href = attributes[:'pulp_href']
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
+ pulp_labels == o.pulp_labels &&
190
+ content_guard == o.content_guard &&
189
191
  name == o.name &&
190
- pulp_href == o.pulp_href &&
191
- base_path == o.base_path &&
192
192
  pulp_created == o.pulp_created &&
193
- content_guard == o.content_guard &&
193
+ base_path == o.base_path &&
194
194
  repository == o.repository &&
195
- pulp_labels == o.pulp_labels &&
195
+ pulp_href == o.pulp_href &&
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
- [name, pulp_href, base_path, pulp_created, content_guard, repository, pulp_labels, repository_version, registry_path, namespace, private, description].hash
212
+ [pulp_labels, content_guard, name, pulp_created, base_path, repository, pulp_href, 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