pulp_container_client 2.20.4 → 2.21.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -10
  3. data/docs/ContainerBlobResponse.md +2 -0
  4. data/docs/ContainerContainerDistribution.md +7 -7
  5. data/docs/ContainerContainerDistributionResponse.md +16 -12
  6. data/docs/ContainerContainerNamespaceResponse.md +2 -0
  7. data/docs/ContainerContainerPullThroughDistribution.md +7 -7
  8. data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -12
  9. data/docs/ContainerContainerPullThroughRemote.md +6 -2
  10. data/docs/ContainerContainerPullThroughRemoteResponse.md +8 -2
  11. data/docs/ContainerContainerPushRepository.md +7 -7
  12. data/docs/ContainerContainerPushRepositoryResponse.md +15 -13
  13. data/docs/ContainerContainerRemote.md +1 -1
  14. data/docs/ContainerContainerRemoteResponse.md +3 -1
  15. data/docs/ContainerContainerRepositoryResponse.md +2 -0
  16. data/docs/ContainerManifestResponse.md +2 -0
  17. data/docs/ContainerManifestSignatureResponse.md +2 -0
  18. data/docs/ContainerTagResponse.md +2 -0
  19. data/docs/ContentBlobsApi.md +10 -8
  20. data/docs/ContentManifestsApi.md +10 -8
  21. data/docs/ContentSignaturesApi.md +10 -8
  22. data/docs/ContentTagsApi.md +10 -8
  23. data/docs/DistributionsContainerApi.md +4 -2
  24. data/docs/DistributionsPullThroughApi.md +4 -2
  25. data/docs/OCIBuildImage.md +1 -1
  26. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  27. data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
  28. data/docs/PatchedcontainerContainerPullThroughRemote.md +6 -2
  29. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  30. data/docs/PatchedcontainerContainerRemote.md +1 -1
  31. data/docs/{Policy762Enum.md → Policy692Enum.md} +2 -2
  32. data/docs/{Policy8e2Enum.md → Policy7e0Enum.md} +2 -2
  33. data/docs/PulpContainerNamespacesApi.md +4 -2
  34. data/docs/RemotesContainerApi.md +4 -2
  35. data/docs/RemotesPullThroughApi.md +4 -2
  36. data/docs/RepositoriesContainerApi.md +10 -8
  37. data/docs/RepositoriesContainerPushApi.md +8 -6
  38. data/docs/RepositoriesContainerPushVersionsApi.md +8 -6
  39. data/docs/RepositoriesContainerVersionsApi.md +8 -6
  40. data/docs/RepositoryVersionResponse.md +2 -0
  41. data/lib/pulp_container_client/api/content_blobs_api.rb +11 -8
  42. data/lib/pulp_container_client/api/content_manifests_api.rb +11 -8
  43. data/lib/pulp_container_client/api/content_signatures_api.rb +11 -8
  44. data/lib/pulp_container_client/api/content_tags_api.rb +11 -8
  45. data/lib/pulp_container_client/api/distributions_container_api.rb +5 -2
  46. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +5 -2
  47. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +5 -2
  48. data/lib/pulp_container_client/api/remotes_container_api.rb +5 -2
  49. data/lib/pulp_container_client/api/remotes_pull_through_api.rb +5 -2
  50. data/lib/pulp_container_client/api/repositories_container_api.rb +11 -8
  51. data/lib/pulp_container_client/api/repositories_container_push_api.rb +9 -6
  52. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +10 -7
  53. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +10 -7
  54. data/lib/pulp_container_client/models/container_blob_response.rb +11 -1
  55. data/lib/pulp_container_client/models/container_container_distribution.rb +53 -53
  56. data/lib/pulp_container_client/models/container_container_distribution_response.rb +74 -54
  57. data/lib/pulp_container_client/models/container_container_namespace_response.rb +11 -1
  58. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +53 -53
  59. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +74 -54
  60. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +32 -6
  61. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +41 -5
  62. data/lib/pulp_container_client/models/container_container_push_repository.rb +46 -46
  63. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +60 -50
  64. data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
  65. data/lib/pulp_container_client/models/container_container_remote_response.rb +12 -2
  66. data/lib/pulp_container_client/models/container_container_repository_response.rb +11 -1
  67. data/lib/pulp_container_client/models/container_manifest_response.rb +11 -1
  68. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +11 -1
  69. data/lib/pulp_container_client/models/container_tag_response.rb +11 -1
  70. data/lib/pulp_container_client/models/oci_build_image.rb +1 -1
  71. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +44 -44
  72. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +44 -44
  73. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +32 -6
  74. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +46 -46
  75. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +1 -1
  76. data/lib/pulp_container_client/models/{policy762_enum.rb → policy692_enum.rb} +3 -3
  77. data/lib/pulp_container_client/models/{policy8e2_enum.rb → policy7e0_enum.rb} +3 -3
  78. data/lib/pulp_container_client/models/repository_version_response.rb +12 -2
  79. data/lib/pulp_container_client/version.rb +1 -1
  80. data/lib/pulp_container_client.rb +2 -2
  81. data/spec/api/content_blobs_api_spec.rb +5 -4
  82. data/spec/api/content_manifests_api_spec.rb +5 -4
  83. data/spec/api/content_signatures_api_spec.rb +5 -4
  84. data/spec/api/content_tags_api_spec.rb +5 -4
  85. data/spec/api/distributions_container_api_spec.rb +2 -1
  86. data/spec/api/distributions_pull_through_api_spec.rb +2 -1
  87. data/spec/api/pulp_container_namespaces_api_spec.rb +2 -1
  88. data/spec/api/remotes_container_api_spec.rb +2 -1
  89. data/spec/api/remotes_pull_through_api_spec.rb +2 -1
  90. data/spec/api/repositories_container_api_spec.rb +5 -4
  91. data/spec/api/repositories_container_push_api_spec.rb +4 -3
  92. data/spec/api/repositories_container_push_versions_api_spec.rb +4 -3
  93. data/spec/api/repositories_container_versions_api_spec.rb +4 -3
  94. data/spec/models/container_blob_response_spec.rb +6 -0
  95. data/spec/models/container_container_distribution_response_spec.rb +20 -8
  96. data/spec/models/container_container_distribution_spec.rb +5 -5
  97. data/spec/models/container_container_namespace_response_spec.rb +6 -0
  98. data/spec/models/container_container_pull_through_distribution_response_spec.rb +20 -8
  99. data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
  100. data/spec/models/container_container_pull_through_remote_response_spec.rb +18 -0
  101. data/spec/models/container_container_pull_through_remote_spec.rb +12 -0
  102. data/spec/models/container_container_push_repository_response_spec.rb +14 -8
  103. data/spec/models/container_container_push_repository_spec.rb +4 -4
  104. data/spec/models/container_container_remote_response_spec.rb +6 -0
  105. data/spec/models/container_container_repository_response_spec.rb +6 -0
  106. data/spec/models/container_manifest_response_spec.rb +6 -0
  107. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  108. data/spec/models/container_tag_response_spec.rb +6 -0
  109. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  110. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  111. data/spec/models/patchedcontainer_container_pull_through_remote_spec.rb +12 -0
  112. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  113. data/spec/models/{policy762_enum_spec.rb → policy692_enum_spec.rb} +6 -6
  114. data/spec/models/{policy8e2_enum_spec.rb → policy7e0_enum_spec.rb} +6 -6
  115. data/spec/models/repository_version_response_spec.rb +6 -0
  116. metadata +9 -9
@@ -15,30 +15,36 @@ 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 creation.
19
- attr_accessor :pulp_created
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
20
22
 
21
23
  # Whether this distribution should be shown in the content app.
22
24
  attr_accessor :hidden
23
25
 
26
+ attr_accessor :pulp_href
27
+
28
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
29
+ attr_accessor :no_content_change_since
30
+
31
+ # Timestamp of creation.
32
+ attr_accessor :pulp_created
33
+
24
34
  # The latest RepositoryVersion for this Repository will be served.
25
35
  attr_accessor :repository
26
36
 
27
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
28
- attr_accessor :base_path
37
+ # A unique name. Ex, `rawhide` and `stable`.
38
+ attr_accessor :name
29
39
 
30
40
  # 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.
31
41
  attr_accessor :pulp_last_updated
32
42
 
33
- attr_accessor :pulp_labels
34
-
35
- attr_accessor :pulp_href
36
-
37
- # A unique name. Ex, `rawhide` and `stable`.
38
- attr_accessor :name
43
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
44
+ attr_accessor :base_path
39
45
 
40
- # An optional content-guard. If none is specified, a default one will be used.
41
- attr_accessor :content_guard
46
+ # The Pulp Resource Name (PRN).
47
+ attr_accessor :prn
42
48
 
43
49
  # Remote that can be used to fetch content when using pull-through caching.
44
50
  attr_accessor :remote
@@ -58,15 +64,17 @@ module PulpContainerClient
58
64
  # Attribute mapping from ruby-style variable name to JSON key.
59
65
  def self.attribute_map
60
66
  {
61
- :'pulp_created' => :'pulp_created',
62
- :'hidden' => :'hidden',
63
- :'repository' => :'repository',
64
- :'base_path' => :'base_path',
65
- :'pulp_last_updated' => :'pulp_last_updated',
66
67
  :'pulp_labels' => :'pulp_labels',
68
+ :'content_guard' => :'content_guard',
69
+ :'hidden' => :'hidden',
67
70
  :'pulp_href' => :'pulp_href',
71
+ :'no_content_change_since' => :'no_content_change_since',
72
+ :'pulp_created' => :'pulp_created',
73
+ :'repository' => :'repository',
68
74
  :'name' => :'name',
69
- :'content_guard' => :'content_guard',
75
+ :'pulp_last_updated' => :'pulp_last_updated',
76
+ :'base_path' => :'base_path',
77
+ :'prn' => :'prn',
70
78
  :'remote' => :'remote',
71
79
  :'distributions' => :'distributions',
72
80
  :'namespace' => :'namespace',
@@ -78,15 +86,17 @@ module PulpContainerClient
78
86
  # Attribute type mapping.
79
87
  def self.openapi_types
80
88
  {
81
- :'pulp_created' => :'DateTime',
82
- :'hidden' => :'Boolean',
83
- :'repository' => :'String',
84
- :'base_path' => :'String',
85
- :'pulp_last_updated' => :'DateTime',
86
89
  :'pulp_labels' => :'Hash<String, String>',
90
+ :'content_guard' => :'String',
91
+ :'hidden' => :'Boolean',
87
92
  :'pulp_href' => :'String',
93
+ :'no_content_change_since' => :'String',
94
+ :'pulp_created' => :'DateTime',
95
+ :'repository' => :'String',
88
96
  :'name' => :'String',
89
- :'content_guard' => :'String',
97
+ :'pulp_last_updated' => :'DateTime',
98
+ :'base_path' => :'String',
99
+ :'prn' => :'String',
90
100
  :'remote' => :'String',
91
101
  :'distributions' => :'Array<String>',
92
102
  :'namespace' => :'String',
@@ -118,8 +128,14 @@ module PulpContainerClient
118
128
  h[k.to_sym] = v
119
129
  }
120
130
 
121
- if attributes.key?(:'pulp_created')
122
- self.pulp_created = attributes[:'pulp_created']
131
+ if attributes.key?(:'pulp_labels')
132
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
133
+ self.pulp_labels = value
134
+ end
135
+ end
136
+
137
+ if attributes.key?(:'content_guard')
138
+ self.content_guard = attributes[:'content_guard']
123
139
  end
124
140
 
125
141
  if attributes.key?(:'hidden')
@@ -128,34 +144,36 @@ module PulpContainerClient
128
144
  self.hidden = false
129
145
  end
130
146
 
131
- if attributes.key?(:'repository')
132
- self.repository = attributes[:'repository']
133
- end
134
-
135
- if attributes.key?(:'base_path')
136
- self.base_path = attributes[:'base_path']
147
+ if attributes.key?(:'pulp_href')
148
+ self.pulp_href = attributes[:'pulp_href']
137
149
  end
138
150
 
139
- if attributes.key?(:'pulp_last_updated')
140
- self.pulp_last_updated = attributes[:'pulp_last_updated']
151
+ if attributes.key?(:'no_content_change_since')
152
+ self.no_content_change_since = attributes[:'no_content_change_since']
141
153
  end
142
154
 
143
- if attributes.key?(:'pulp_labels')
144
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
145
- self.pulp_labels = value
146
- end
155
+ if attributes.key?(:'pulp_created')
156
+ self.pulp_created = attributes[:'pulp_created']
147
157
  end
148
158
 
149
- if attributes.key?(:'pulp_href')
150
- self.pulp_href = attributes[:'pulp_href']
159
+ if attributes.key?(:'repository')
160
+ self.repository = attributes[:'repository']
151
161
  end
152
162
 
153
163
  if attributes.key?(:'name')
154
164
  self.name = attributes[:'name']
155
165
  end
156
166
 
157
- if attributes.key?(:'content_guard')
158
- self.content_guard = attributes[:'content_guard']
167
+ if attributes.key?(:'pulp_last_updated')
168
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
169
+ end
170
+
171
+ if attributes.key?(:'base_path')
172
+ self.base_path = attributes[:'base_path']
173
+ end
174
+
175
+ if attributes.key?(:'prn')
176
+ self.prn = attributes[:'prn']
159
177
  end
160
178
 
161
179
  if attributes.key?(:'remote')
@@ -185,14 +203,14 @@ module PulpContainerClient
185
203
  # @return Array for valid properties with the reasons
186
204
  def list_invalid_properties
187
205
  invalid_properties = Array.new
188
- if @base_path.nil?
189
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
190
- end
191
-
192
206
  if @name.nil?
193
207
  invalid_properties.push('invalid value for "name", name cannot be nil.')
194
208
  end
195
209
 
210
+ if @base_path.nil?
211
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
212
+ end
213
+
196
214
  if @remote.nil?
197
215
  invalid_properties.push('invalid value for "remote", remote cannot be nil.')
198
216
  end
@@ -203,8 +221,8 @@ module PulpContainerClient
203
221
  # Check to see if the all the properties in the model are valid
204
222
  # @return true if the model is valid
205
223
  def valid?
206
- return false if @base_path.nil?
207
224
  return false if @name.nil?
225
+ return false if @base_path.nil?
208
226
  return false if @remote.nil?
209
227
  true
210
228
  end
@@ -214,15 +232,17 @@ module PulpContainerClient
214
232
  def ==(o)
215
233
  return true if self.equal?(o)
216
234
  self.class == o.class &&
217
- pulp_created == o.pulp_created &&
218
- hidden == o.hidden &&
219
- repository == o.repository &&
220
- base_path == o.base_path &&
221
- pulp_last_updated == o.pulp_last_updated &&
222
235
  pulp_labels == o.pulp_labels &&
236
+ content_guard == o.content_guard &&
237
+ hidden == o.hidden &&
223
238
  pulp_href == o.pulp_href &&
239
+ no_content_change_since == o.no_content_change_since &&
240
+ pulp_created == o.pulp_created &&
241
+ repository == o.repository &&
224
242
  name == o.name &&
225
- content_guard == o.content_guard &&
243
+ pulp_last_updated == o.pulp_last_updated &&
244
+ base_path == o.base_path &&
245
+ prn == o.prn &&
226
246
  remote == o.remote &&
227
247
  distributions == o.distributions &&
228
248
  namespace == o.namespace &&
@@ -239,7 +259,7 @@ module PulpContainerClient
239
259
  # Calculates hash code according to all attributes.
240
260
  # @return [Integer] Hash code
241
261
  def hash
242
- [pulp_created, hidden, repository, base_path, pulp_last_updated, pulp_labels, pulp_href, name, content_guard, remote, distributions, namespace, private, description].hash
262
+ [pulp_labels, content_guard, hidden, pulp_href, no_content_change_since, pulp_created, repository, name, pulp_last_updated, base_path, prn, remote, distributions, namespace, private, description].hash
243
263
  end
244
264
 
245
265
  # Builds the object from hash
@@ -76,6 +76,12 @@ module PulpContainerClient
76
76
  # Limits requests per second for each concurrent downloader
77
77
  attr_accessor :rate_limit
78
78
 
79
+ # A list of remotes to include during pull-through caching. Wildcards *, ? are recognized. 'includes' is evaluated before 'excludes'.
80
+ attr_accessor :includes
81
+
82
+ # A list of remotes to exclude during pull-through caching. Wildcards *, ? are recognized. 'excludes' is evaluated after 'includes'.
83
+ attr_accessor :excludes
84
+
79
85
  # Attribute mapping from ruby-style variable name to JSON key.
80
86
  def self.attribute_map
81
87
  {
@@ -99,7 +105,9 @@ module PulpContainerClient
99
105
  :'sock_connect_timeout' => :'sock_connect_timeout',
100
106
  :'sock_read_timeout' => :'sock_read_timeout',
101
107
  :'headers' => :'headers',
102
- :'rate_limit' => :'rate_limit'
108
+ :'rate_limit' => :'rate_limit',
109
+ :'includes' => :'includes',
110
+ :'excludes' => :'excludes'
103
111
  }
104
112
  end
105
113
 
@@ -120,13 +128,15 @@ module PulpContainerClient
120
128
  :'pulp_labels' => :'Hash<String, String>',
121
129
  :'download_concurrency' => :'Integer',
122
130
  :'max_retries' => :'Integer',
123
- :'policy' => :'Policy8e2Enum',
131
+ :'policy' => :'Policy7e0Enum',
124
132
  :'total_timeout' => :'Float',
125
133
  :'connect_timeout' => :'Float',
126
134
  :'sock_connect_timeout' => :'Float',
127
135
  :'sock_read_timeout' => :'Float',
128
136
  :'headers' => :'Array<Object>',
129
- :'rate_limit' => :'Integer'
137
+ :'rate_limit' => :'Integer',
138
+ :'includes' => :'Array<String>',
139
+ :'excludes' => :'Array<String>'
130
140
  }
131
141
  end
132
142
 
@@ -147,7 +157,9 @@ module PulpContainerClient
147
157
  :'connect_timeout',
148
158
  :'sock_connect_timeout',
149
159
  :'sock_read_timeout',
150
- :'rate_limit'
160
+ :'rate_limit',
161
+ :'includes',
162
+ :'excludes'
151
163
  ])
152
164
  end
153
165
 
@@ -253,6 +265,18 @@ module PulpContainerClient
253
265
  if attributes.key?(:'rate_limit')
254
266
  self.rate_limit = attributes[:'rate_limit']
255
267
  end
268
+
269
+ if attributes.key?(:'includes')
270
+ if (value = attributes[:'includes']).is_a?(Array)
271
+ self.includes = value
272
+ end
273
+ end
274
+
275
+ if attributes.key?(:'excludes')
276
+ if (value = attributes[:'excludes']).is_a?(Array)
277
+ self.excludes = value
278
+ end
279
+ end
256
280
  end
257
281
 
258
282
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -536,7 +560,9 @@ module PulpContainerClient
536
560
  sock_connect_timeout == o.sock_connect_timeout &&
537
561
  sock_read_timeout == o.sock_read_timeout &&
538
562
  headers == o.headers &&
539
- rate_limit == o.rate_limit
563
+ rate_limit == o.rate_limit &&
564
+ includes == o.includes &&
565
+ excludes == o.excludes
540
566
  end
541
567
 
542
568
  # @see the `==` method
@@ -548,7 +574,7 @@ module PulpContainerClient
548
574
  # Calculates hash code according to all attributes.
549
575
  # @return [Integer] Hash code
550
576
  def hash
551
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
577
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes].hash
552
578
  end
553
579
 
554
580
  # Builds the object from hash
@@ -17,6 +17,9 @@ module PulpContainerClient
17
17
  class ContainerContainerPullThroughRemoteResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
+ # The Pulp Resource Name (PRN).
21
+ attr_accessor :prn
22
+
20
23
  # Timestamp of creation.
21
24
  attr_accessor :pulp_created
22
25
 
@@ -72,10 +75,17 @@ module PulpContainerClient
72
75
  # List of hidden (write only) fields
73
76
  attr_accessor :hidden_fields
74
77
 
78
+ # A list of remotes to include during pull-through caching. Wildcards *, ? are recognized. 'includes' is evaluated before 'excludes'.
79
+ attr_accessor :includes
80
+
81
+ # A list of remotes to exclude during pull-through caching. Wildcards *, ? are recognized. 'excludes' is evaluated after 'includes'.
82
+ attr_accessor :excludes
83
+
75
84
  # Attribute mapping from ruby-style variable name to JSON key.
76
85
  def self.attribute_map
77
86
  {
78
87
  :'pulp_href' => :'pulp_href',
88
+ :'prn' => :'prn',
79
89
  :'pulp_created' => :'pulp_created',
80
90
  :'pulp_last_updated' => :'pulp_last_updated',
81
91
  :'name' => :'name',
@@ -94,7 +104,9 @@ module PulpContainerClient
94
104
  :'sock_read_timeout' => :'sock_read_timeout',
95
105
  :'headers' => :'headers',
96
106
  :'rate_limit' => :'rate_limit',
97
- :'hidden_fields' => :'hidden_fields'
107
+ :'hidden_fields' => :'hidden_fields',
108
+ :'includes' => :'includes',
109
+ :'excludes' => :'excludes'
98
110
  }
99
111
  end
100
112
 
@@ -102,6 +114,7 @@ module PulpContainerClient
102
114
  def self.openapi_types
103
115
  {
104
116
  :'pulp_href' => :'String',
117
+ :'prn' => :'String',
105
118
  :'pulp_created' => :'DateTime',
106
119
  :'pulp_last_updated' => :'DateTime',
107
120
  :'name' => :'String',
@@ -113,14 +126,16 @@ module PulpContainerClient
113
126
  :'pulp_labels' => :'Hash<String, String>',
114
127
  :'download_concurrency' => :'Integer',
115
128
  :'max_retries' => :'Integer',
116
- :'policy' => :'Policy8e2Enum',
129
+ :'policy' => :'Policy7e0Enum',
117
130
  :'total_timeout' => :'Float',
118
131
  :'connect_timeout' => :'Float',
119
132
  :'sock_connect_timeout' => :'Float',
120
133
  :'sock_read_timeout' => :'Float',
121
134
  :'headers' => :'Array<Object>',
122
135
  :'rate_limit' => :'Integer',
123
- :'hidden_fields' => :'Array<ContainerContainerPullThroughRemoteResponseHiddenFields>'
136
+ :'hidden_fields' => :'Array<ContainerContainerPullThroughRemoteResponseHiddenFields>',
137
+ :'includes' => :'Array<String>',
138
+ :'excludes' => :'Array<String>'
124
139
  }
125
140
  end
126
141
 
@@ -137,6 +152,8 @@ module PulpContainerClient
137
152
  :'sock_connect_timeout',
138
153
  :'sock_read_timeout',
139
154
  :'rate_limit',
155
+ :'includes',
156
+ :'excludes'
140
157
  ])
141
158
  end
142
159
 
@@ -159,6 +176,10 @@ module PulpContainerClient
159
176
  self.pulp_href = attributes[:'pulp_href']
160
177
  end
161
178
 
179
+ if attributes.key?(:'prn')
180
+ self.prn = attributes[:'prn']
181
+ end
182
+
162
183
  if attributes.key?(:'pulp_created')
163
184
  self.pulp_created = attributes[:'pulp_created']
164
185
  end
@@ -240,6 +261,18 @@ module PulpContainerClient
240
261
  self.hidden_fields = value
241
262
  end
242
263
  end
264
+
265
+ if attributes.key?(:'includes')
266
+ if (value = attributes[:'includes']).is_a?(Array)
267
+ self.includes = value
268
+ end
269
+ end
270
+
271
+ if attributes.key?(:'excludes')
272
+ if (value = attributes[:'excludes']).is_a?(Array)
273
+ self.excludes = value
274
+ end
275
+ end
243
276
  end
244
277
 
245
278
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -346,6 +379,7 @@ module PulpContainerClient
346
379
  return true if self.equal?(o)
347
380
  self.class == o.class &&
348
381
  pulp_href == o.pulp_href &&
382
+ prn == o.prn &&
349
383
  pulp_created == o.pulp_created &&
350
384
  pulp_last_updated == o.pulp_last_updated &&
351
385
  name == o.name &&
@@ -364,7 +398,9 @@ module PulpContainerClient
364
398
  sock_read_timeout == o.sock_read_timeout &&
365
399
  headers == o.headers &&
366
400
  rate_limit == o.rate_limit &&
367
- hidden_fields == o.hidden_fields
401
+ hidden_fields == o.hidden_fields &&
402
+ includes == o.includes &&
403
+ excludes == o.excludes
368
404
  end
369
405
 
370
406
  # @see the `==` method
@@ -376,7 +412,7 @@ module PulpContainerClient
376
412
  # Calculates hash code according to all attributes.
377
413
  # @return [Integer] Hash code
378
414
  def 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
415
+ [pulp_href, prn, 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, includes, excludes].hash
380
416
  end
381
417
 
382
418
  # Builds the object from hash
@@ -15,39 +15,39 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
- # A unique name for this repository.
19
- attr_accessor :name
18
+ attr_accessor :pulp_labels
20
19
 
21
20
  # A reference to an associated signing service.
22
21
  attr_accessor :manifest_signing_service
23
22
 
24
- attr_accessor :pulp_labels
23
+ # An optional description.
24
+ attr_accessor :description
25
+
26
+ # A unique name for this repository.
27
+ attr_accessor :name
25
28
 
26
29
  # Retain X versions of the repository. Default is null which retains all versions.
27
30
  attr_accessor :retain_repo_versions
28
31
 
29
- # An optional description.
30
- attr_accessor :description
31
-
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'name' => :'name',
36
- :'manifest_signing_service' => :'manifest_signing_service',
37
35
  :'pulp_labels' => :'pulp_labels',
38
- :'retain_repo_versions' => :'retain_repo_versions',
39
- :'description' => :'description'
36
+ :'manifest_signing_service' => :'manifest_signing_service',
37
+ :'description' => :'description',
38
+ :'name' => :'name',
39
+ :'retain_repo_versions' => :'retain_repo_versions'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'name' => :'String',
47
- :'manifest_signing_service' => :'String',
48
46
  :'pulp_labels' => :'Hash<String, String>',
49
- :'retain_repo_versions' => :'Integer',
50
- :'description' => :'String'
47
+ :'manifest_signing_service' => :'String',
48
+ :'description' => :'String',
49
+ :'name' => :'String',
50
+ :'retain_repo_versions' => :'Integer'
51
51
  }
52
52
  end
53
53
 
@@ -55,8 +55,8 @@ module PulpContainerClient
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
57
  :'manifest_signing_service',
58
- :'retain_repo_versions',
59
- :'description'
58
+ :'description',
59
+ :'retain_repo_versions'
60
60
  ])
61
61
  end
62
62
 
@@ -75,33 +75,37 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'name')
79
- self.name = attributes[:'name']
80
- end
81
-
82
- if attributes.key?(:'manifest_signing_service')
83
- self.manifest_signing_service = attributes[:'manifest_signing_service']
84
- end
85
-
86
78
  if attributes.key?(:'pulp_labels')
87
79
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
88
80
  self.pulp_labels = value
89
81
  end
90
82
  end
91
83
 
92
- if attributes.key?(:'retain_repo_versions')
93
- self.retain_repo_versions = attributes[:'retain_repo_versions']
84
+ if attributes.key?(:'manifest_signing_service')
85
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
94
86
  end
95
87
 
96
88
  if attributes.key?(:'description')
97
89
  self.description = attributes[:'description']
98
90
  end
91
+
92
+ if attributes.key?(:'name')
93
+ self.name = attributes[:'name']
94
+ end
95
+
96
+ if attributes.key?(:'retain_repo_versions')
97
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
98
+ end
99
99
  end
100
100
 
101
101
  # Show invalid properties with the reasons. Usually used together with valid?
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
+
105
109
  if @name.nil?
106
110
  invalid_properties.push('invalid value for "name", name cannot be nil.')
107
111
  end
@@ -114,23 +118,29 @@ module PulpContainerClient
114
118
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
115
119
  end
116
120
 
117
- if !@description.nil? && @description.to_s.length < 1
118
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
119
- end
120
-
121
121
  invalid_properties
122
122
  end
123
123
 
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
127
128
  return false if @name.nil?
128
129
  return false if @name.to_s.length < 1
129
130
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
130
- return false if !@description.nil? && @description.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
+
134
144
  # Custom attribute writer method with validation
135
145
  # @param [Object] name Value to be assigned
136
146
  def name=(name)
@@ -155,26 +165,16 @@ module PulpContainerClient
155
165
  @retain_repo_versions = retain_repo_versions
156
166
  end
157
167
 
158
- # Custom attribute writer method with validation
159
- # @param [Object] description Value to be assigned
160
- def description=(description)
161
- if !description.nil? && description.to_s.length < 1
162
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
163
- end
164
-
165
- @description = description
166
- end
167
-
168
168
  # Checks equality by comparing each attribute.
169
169
  # @param [Object] Object to be compared
170
170
  def ==(o)
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
- name == o.name &&
174
- manifest_signing_service == o.manifest_signing_service &&
175
173
  pulp_labels == o.pulp_labels &&
176
- retain_repo_versions == o.retain_repo_versions &&
177
- description == o.description
174
+ manifest_signing_service == o.manifest_signing_service &&
175
+ description == o.description &&
176
+ name == o.name &&
177
+ retain_repo_versions == o.retain_repo_versions
178
178
  end
179
179
 
180
180
  # @see the `==` method
@@ -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
- [name, manifest_signing_service, pulp_labels, retain_repo_versions, description].hash
189
+ [pulp_labels, manifest_signing_service, description, name, retain_repo_versions].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash