pulp_container_client 2.27.0 → 2.27.1

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 (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +12 -12
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
  7. data/docs/ContainerContainerPullThroughRemote.md +6 -6
  8. data/docs/ContainerContainerPullThroughRemoteResponse.md +8 -8
  9. data/docs/ContainerContainerPushRepository.md +6 -6
  10. data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
  11. data/docs/ContainerContainerRemote.md +6 -6
  12. data/docs/ContainerContainerRemoteResponse.md +8 -8
  13. data/docs/DistributionsContainerApi.md +2 -2
  14. data/docs/DistributionsPullThroughApi.md +2 -2
  15. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  16. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  17. data/docs/PatchedcontainerContainerPullThroughRemote.md +6 -6
  18. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  19. data/docs/PatchedcontainerContainerRemote.md +6 -6
  20. data/lib/pulp_container_client/models/container_container_distribution.rb +51 -51
  21. data/lib/pulp_container_client/models/container_container_distribution_response.rb +58 -58
  22. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +51 -51
  23. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +58 -58
  24. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +32 -32
  25. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +44 -44
  26. data/lib/pulp_container_client/models/container_container_push_repository.rb +44 -44
  27. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +67 -67
  28. data/lib/pulp_container_client/models/container_container_remote.rb +33 -33
  29. data/lib/pulp_container_client/models/container_container_remote_response.rb +45 -45
  30. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +46 -46
  31. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +46 -46
  32. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +32 -32
  33. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
  34. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +33 -33
  35. data/lib/pulp_container_client/version.rb +1 -1
  36. data/spec/models/container_container_distribution_response_spec.rb +9 -9
  37. data/spec/models/container_container_distribution_spec.rb +5 -5
  38. data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
  39. data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
  40. data/spec/models/container_container_pull_through_remote_response_spec.rb +10 -10
  41. data/spec/models/container_container_pull_through_remote_spec.rb +17 -17
  42. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  43. data/spec/models/container_container_push_repository_spec.rb +4 -4
  44. data/spec/models/container_container_remote_response_spec.rb +10 -10
  45. data/spec/models/container_container_remote_spec.rb +17 -17
  46. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  47. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  48. data/spec/models/patchedcontainer_container_pull_through_remote_spec.rb +17 -17
  49. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  50. data/spec/models/patchedcontainer_container_remote_spec.rb +17 -17
  51. metadata +2 -2
@@ -6,6 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | A unique name for this remote. | [optional] |
8
8
  | **url** | **String** | The URL of an external content source. | [optional] |
9
+ | **pulp_labels** | **Hash<String, String>** | | [optional] |
10
+ | **policy** | [**Policy7e0Enum**](Policy7e0Enum.md) | | [optional] |
9
11
  | **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
10
12
  | **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional] |
11
13
  | **client_key** | **String** | A PEM encoded private key used for authentication. | [optional] |
@@ -15,15 +17,13 @@
15
17
  | **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
16
18
  | **username** | **String** | The username to be used for authentication when syncing. | [optional] |
17
19
  | **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
18
- | **pulp_labels** | **Hash<String, String>** | | [optional] |
19
- | **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
20
20
  | **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] |
21
- | **policy** | [**Policy7e0Enum**](Policy7e0Enum.md) | | [optional] |
22
21
  | **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
23
22
  | **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
24
23
  | **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
24
  | **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
25
  | **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional] |
26
+ | **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
27
27
  | **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional] |
28
28
  | **includes** | **Array<String>** | A list of remotes to include during pull-through caching. Wildcards *, ? are recognized. 'includes' is evaluated before 'excludes'. | [optional] |
29
29
  | **excludes** | **Array<String>** | A list of remotes to exclude during pull-through caching. Wildcards *, ? are recognized. 'excludes' is evaluated after 'includes'. | [optional] |
@@ -36,6 +36,8 @@ require 'pulp_container_client'
36
36
  instance = PulpContainerClient::PatchedcontainerContainerPullThroughRemote.new(
37
37
  name: null,
38
38
  url: null,
39
+ pulp_labels: null,
40
+ policy: null,
39
41
  ca_cert: null,
40
42
  client_cert: null,
41
43
  client_key: null,
@@ -45,15 +47,13 @@ instance = PulpContainerClient::PatchedcontainerContainerPullThroughRemote.new(
45
47
  proxy_password: null,
46
48
  username: null,
47
49
  password: null,
48
- pulp_labels: null,
49
- download_concurrency: null,
50
50
  max_retries: null,
51
- policy: null,
52
51
  total_timeout: null,
53
52
  connect_timeout: null,
54
53
  sock_connect_timeout: null,
55
54
  sock_read_timeout: null,
56
55
  headers: null,
56
+ download_concurrency: null,
57
57
  rate_limit: null,
58
58
  includes: null,
59
59
  excludes: null
@@ -4,11 +4,11 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional] |
7
+ | **name** | **String** | A unique name for this repository. | [optional] |
8
8
  | **pulp_labels** | **Hash<String, String>** | | [optional] |
9
- | **description** | **String** | An optional description. | [optional] |
10
9
  | **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
11
- | **name** | **String** | A unique name for this repository. | [optional] |
10
+ | **description** | **String** | An optional description. | [optional] |
11
+ | **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional] |
12
12
 
13
13
  ## Example
14
14
 
@@ -16,11 +16,11 @@
16
16
  require 'pulp_container_client'
17
17
 
18
18
  instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(
19
- manifest_signing_service: null,
19
+ name: null,
20
20
  pulp_labels: null,
21
- description: null,
22
21
  retain_repo_versions: null,
23
- name: null
22
+ description: null,
23
+ manifest_signing_service: null
24
24
  )
25
25
  ```
26
26
 
@@ -6,6 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | A unique name for this remote. | [optional] |
8
8
  | **url** | **String** | The URL of an external content source. | [optional] |
9
+ | **pulp_labels** | **Hash<String, String>** | | [optional] |
10
+ | **policy** | [**Policy692Enum**](Policy692Enum.md) | immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again. | [optional] |
9
11
  | **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
10
12
  | **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional] |
11
13
  | **client_key** | **String** | A PEM encoded private key used for authentication. | [optional] |
@@ -15,15 +17,13 @@
15
17
  | **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
16
18
  | **username** | **String** | The username to be used for authentication when syncing. | [optional] |
17
19
  | **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
18
- | **pulp_labels** | **Hash<String, String>** | | [optional] |
19
- | **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
20
20
  | **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] |
21
- | **policy** | [**Policy692Enum**](Policy692Enum.md) | immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again. | [optional] |
22
21
  | **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
23
22
  | **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
24
23
  | **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
24
  | **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
25
  | **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional] |
26
+ | **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
27
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] |
@@ -38,6 +38,8 @@ require 'pulp_container_client'
38
38
  instance = PulpContainerClient::PatchedcontainerContainerRemote.new(
39
39
  name: null,
40
40
  url: null,
41
+ pulp_labels: null,
42
+ policy: null,
41
43
  ca_cert: null,
42
44
  client_cert: null,
43
45
  client_key: null,
@@ -47,15 +49,13 @@ instance = PulpContainerClient::PatchedcontainerContainerRemote.new(
47
49
  proxy_password: null,
48
50
  username: null,
49
51
  password: null,
50
- pulp_labels: null,
51
- download_concurrency: null,
52
52
  max_retries: null,
53
- policy: null,
54
53
  total_timeout: null,
55
54
  connect_timeout: null,
56
55
  sock_connect_timeout: null,
57
56
  sock_read_timeout: null,
58
57
  headers: null,
58
+ download_concurrency: null,
59
59
  rate_limit: null,
60
60
  upstream_name: null,
61
61
  include_tags: null,
@@ -16,11 +16,8 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for ContainerDistribution.
18
18
  class ContainerContainerDistribution
19
- # The latest RepositoryVersion for this Repository will be served.
20
- attr_accessor :repository
21
-
22
- # Whether this distribution should be shown in the content app.
23
- attr_accessor :hidden
19
+ # A unique name. Ex, `rawhide` and `stable`.
20
+ attr_accessor :name
24
21
 
25
22
  # An optional content-guard. If none is specified, a default one will be used.
26
23
  attr_accessor :content_guard
@@ -28,10 +25,13 @@ module PulpContainerClient
28
25
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
29
26
  attr_accessor :base_path
30
27
 
28
+ # The latest RepositoryVersion for this Repository will be served.
29
+ attr_accessor :repository
30
+
31
31
  attr_accessor :pulp_labels
32
32
 
33
- # A unique name. Ex, `rawhide` and `stable`.
34
- attr_accessor :name
33
+ # Whether this distribution should be shown in the content app.
34
+ attr_accessor :hidden
35
35
 
36
36
  # RepositoryVersion to be served
37
37
  attr_accessor :repository_version
@@ -45,12 +45,12 @@ module PulpContainerClient
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
- :'repository' => :'repository',
49
- :'hidden' => :'hidden',
48
+ :'name' => :'name',
50
49
  :'content_guard' => :'content_guard',
51
50
  :'base_path' => :'base_path',
51
+ :'repository' => :'repository',
52
52
  :'pulp_labels' => :'pulp_labels',
53
- :'name' => :'name',
53
+ :'hidden' => :'hidden',
54
54
  :'repository_version' => :'repository_version',
55
55
  :'private' => :'private',
56
56
  :'description' => :'description'
@@ -65,12 +65,12 @@ module PulpContainerClient
65
65
  # Attribute type mapping.
66
66
  def self.openapi_types
67
67
  {
68
- :'repository' => :'String',
69
- :'hidden' => :'Boolean',
68
+ :'name' => :'String',
70
69
  :'content_guard' => :'String',
71
70
  :'base_path' => :'String',
71
+ :'repository' => :'String',
72
72
  :'pulp_labels' => :'Hash<String, String>',
73
- :'name' => :'String',
73
+ :'hidden' => :'Boolean',
74
74
  :'repository_version' => :'String',
75
75
  :'private' => :'Boolean',
76
76
  :'description' => :'String'
@@ -101,14 +101,10 @@ module PulpContainerClient
101
101
  h[k.to_sym] = v
102
102
  }
103
103
 
104
- if attributes.key?(:'repository')
105
- self.repository = attributes[:'repository']
106
- end
107
-
108
- if attributes.key?(:'hidden')
109
- self.hidden = attributes[:'hidden']
104
+ if attributes.key?(:'name')
105
+ self.name = attributes[:'name']
110
106
  else
111
- self.hidden = false
107
+ self.name = nil
112
108
  end
113
109
 
114
110
  if attributes.key?(:'content_guard')
@@ -121,16 +117,20 @@ module PulpContainerClient
121
117
  self.base_path = nil
122
118
  end
123
119
 
120
+ if attributes.key?(:'repository')
121
+ self.repository = attributes[:'repository']
122
+ end
123
+
124
124
  if attributes.key?(:'pulp_labels')
125
125
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
126
126
  self.pulp_labels = value
127
127
  end
128
128
  end
129
129
 
130
- if attributes.key?(:'name')
131
- self.name = attributes[:'name']
130
+ if attributes.key?(:'hidden')
131
+ self.hidden = attributes[:'hidden']
132
132
  else
133
- self.name = nil
133
+ self.hidden = false
134
134
  end
135
135
 
136
136
  if attributes.key?(:'repository_version')
@@ -151,14 +151,6 @@ module PulpContainerClient
151
151
  def list_invalid_properties
152
152
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
153
153
  invalid_properties = Array.new
154
- if @base_path.nil?
155
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
156
- end
157
-
158
- if @base_path.to_s.length < 1
159
- invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
160
- end
161
-
162
154
  if @name.nil?
163
155
  invalid_properties.push('invalid value for "name", name cannot be nil.')
164
156
  end
@@ -167,6 +159,14 @@ module PulpContainerClient
167
159
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
168
160
  end
169
161
 
162
+ if @base_path.nil?
163
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
164
+ end
165
+
166
+ if @base_path.to_s.length < 1
167
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
168
+ end
169
+
170
170
  if !@description.nil? && @description.to_s.length < 1
171
171
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
172
172
  end
@@ -178,28 +178,14 @@ module PulpContainerClient
178
178
  # @return true if the model is valid
179
179
  def valid?
180
180
  warn '[DEPRECATED] the `valid?` method is obsolete'
181
- return false if @base_path.nil?
182
- return false if @base_path.to_s.length < 1
183
181
  return false if @name.nil?
184
182
  return false if @name.to_s.length < 1
183
+ return false if @base_path.nil?
184
+ return false if @base_path.to_s.length < 1
185
185
  return false if !@description.nil? && @description.to_s.length < 1
186
186
  true
187
187
  end
188
188
 
189
- # Custom attribute writer method with validation
190
- # @param [Object] base_path Value to be assigned
191
- def base_path=(base_path)
192
- if base_path.nil?
193
- fail ArgumentError, 'base_path cannot be nil'
194
- end
195
-
196
- if base_path.to_s.length < 1
197
- fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
198
- end
199
-
200
- @base_path = base_path
201
- end
202
-
203
189
  # Custom attribute writer method with validation
204
190
  # @param [Object] name Value to be assigned
205
191
  def name=(name)
@@ -214,6 +200,20 @@ module PulpContainerClient
214
200
  @name = name
215
201
  end
216
202
 
203
+ # Custom attribute writer method with validation
204
+ # @param [Object] base_path Value to be assigned
205
+ def base_path=(base_path)
206
+ if base_path.nil?
207
+ fail ArgumentError, 'base_path cannot be nil'
208
+ end
209
+
210
+ if base_path.to_s.length < 1
211
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
212
+ end
213
+
214
+ @base_path = base_path
215
+ end
216
+
217
217
  # Custom attribute writer method with validation
218
218
  # @param [Object] description Value to be assigned
219
219
  def description=(description)
@@ -229,12 +229,12 @@ module PulpContainerClient
229
229
  def ==(o)
230
230
  return true if self.equal?(o)
231
231
  self.class == o.class &&
232
- repository == o.repository &&
233
- hidden == o.hidden &&
232
+ name == o.name &&
234
233
  content_guard == o.content_guard &&
235
234
  base_path == o.base_path &&
235
+ repository == o.repository &&
236
236
  pulp_labels == o.pulp_labels &&
237
- name == o.name &&
237
+ hidden == o.hidden &&
238
238
  repository_version == o.repository_version &&
239
239
  private == o.private &&
240
240
  description == o.description
@@ -249,7 +249,7 @@ module PulpContainerClient
249
249
  # Calculates hash code according to all attributes.
250
250
  # @return [Integer] Hash code
251
251
  def hash
252
- [repository, hidden, content_guard, base_path, pulp_labels, name, repository_version, private, description].hash
252
+ [name, content_guard, base_path, repository, pulp_labels, hidden, repository_version, private, description].hash
253
253
  end
254
254
 
255
255
  # Builds the object from hash
@@ -16,34 +16,34 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for ContainerDistribution.
18
18
  class ContainerContainerDistributionResponse
19
- # The latest RepositoryVersion for this Repository will be served.
20
- attr_accessor :repository
21
-
22
- # Whether this distribution should be shown in the content app.
23
- attr_accessor :hidden
24
-
25
- # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
26
- attr_accessor :pulp_last_updated
19
+ # A unique name. Ex, `rawhide` and `stable`.
20
+ attr_accessor :name
27
21
 
28
22
  # An optional content-guard. If none is specified, a default one will be used.
29
23
  attr_accessor :content_guard
30
24
 
25
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
26
+ attr_accessor :no_content_change_since
27
+
28
+ # The Pulp Resource Name (PRN).
29
+ attr_accessor :prn
30
+
31
31
  # 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
32
  attr_accessor :base_path
33
33
 
34
+ # The latest RepositoryVersion for this Repository will be served.
35
+ attr_accessor :repository
36
+
34
37
  attr_accessor :pulp_labels
35
38
 
36
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
37
- attr_accessor :no_content_change_since
39
+ # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
40
+ attr_accessor :pulp_last_updated
38
41
 
39
42
  # Timestamp of creation.
40
43
  attr_accessor :pulp_created
41
44
 
42
- # A unique name. Ex, `rawhide` and `stable`.
43
- attr_accessor :name
44
-
45
- # The Pulp Resource Name (PRN).
46
- attr_accessor :prn
45
+ # Whether this distribution should be shown in the content app.
46
+ attr_accessor :hidden
47
47
 
48
48
  attr_accessor :pulp_href
49
49
 
@@ -68,16 +68,16 @@ module PulpContainerClient
68
68
  # Attribute mapping from ruby-style variable name to JSON key.
69
69
  def self.attribute_map
70
70
  {
71
- :'repository' => :'repository',
72
- :'hidden' => :'hidden',
73
- :'pulp_last_updated' => :'pulp_last_updated',
71
+ :'name' => :'name',
74
72
  :'content_guard' => :'content_guard',
73
+ :'no_content_change_since' => :'no_content_change_since',
74
+ :'prn' => :'prn',
75
75
  :'base_path' => :'base_path',
76
+ :'repository' => :'repository',
76
77
  :'pulp_labels' => :'pulp_labels',
77
- :'no_content_change_since' => :'no_content_change_since',
78
+ :'pulp_last_updated' => :'pulp_last_updated',
78
79
  :'pulp_created' => :'pulp_created',
79
- :'name' => :'name',
80
- :'prn' => :'prn',
80
+ :'hidden' => :'hidden',
81
81
  :'pulp_href' => :'pulp_href',
82
82
  :'repository_version' => :'repository_version',
83
83
  :'registry_path' => :'registry_path',
@@ -96,16 +96,16 @@ module PulpContainerClient
96
96
  # Attribute type mapping.
97
97
  def self.openapi_types
98
98
  {
99
- :'repository' => :'String',
100
- :'hidden' => :'Boolean',
101
- :'pulp_last_updated' => :'Time',
99
+ :'name' => :'String',
102
100
  :'content_guard' => :'String',
101
+ :'no_content_change_since' => :'String',
102
+ :'prn' => :'String',
103
103
  :'base_path' => :'String',
104
+ :'repository' => :'String',
104
105
  :'pulp_labels' => :'Hash<String, String>',
105
- :'no_content_change_since' => :'String',
106
+ :'pulp_last_updated' => :'Time',
106
107
  :'pulp_created' => :'Time',
107
- :'name' => :'String',
108
- :'prn' => :'String',
108
+ :'hidden' => :'Boolean',
109
109
  :'pulp_href' => :'String',
110
110
  :'repository_version' => :'String',
111
111
  :'registry_path' => :'String',
@@ -140,22 +140,22 @@ module PulpContainerClient
140
140
  h[k.to_sym] = v
141
141
  }
142
142
 
143
- if attributes.key?(:'repository')
144
- self.repository = attributes[:'repository']
143
+ if attributes.key?(:'name')
144
+ self.name = attributes[:'name']
145
+ else
146
+ self.name = nil
145
147
  end
146
148
 
147
- if attributes.key?(:'hidden')
148
- self.hidden = attributes[:'hidden']
149
- else
150
- self.hidden = false
149
+ if attributes.key?(:'content_guard')
150
+ self.content_guard = attributes[:'content_guard']
151
151
  end
152
152
 
153
- if attributes.key?(:'pulp_last_updated')
154
- self.pulp_last_updated = attributes[:'pulp_last_updated']
153
+ if attributes.key?(:'no_content_change_since')
154
+ self.no_content_change_since = attributes[:'no_content_change_since']
155
155
  end
156
156
 
157
- if attributes.key?(:'content_guard')
158
- self.content_guard = attributes[:'content_guard']
157
+ if attributes.key?(:'prn')
158
+ self.prn = attributes[:'prn']
159
159
  end
160
160
 
161
161
  if attributes.key?(:'base_path')
@@ -164,28 +164,28 @@ module PulpContainerClient
164
164
  self.base_path = nil
165
165
  end
166
166
 
167
+ if attributes.key?(:'repository')
168
+ self.repository = attributes[:'repository']
169
+ end
170
+
167
171
  if attributes.key?(:'pulp_labels')
168
172
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
169
173
  self.pulp_labels = value
170
174
  end
171
175
  end
172
176
 
173
- if attributes.key?(:'no_content_change_since')
174
- self.no_content_change_since = attributes[:'no_content_change_since']
177
+ if attributes.key?(:'pulp_last_updated')
178
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
175
179
  end
176
180
 
177
181
  if attributes.key?(:'pulp_created')
178
182
  self.pulp_created = attributes[:'pulp_created']
179
183
  end
180
184
 
181
- if attributes.key?(:'name')
182
- self.name = attributes[:'name']
185
+ if attributes.key?(:'hidden')
186
+ self.hidden = attributes[:'hidden']
183
187
  else
184
- self.name = nil
185
- end
186
-
187
- if attributes.key?(:'prn')
188
- self.prn = attributes[:'prn']
188
+ self.hidden = false
189
189
  end
190
190
 
191
191
  if attributes.key?(:'pulp_href')
@@ -222,14 +222,14 @@ module PulpContainerClient
222
222
  def list_invalid_properties
223
223
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
224
224
  invalid_properties = Array.new
225
- if @base_path.nil?
226
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
227
- end
228
-
229
225
  if @name.nil?
230
226
  invalid_properties.push('invalid value for "name", name cannot be nil.')
231
227
  end
232
228
 
229
+ if @base_path.nil?
230
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
231
+ end
232
+
233
233
  invalid_properties
234
234
  end
235
235
 
@@ -237,8 +237,8 @@ module PulpContainerClient
237
237
  # @return true if the model is valid
238
238
  def valid?
239
239
  warn '[DEPRECATED] the `valid?` method is obsolete'
240
- return false if @base_path.nil?
241
240
  return false if @name.nil?
241
+ return false if @base_path.nil?
242
242
  true
243
243
  end
244
244
 
@@ -247,16 +247,16 @@ module PulpContainerClient
247
247
  def ==(o)
248
248
  return true if self.equal?(o)
249
249
  self.class == o.class &&
250
- repository == o.repository &&
251
- hidden == o.hidden &&
252
- pulp_last_updated == o.pulp_last_updated &&
250
+ name == o.name &&
253
251
  content_guard == o.content_guard &&
252
+ no_content_change_since == o.no_content_change_since &&
253
+ prn == o.prn &&
254
254
  base_path == o.base_path &&
255
+ repository == o.repository &&
255
256
  pulp_labels == o.pulp_labels &&
256
- no_content_change_since == o.no_content_change_since &&
257
+ pulp_last_updated == o.pulp_last_updated &&
257
258
  pulp_created == o.pulp_created &&
258
- name == o.name &&
259
- prn == o.prn &&
259
+ hidden == o.hidden &&
260
260
  pulp_href == o.pulp_href &&
261
261
  repository_version == o.repository_version &&
262
262
  registry_path == o.registry_path &&
@@ -275,7 +275,7 @@ module PulpContainerClient
275
275
  # Calculates hash code according to all attributes.
276
276
  # @return [Integer] Hash code
277
277
  def hash
278
- [repository, hidden, pulp_last_updated, content_guard, base_path, pulp_labels, no_content_change_since, pulp_created, name, prn, pulp_href, repository_version, registry_path, remote, namespace, private, description].hash
278
+ [name, content_guard, no_content_change_since, prn, base_path, repository, pulp_labels, pulp_last_updated, pulp_created, hidden, pulp_href, repository_version, registry_path, remote, namespace, private, description].hash
279
279
  end
280
280
 
281
281
  # Builds the object from hash