pulp_container_client 2.19.2 → 2.19.4

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 (107) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -7
  3. data/docs/ContainerBlobResponse.md +2 -0
  4. data/docs/ContainerContainerDistribution.md +4 -4
  5. data/docs/ContainerContainerDistributionResponse.md +9 -7
  6. data/docs/ContainerContainerNamespaceResponse.md +2 -0
  7. data/docs/ContainerContainerPullThroughDistribution.md +4 -4
  8. data/docs/ContainerContainerPullThroughDistributionResponse.md +9 -7
  9. data/docs/ContainerContainerPullThroughRemoteResponse.md +2 -2
  10. data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +2 -2
  11. data/docs/ContainerContainerPushRepository.md +5 -5
  12. data/docs/ContainerContainerPushRepositoryResponse.md +12 -10
  13. data/docs/ContainerContainerRemoteResponse.md +2 -2
  14. data/docs/ContainerContainerRepositoryResponse.md +2 -0
  15. data/docs/ContainerManifestResponse.md +2 -0
  16. data/docs/ContainerManifestSignatureResponse.md +2 -0
  17. data/docs/ContainerTagResponse.md +2 -0
  18. data/docs/ContentBlobsApi.md +1 -1
  19. data/docs/ContentManifestsApi.md +1 -1
  20. data/docs/ContentSignaturesApi.md +1 -1
  21. data/docs/ContentTagsApi.md +1 -1
  22. data/docs/DistributionsContainerApi.md +1 -1
  23. data/docs/DistributionsPullThroughApi.md +1 -1
  24. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  25. data/docs/PaginatedcontainerBlobResponseList.md +2 -2
  26. data/docs/PaginatedcontainerContainerDistributionResponseList.md +2 -2
  27. data/docs/PaginatedcontainerContainerNamespaceResponseList.md +2 -2
  28. data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +2 -2
  29. data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +2 -2
  30. data/docs/PaginatedcontainerContainerPushRepositoryResponseList.md +2 -2
  31. data/docs/PaginatedcontainerContainerRemoteResponseList.md +2 -2
  32. data/docs/PaginatedcontainerContainerRepositoryResponseList.md +2 -2
  33. data/docs/PaginatedcontainerManifestResponseList.md +2 -2
  34. data/docs/PaginatedcontainerManifestSignatureResponseList.md +2 -2
  35. data/docs/PaginatedcontainerTagResponseList.md +2 -2
  36. data/docs/PatchedcontainerContainerDistribution.md +4 -4
  37. data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
  38. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  39. data/docs/PulpContainerNamespacesApi.md +1 -1
  40. data/docs/RemotesContainerApi.md +1 -1
  41. data/docs/RemotesPullThroughApi.md +1 -1
  42. data/docs/RepositoriesContainerApi.md +1 -1
  43. data/docs/RepositoriesContainerPushApi.md +1 -1
  44. data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
  45. data/docs/RepositoriesContainerVersionsApi.md +1 -1
  46. data/docs/RepositoryVersionResponse.md +2 -0
  47. data/docs/TokenApi.md +1 -1
  48. data/lib/pulp_container_client/configuration.rb +2 -2
  49. data/lib/pulp_container_client/models/container_blob_response.rb +11 -1
  50. data/lib/pulp_container_client/models/container_container_distribution.rb +18 -18
  51. data/lib/pulp_container_client/models/container_container_distribution_response.rb +37 -27
  52. data/lib/pulp_container_client/models/container_container_namespace_response.rb +11 -1
  53. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +18 -18
  54. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +37 -27
  55. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +11 -11
  56. data/lib/pulp_container_client/models/container_container_pull_through_remote_response_hidden_fields.rb +10 -0
  57. data/lib/pulp_container_client/models/container_container_push_repository.rb +38 -38
  58. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +48 -38
  59. data/lib/pulp_container_client/models/container_container_remote_response.rb +11 -11
  60. data/lib/pulp_container_client/models/container_container_repository_response.rb +11 -1
  61. data/lib/pulp_container_client/models/container_manifest_response.rb +11 -1
  62. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +11 -1
  63. data/lib/pulp_container_client/models/container_tag_response.rb +11 -1
  64. data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +10 -0
  65. data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +10 -0
  66. data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +10 -0
  67. data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +10 -0
  68. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +10 -0
  69. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +10 -0
  70. data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +10 -0
  71. data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +10 -0
  72. data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +10 -0
  73. data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +10 -0
  74. data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +10 -0
  75. data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +10 -0
  76. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +18 -18
  77. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +18 -18
  78. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +38 -38
  79. data/lib/pulp_container_client/models/repository_version_response.rb +11 -1
  80. data/lib/pulp_container_client/version.rb +1 -1
  81. data/lib/pulp_container_client.rb +0 -2
  82. data/spec/configuration_spec.rb +3 -3
  83. data/spec/models/container_blob_response_spec.rb +6 -0
  84. data/spec/models/container_container_distribution_response_spec.rb +12 -6
  85. data/spec/models/container_container_distribution_spec.rb +4 -4
  86. data/spec/models/container_container_namespace_response_spec.rb +6 -0
  87. data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -6
  88. data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
  89. data/spec/models/container_container_pull_through_remote_response_spec.rb +6 -6
  90. data/spec/models/container_container_push_repository_response_spec.rb +11 -5
  91. data/spec/models/container_container_push_repository_spec.rb +4 -4
  92. data/spec/models/container_container_remote_response_spec.rb +6 -6
  93. data/spec/models/container_container_repository_response_spec.rb +6 -0
  94. data/spec/models/container_manifest_response_spec.rb +6 -0
  95. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  96. data/spec/models/container_tag_response_spec.rb +6 -0
  97. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  98. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
  99. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  100. data/spec/models/repository_version_response_spec.rb +6 -0
  101. metadata +76 -84
  102. data/docs/IndexDynamicApi.md +0 -50
  103. data/docs/IndexStaticApi.md +0 -50
  104. data/lib/pulp_container_client/api/index_dynamic_api.rb +0 -74
  105. data/lib/pulp_container_client/api/index_static_api.rb +0 -74
  106. data/spec/api/index_dynamic_api_spec.rb +0 -45
  107. data/spec/api/index_static_api_spec.rb +0 -45
@@ -20,18 +20,18 @@ module PulpContainerClient
20
20
 
21
21
  attr_accessor :pulp_labels
22
22
 
23
- # The latest RepositoryVersion for this Repository will be served.
24
- attr_accessor :repository
25
-
26
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\")
27
24
  attr_accessor :base_path
28
25
 
29
- # A unique name. Ex, `rawhide` and `stable`.
30
- attr_accessor :name
26
+ # The latest RepositoryVersion for this Repository will be served.
27
+ attr_accessor :repository
31
28
 
32
29
  # An optional content-guard. If none is specified, a default one will be used.
33
30
  attr_accessor :content_guard
34
31
 
32
+ # A unique name. Ex, `rawhide` and `stable`.
33
+ attr_accessor :name
34
+
35
35
  # Remote that can be used to fetch content when using pull-through caching.
36
36
  attr_accessor :remote
37
37
 
@@ -49,10 +49,10 @@ module PulpContainerClient
49
49
  {
50
50
  :'hidden' => :'hidden',
51
51
  :'pulp_labels' => :'pulp_labels',
52
- :'repository' => :'repository',
53
52
  :'base_path' => :'base_path',
54
- :'name' => :'name',
53
+ :'repository' => :'repository',
55
54
  :'content_guard' => :'content_guard',
55
+ :'name' => :'name',
56
56
  :'remote' => :'remote',
57
57
  :'distributions' => :'distributions',
58
58
  :'private' => :'private',
@@ -65,10 +65,10 @@ module PulpContainerClient
65
65
  {
66
66
  :'hidden' => :'Boolean',
67
67
  :'pulp_labels' => :'Hash<String, String>',
68
- :'repository' => :'String',
69
68
  :'base_path' => :'String',
70
- :'name' => :'String',
69
+ :'repository' => :'String',
71
70
  :'content_guard' => :'String',
71
+ :'name' => :'String',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
74
74
  :'private' => :'Boolean',
@@ -111,22 +111,22 @@ module PulpContainerClient
111
111
  end
112
112
  end
113
113
 
114
- if attributes.key?(:'repository')
115
- self.repository = attributes[:'repository']
116
- end
117
-
118
114
  if attributes.key?(:'base_path')
119
115
  self.base_path = attributes[:'base_path']
120
116
  end
121
117
 
122
- if attributes.key?(:'name')
123
- self.name = attributes[:'name']
118
+ if attributes.key?(:'repository')
119
+ self.repository = attributes[:'repository']
124
120
  end
125
121
 
126
122
  if attributes.key?(:'content_guard')
127
123
  self.content_guard = attributes[:'content_guard']
128
124
  end
129
125
 
126
+ if attributes.key?(:'name')
127
+ self.name = attributes[:'name']
128
+ end
129
+
130
130
  if attributes.key?(:'remote')
131
131
  self.remote = attributes[:'remote']
132
132
  end
@@ -234,10 +234,10 @@ module PulpContainerClient
234
234
  self.class == o.class &&
235
235
  hidden == o.hidden &&
236
236
  pulp_labels == o.pulp_labels &&
237
- repository == o.repository &&
238
237
  base_path == o.base_path &&
239
- name == o.name &&
238
+ repository == o.repository &&
240
239
  content_guard == o.content_guard &&
240
+ name == o.name &&
241
241
  remote == o.remote &&
242
242
  distributions == o.distributions &&
243
243
  private == o.private &&
@@ -253,7 +253,7 @@ module PulpContainerClient
253
253
  # Calculates hash code according to all attributes.
254
254
  # @return [Integer] Hash code
255
255
  def hash
256
- [hidden, pulp_labels, repository, base_path, name, content_guard, remote, distributions, private, description].hash
256
+ [hidden, pulp_labels, base_path, repository, content_guard, name, remote, distributions, private, description].hash
257
257
  end
258
258
 
259
259
  # Builds the object from hash
@@ -15,28 +15,31 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class ContainerContainerPullThroughDistributionResponse
18
+ # 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.
19
+ attr_accessor :pulp_last_updated
20
+
21
+ attr_accessor :pulp_href
22
+
18
23
  # Whether this distribution should be shown in the content app.
19
24
  attr_accessor :hidden
20
25
 
21
26
  attr_accessor :pulp_labels
22
27
 
28
+ # 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
+ attr_accessor :base_path
30
+
23
31
  # The latest RepositoryVersion for this Repository will be served.
24
32
  attr_accessor :repository
25
33
 
26
34
  # Timestamp of creation.
27
35
  attr_accessor :pulp_created
28
36
 
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
-
32
- attr_accessor :pulp_href
37
+ # An optional content-guard. If none is specified, a default one will be used.
38
+ attr_accessor :content_guard
33
39
 
34
40
  # A unique name. Ex, `rawhide` and `stable`.
35
41
  attr_accessor :name
36
42
 
37
- # An optional content-guard. If none is specified, a default one will be used.
38
- attr_accessor :content_guard
39
-
40
43
  # Remote that can be used to fetch content when using pull-through caching.
41
44
  attr_accessor :remote
42
45
 
@@ -55,14 +58,15 @@ module PulpContainerClient
55
58
  # Attribute mapping from ruby-style variable name to JSON key.
56
59
  def self.attribute_map
57
60
  {
61
+ :'pulp_last_updated' => :'pulp_last_updated',
62
+ :'pulp_href' => :'pulp_href',
58
63
  :'hidden' => :'hidden',
59
64
  :'pulp_labels' => :'pulp_labels',
65
+ :'base_path' => :'base_path',
60
66
  :'repository' => :'repository',
61
67
  :'pulp_created' => :'pulp_created',
62
- :'base_path' => :'base_path',
63
- :'pulp_href' => :'pulp_href',
64
- :'name' => :'name',
65
68
  :'content_guard' => :'content_guard',
69
+ :'name' => :'name',
66
70
  :'remote' => :'remote',
67
71
  :'distributions' => :'distributions',
68
72
  :'namespace' => :'namespace',
@@ -74,14 +78,15 @@ module PulpContainerClient
74
78
  # Attribute type mapping.
75
79
  def self.openapi_types
76
80
  {
81
+ :'pulp_last_updated' => :'DateTime',
82
+ :'pulp_href' => :'String',
77
83
  :'hidden' => :'Boolean',
78
84
  :'pulp_labels' => :'Hash<String, String>',
85
+ :'base_path' => :'String',
79
86
  :'repository' => :'String',
80
87
  :'pulp_created' => :'DateTime',
81
- :'base_path' => :'String',
82
- :'pulp_href' => :'String',
83
- :'name' => :'String',
84
88
  :'content_guard' => :'String',
89
+ :'name' => :'String',
85
90
  :'remote' => :'String',
86
91
  :'distributions' => :'Array<String>',
87
92
  :'namespace' => :'String',
@@ -113,6 +118,14 @@ module PulpContainerClient
113
118
  h[k.to_sym] = v
114
119
  }
115
120
 
121
+ if attributes.key?(:'pulp_last_updated')
122
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
123
+ end
124
+
125
+ if attributes.key?(:'pulp_href')
126
+ self.pulp_href = attributes[:'pulp_href']
127
+ end
128
+
116
129
  if attributes.key?(:'hidden')
117
130
  self.hidden = attributes[:'hidden']
118
131
  else
@@ -125,6 +138,10 @@ module PulpContainerClient
125
138
  end
126
139
  end
127
140
 
141
+ if attributes.key?(:'base_path')
142
+ self.base_path = attributes[:'base_path']
143
+ end
144
+
128
145
  if attributes.key?(:'repository')
129
146
  self.repository = attributes[:'repository']
130
147
  end
@@ -133,22 +150,14 @@ module PulpContainerClient
133
150
  self.pulp_created = attributes[:'pulp_created']
134
151
  end
135
152
 
136
- if attributes.key?(:'base_path')
137
- self.base_path = attributes[:'base_path']
138
- end
139
-
140
- if attributes.key?(:'pulp_href')
141
- self.pulp_href = attributes[:'pulp_href']
153
+ if attributes.key?(:'content_guard')
154
+ self.content_guard = attributes[:'content_guard']
142
155
  end
143
156
 
144
157
  if attributes.key?(:'name')
145
158
  self.name = attributes[:'name']
146
159
  end
147
160
 
148
- if attributes.key?(:'content_guard')
149
- self.content_guard = attributes[:'content_guard']
150
- end
151
-
152
161
  if attributes.key?(:'remote')
153
162
  self.remote = attributes[:'remote']
154
163
  end
@@ -205,14 +214,15 @@ module PulpContainerClient
205
214
  def ==(o)
206
215
  return true if self.equal?(o)
207
216
  self.class == o.class &&
217
+ pulp_last_updated == o.pulp_last_updated &&
218
+ pulp_href == o.pulp_href &&
208
219
  hidden == o.hidden &&
209
220
  pulp_labels == o.pulp_labels &&
221
+ base_path == o.base_path &&
210
222
  repository == o.repository &&
211
223
  pulp_created == o.pulp_created &&
212
- base_path == o.base_path &&
213
- pulp_href == o.pulp_href &&
214
- name == o.name &&
215
224
  content_guard == o.content_guard &&
225
+ name == o.name &&
216
226
  remote == o.remote &&
217
227
  distributions == o.distributions &&
218
228
  namespace == o.namespace &&
@@ -229,7 +239,7 @@ module PulpContainerClient
229
239
  # Calculates hash code according to all attributes.
230
240
  # @return [Integer] Hash code
231
241
  def hash
232
- [hidden, pulp_labels, repository, pulp_created, base_path, pulp_href, name, content_guard, remote, distributions, namespace, private, description].hash
242
+ [pulp_last_updated, pulp_href, hidden, pulp_labels, base_path, repository, pulp_created, content_guard, name, remote, distributions, namespace, private, description].hash
233
243
  end
234
244
 
235
245
  # Builds the object from hash
@@ -20,6 +20,9 @@ module PulpContainerClient
20
20
  # Timestamp of creation.
21
21
  attr_accessor :pulp_created
22
22
 
23
+ # Timestamp of the most recent update of the remote.
24
+ attr_accessor :pulp_last_updated
25
+
23
26
  # A unique name for this remote.
24
27
  attr_accessor :name
25
28
 
@@ -40,9 +43,6 @@ module PulpContainerClient
40
43
 
41
44
  attr_accessor :pulp_labels
42
45
 
43
- # Timestamp of the most recent update of the remote.
44
- attr_accessor :pulp_last_updated
45
-
46
46
  # Total number of simultaneous connections. If not set then the default value will be used.
47
47
  attr_accessor :download_concurrency
48
48
 
@@ -77,6 +77,7 @@ module PulpContainerClient
77
77
  {
78
78
  :'pulp_href' => :'pulp_href',
79
79
  :'pulp_created' => :'pulp_created',
80
+ :'pulp_last_updated' => :'pulp_last_updated',
80
81
  :'name' => :'name',
81
82
  :'url' => :'url',
82
83
  :'ca_cert' => :'ca_cert',
@@ -84,7 +85,6 @@ module PulpContainerClient
84
85
  :'tls_validation' => :'tls_validation',
85
86
  :'proxy_url' => :'proxy_url',
86
87
  :'pulp_labels' => :'pulp_labels',
87
- :'pulp_last_updated' => :'pulp_last_updated',
88
88
  :'download_concurrency' => :'download_concurrency',
89
89
  :'max_retries' => :'max_retries',
90
90
  :'policy' => :'policy',
@@ -103,6 +103,7 @@ module PulpContainerClient
103
103
  {
104
104
  :'pulp_href' => :'String',
105
105
  :'pulp_created' => :'DateTime',
106
+ :'pulp_last_updated' => :'DateTime',
106
107
  :'name' => :'String',
107
108
  :'url' => :'String',
108
109
  :'ca_cert' => :'String',
@@ -110,7 +111,6 @@ module PulpContainerClient
110
111
  :'tls_validation' => :'Boolean',
111
112
  :'proxy_url' => :'String',
112
113
  :'pulp_labels' => :'Hash<String, String>',
113
- :'pulp_last_updated' => :'DateTime',
114
114
  :'download_concurrency' => :'Integer',
115
115
  :'max_retries' => :'Integer',
116
116
  :'policy' => :'Policy8e2Enum',
@@ -163,6 +163,10 @@ module PulpContainerClient
163
163
  self.pulp_created = attributes[:'pulp_created']
164
164
  end
165
165
 
166
+ if attributes.key?(:'pulp_last_updated')
167
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
168
+ end
169
+
166
170
  if attributes.key?(:'name')
167
171
  self.name = attributes[:'name']
168
172
  end
@@ -193,10 +197,6 @@ module PulpContainerClient
193
197
  end
194
198
  end
195
199
 
196
- if attributes.key?(:'pulp_last_updated')
197
- self.pulp_last_updated = attributes[:'pulp_last_updated']
198
- end
199
-
200
200
  if attributes.key?(:'download_concurrency')
201
201
  self.download_concurrency = attributes[:'download_concurrency']
202
202
  end
@@ -347,6 +347,7 @@ module PulpContainerClient
347
347
  self.class == o.class &&
348
348
  pulp_href == o.pulp_href &&
349
349
  pulp_created == o.pulp_created &&
350
+ pulp_last_updated == o.pulp_last_updated &&
350
351
  name == o.name &&
351
352
  url == o.url &&
352
353
  ca_cert == o.ca_cert &&
@@ -354,7 +355,6 @@ module PulpContainerClient
354
355
  tls_validation == o.tls_validation &&
355
356
  proxy_url == o.proxy_url &&
356
357
  pulp_labels == o.pulp_labels &&
357
- pulp_last_updated == o.pulp_last_updated &&
358
358
  download_concurrency == o.download_concurrency &&
359
359
  max_retries == o.max_retries &&
360
360
  policy == o.policy &&
@@ -376,7 +376,7 @@ module PulpContainerClient
376
376
  # Calculates hash code according to all attributes.
377
377
  # @return [Integer] Hash code
378
378
  def hash
379
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields].hash
379
+ [pulp_href, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields].hash
380
380
  end
381
381
 
382
382
  # Builds the object from hash
@@ -68,12 +68,22 @@ module PulpContainerClient
68
68
  # @return Array for valid properties with the reasons
69
69
  def list_invalid_properties
70
70
  invalid_properties = Array.new
71
+ if @name.nil?
72
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
73
+ end
74
+
75
+ if @is_set.nil?
76
+ invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
77
+ end
78
+
71
79
  invalid_properties
72
80
  end
73
81
 
74
82
  # Check to see if the all the properties in the model are valid
75
83
  # @return true if the model is valid
76
84
  def valid?
85
+ return false if @name.nil?
86
+ return false if @is_set.nil?
77
87
  true
78
88
  end
79
89
 
@@ -15,16 +15,16 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
- # A reference to an associated signing service.
19
- attr_accessor :manifest_signing_service
20
-
21
- attr_accessor :pulp_labels
18
+ # Retain X versions of the repository. Default is null which retains all versions.
19
+ attr_accessor :retain_repo_versions
22
20
 
23
21
  # An optional description.
24
22
  attr_accessor :description
25
23
 
26
- # Retain X versions of the repository. Default is null which retains all versions.
27
- attr_accessor :retain_repo_versions
24
+ # A reference to an associated signing service.
25
+ attr_accessor :manifest_signing_service
26
+
27
+ attr_accessor :pulp_labels
28
28
 
29
29
  # A unique name for this repository.
30
30
  attr_accessor :name
@@ -32,10 +32,10 @@ module PulpContainerClient
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
+ :'retain_repo_versions' => :'retain_repo_versions',
36
+ :'description' => :'description',
35
37
  :'manifest_signing_service' => :'manifest_signing_service',
36
38
  :'pulp_labels' => :'pulp_labels',
37
- :'description' => :'description',
38
- :'retain_repo_versions' => :'retain_repo_versions',
39
39
  :'name' => :'name'
40
40
  }
41
41
  end
@@ -43,10 +43,10 @@ module PulpContainerClient
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
+ :'retain_repo_versions' => :'Integer',
47
+ :'description' => :'String',
46
48
  :'manifest_signing_service' => :'String',
47
49
  :'pulp_labels' => :'Hash<String, String>',
48
- :'description' => :'String',
49
- :'retain_repo_versions' => :'Integer',
50
50
  :'name' => :'String'
51
51
  }
52
52
  end
@@ -54,9 +54,9 @@ module PulpContainerClient
54
54
  # List of attributes with nullable: true
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
- :'manifest_signing_service',
58
- :'description',
59
57
  :'retain_repo_versions',
58
+ :'description',
59
+ :'manifest_signing_service',
60
60
  ])
61
61
  end
62
62
 
@@ -75,6 +75,14 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
+ if attributes.key?(:'retain_repo_versions')
79
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
80
+ end
81
+
82
+ if attributes.key?(:'description')
83
+ self.description = attributes[:'description']
84
+ end
85
+
78
86
  if attributes.key?(:'manifest_signing_service')
79
87
  self.manifest_signing_service = attributes[:'manifest_signing_service']
80
88
  end
@@ -85,14 +93,6 @@ module PulpContainerClient
85
93
  end
86
94
  end
87
95
 
88
- if attributes.key?(:'description')
89
- self.description = attributes[:'description']
90
- end
91
-
92
- if attributes.key?(:'retain_repo_versions')
93
- self.retain_repo_versions = attributes[:'retain_repo_versions']
94
- end
95
-
96
96
  if attributes.key?(:'name')
97
97
  self.name = attributes[:'name']
98
98
  end
@@ -102,14 +102,14 @@ module PulpContainerClient
102
102
  # @return Array for valid properties with the reasons
103
103
  def list_invalid_properties
104
104
  invalid_properties = Array.new
105
- if !@description.nil? && @description.to_s.length < 1
106
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
107
- end
108
-
109
105
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
110
106
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
111
107
  end
112
108
 
109
+ if !@description.nil? && @description.to_s.length < 1
110
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
111
+ end
112
+
113
113
  if @name.nil?
114
114
  invalid_properties.push('invalid value for "name", name cannot be nil.')
115
115
  end
@@ -124,23 +124,13 @@ module PulpContainerClient
124
124
  # Check to see if the all the properties in the model are valid
125
125
  # @return true if the model is valid
126
126
  def valid?
127
- return false if !@description.nil? && @description.to_s.length < 1
128
127
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
128
+ return false if !@description.nil? && @description.to_s.length < 1
129
129
  return false if @name.nil?
130
130
  return false if @name.to_s.length < 1
131
131
  true
132
132
  end
133
133
 
134
- # Custom attribute writer method with validation
135
- # @param [Object] description Value to be assigned
136
- def description=(description)
137
- if !description.nil? && description.to_s.length < 1
138
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
139
- end
140
-
141
- @description = description
142
- end
143
-
144
134
  # Custom attribute writer method with validation
145
135
  # @param [Object] retain_repo_versions Value to be assigned
146
136
  def retain_repo_versions=(retain_repo_versions)
@@ -151,6 +141,16 @@ module PulpContainerClient
151
141
  @retain_repo_versions = retain_repo_versions
152
142
  end
153
143
 
144
+ # Custom attribute writer method with validation
145
+ # @param [Object] description Value to be assigned
146
+ def description=(description)
147
+ if !description.nil? && description.to_s.length < 1
148
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
149
+ end
150
+
151
+ @description = description
152
+ end
153
+
154
154
  # Custom attribute writer method with validation
155
155
  # @param [Object] name Value to be assigned
156
156
  def name=(name)
@@ -170,10 +170,10 @@ module PulpContainerClient
170
170
  def ==(o)
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
+ retain_repo_versions == o.retain_repo_versions &&
174
+ description == o.description &&
173
175
  manifest_signing_service == o.manifest_signing_service &&
174
176
  pulp_labels == o.pulp_labels &&
175
- description == o.description &&
176
- retain_repo_versions == o.retain_repo_versions &&
177
177
  name == o.name
178
178
  end
179
179
 
@@ -186,7 +186,7 @@ module PulpContainerClient
186
186
  # Calculates hash code according to all attributes.
187
187
  # @return [Integer] Hash code
188
188
  def hash
189
- [manifest_signing_service, pulp_labels, description, retain_repo_versions, name].hash
189
+ [retain_repo_versions, description, manifest_signing_service, pulp_labels, name].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash