pulp_ansible_client 0.22.6 → 0.22.8

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 (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleAnsibleDistribution.md +5 -3
  4. data/docs/AnsibleAnsibleDistributionResponse.md +12 -4
  5. data/docs/AnsibleCollectionVersion.md +4 -4
  6. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  7. data/docs/AnsibleGitRemote.md +23 -23
  8. data/docs/AnsibleGitRemoteResponse.md +22 -22
  9. data/docs/AnsibleRoleResponse.md +6 -6
  10. data/docs/ContentCollectionVersionsApi.md +4 -4
  11. data/docs/PatchedansibleAnsibleDistribution.md +5 -3
  12. data/docs/PatchedansibleGitRemote.md +23 -23
  13. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  14. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +28 -16
  15. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +62 -20
  16. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
  17. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +17 -17
  18. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +196 -196
  19. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +125 -125
  20. data/lib/pulp_ansible_client/models/ansible_role_response.rb +21 -21
  21. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +28 -16
  22. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +191 -191
  23. data/lib/pulp_ansible_client/version.rb +1 -1
  24. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  25. data/spec/models/ansible_ansible_distribution_response_spec.rb +28 -4
  26. data/spec/models/ansible_ansible_distribution_spec.rb +10 -4
  27. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  28. data/spec/models/ansible_collection_version_spec.rb +4 -4
  29. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  30. data/spec/models/ansible_git_remote_spec.rb +20 -20
  31. data/spec/models/ansible_role_response_spec.rb +3 -3
  32. data/spec/models/patchedansible_ansible_distribution_spec.rb +10 -4
  33. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  34. metadata +128 -128
@@ -15,25 +15,19 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- attr_accessor :pulp_href
18
+ # Timestamp of the most recent update of the remote.
19
+ attr_accessor :pulp_last_updated
19
20
 
20
- # The Pulp Resource Name (PRN).
21
- attr_accessor :prn
21
+ attr_accessor :pulp_labels
22
22
 
23
23
  # 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.
24
24
  attr_accessor :sock_read_timeout
25
25
 
26
- # Timestamp of creation.
27
- attr_accessor :pulp_created
28
-
29
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
30
- attr_accessor :connect_timeout
31
-
32
26
  # Headers for aiohttp.Clientsession
33
27
  attr_accessor :headers
34
28
 
35
- # Timestamp of the most recent update of the remote.
36
- attr_accessor :pulp_last_updated
29
+ # The URL of an external content source.
30
+ attr_accessor :url
37
31
 
38
32
  # A PEM encoded client certificate used for authentication.
39
33
  attr_accessor :client_cert
@@ -41,38 +35,44 @@ module PulpAnsibleClient
41
35
  # If True, TLS peer validation must be performed.
42
36
  attr_accessor :tls_validation
43
37
 
44
- attr_accessor :pulp_labels
45
-
46
38
  # 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.
47
39
  attr_accessor :sock_connect_timeout
48
40
 
49
- # List of hidden (write only) fields
50
- attr_accessor :hidden_fields
41
+ # The Pulp Resource Name (PRN).
42
+ attr_accessor :prn
43
+
44
+ # Timestamp of creation.
45
+ attr_accessor :pulp_created
51
46
 
52
47
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
53
48
  attr_accessor :ca_cert
54
49
 
55
- # Total number of simultaneous connections. If not set then the default value will be used.
56
- attr_accessor :download_concurrency
57
-
58
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
59
- attr_accessor :max_retries
50
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
51
+ attr_accessor :connect_timeout
60
52
 
61
53
  # A unique name for this remote.
62
54
  attr_accessor :name
63
55
 
64
- # Limits requests per second for each concurrent downloader
65
- attr_accessor :rate_limit
66
-
67
56
  # The proxy URL. Format: scheme://host:port
68
57
  attr_accessor :proxy_url
69
58
 
70
- # The URL of an external content source.
71
- attr_accessor :url
59
+ attr_accessor :pulp_href
72
60
 
73
61
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
74
62
  attr_accessor :total_timeout
75
63
 
64
+ # Limits requests per second for each concurrent downloader
65
+ attr_accessor :rate_limit
66
+
67
+ # List of hidden (write only) fields
68
+ attr_accessor :hidden_fields
69
+
70
+ # Total number of simultaneous connections. If not set then the default value will be used.
71
+ attr_accessor :download_concurrency
72
+
73
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
74
+ attr_accessor :max_retries
75
+
76
76
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
77
77
  attr_accessor :metadata_only
78
78
 
@@ -82,26 +82,26 @@ module PulpAnsibleClient
82
82
  # Attribute mapping from ruby-style variable name to JSON key.
83
83
  def self.attribute_map
84
84
  {
85
- :'pulp_href' => :'pulp_href',
86
- :'prn' => :'prn',
85
+ :'pulp_last_updated' => :'pulp_last_updated',
86
+ :'pulp_labels' => :'pulp_labels',
87
87
  :'sock_read_timeout' => :'sock_read_timeout',
88
- :'pulp_created' => :'pulp_created',
89
- :'connect_timeout' => :'connect_timeout',
90
88
  :'headers' => :'headers',
91
- :'pulp_last_updated' => :'pulp_last_updated',
89
+ :'url' => :'url',
92
90
  :'client_cert' => :'client_cert',
93
91
  :'tls_validation' => :'tls_validation',
94
- :'pulp_labels' => :'pulp_labels',
95
92
  :'sock_connect_timeout' => :'sock_connect_timeout',
96
- :'hidden_fields' => :'hidden_fields',
93
+ :'prn' => :'prn',
94
+ :'pulp_created' => :'pulp_created',
97
95
  :'ca_cert' => :'ca_cert',
98
- :'download_concurrency' => :'download_concurrency',
99
- :'max_retries' => :'max_retries',
96
+ :'connect_timeout' => :'connect_timeout',
100
97
  :'name' => :'name',
101
- :'rate_limit' => :'rate_limit',
102
98
  :'proxy_url' => :'proxy_url',
103
- :'url' => :'url',
99
+ :'pulp_href' => :'pulp_href',
104
100
  :'total_timeout' => :'total_timeout',
101
+ :'rate_limit' => :'rate_limit',
102
+ :'hidden_fields' => :'hidden_fields',
103
+ :'download_concurrency' => :'download_concurrency',
104
+ :'max_retries' => :'max_retries',
105
105
  :'metadata_only' => :'metadata_only',
106
106
  :'git_ref' => :'git_ref'
107
107
  }
@@ -110,26 +110,26 @@ module PulpAnsibleClient
110
110
  # Attribute type mapping.
111
111
  def self.openapi_types
112
112
  {
113
- :'pulp_href' => :'String',
114
- :'prn' => :'String',
113
+ :'pulp_last_updated' => :'DateTime',
114
+ :'pulp_labels' => :'Hash<String, String>',
115
115
  :'sock_read_timeout' => :'Float',
116
- :'pulp_created' => :'DateTime',
117
- :'connect_timeout' => :'Float',
118
116
  :'headers' => :'Array<Object>',
119
- :'pulp_last_updated' => :'DateTime',
117
+ :'url' => :'String',
120
118
  :'client_cert' => :'String',
121
119
  :'tls_validation' => :'Boolean',
122
- :'pulp_labels' => :'Hash<String, String>',
123
120
  :'sock_connect_timeout' => :'Float',
124
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
121
+ :'prn' => :'String',
122
+ :'pulp_created' => :'DateTime',
125
123
  :'ca_cert' => :'String',
126
- :'download_concurrency' => :'Integer',
127
- :'max_retries' => :'Integer',
124
+ :'connect_timeout' => :'Float',
128
125
  :'name' => :'String',
129
- :'rate_limit' => :'Integer',
130
126
  :'proxy_url' => :'String',
131
- :'url' => :'String',
127
+ :'pulp_href' => :'String',
132
128
  :'total_timeout' => :'Float',
129
+ :'rate_limit' => :'Integer',
130
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
131
+ :'download_concurrency' => :'Integer',
132
+ :'max_retries' => :'Integer',
133
133
  :'metadata_only' => :'Boolean',
134
134
  :'git_ref' => :'String'
135
135
  }
@@ -139,15 +139,15 @@ module PulpAnsibleClient
139
139
  def self.openapi_nullable
140
140
  Set.new([
141
141
  :'sock_read_timeout',
142
- :'connect_timeout',
143
142
  :'client_cert',
144
143
  :'sock_connect_timeout',
145
144
  :'ca_cert',
146
- :'download_concurrency',
147
- :'max_retries',
148
- :'rate_limit',
145
+ :'connect_timeout',
149
146
  :'proxy_url',
150
147
  :'total_timeout',
148
+ :'rate_limit',
149
+ :'download_concurrency',
150
+ :'max_retries',
151
151
  ])
152
152
  end
153
153
 
@@ -166,34 +166,28 @@ module PulpAnsibleClient
166
166
  h[k.to_sym] = v
167
167
  }
168
168
 
169
- if attributes.key?(:'pulp_href')
170
- self.pulp_href = attributes[:'pulp_href']
169
+ if attributes.key?(:'pulp_last_updated')
170
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
171
171
  end
172
172
 
173
- if attributes.key?(:'prn')
174
- self.prn = attributes[:'prn']
173
+ if attributes.key?(:'pulp_labels')
174
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
175
+ self.pulp_labels = value
176
+ end
175
177
  end
176
178
 
177
179
  if attributes.key?(:'sock_read_timeout')
178
180
  self.sock_read_timeout = attributes[:'sock_read_timeout']
179
181
  end
180
182
 
181
- if attributes.key?(:'pulp_created')
182
- self.pulp_created = attributes[:'pulp_created']
183
- end
184
-
185
- if attributes.key?(:'connect_timeout')
186
- self.connect_timeout = attributes[:'connect_timeout']
187
- end
188
-
189
183
  if attributes.key?(:'headers')
190
184
  if (value = attributes[:'headers']).is_a?(Array)
191
185
  self.headers = value
192
186
  end
193
187
  end
194
188
 
195
- if attributes.key?(:'pulp_last_updated')
196
- self.pulp_last_updated = attributes[:'pulp_last_updated']
189
+ if attributes.key?(:'url')
190
+ self.url = attributes[:'url']
197
191
  end
198
192
 
199
193
  if attributes.key?(:'client_cert')
@@ -204,54 +198,60 @@ module PulpAnsibleClient
204
198
  self.tls_validation = attributes[:'tls_validation']
205
199
  end
206
200
 
207
- if attributes.key?(:'pulp_labels')
208
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
209
- self.pulp_labels = value
210
- end
211
- end
212
-
213
201
  if attributes.key?(:'sock_connect_timeout')
214
202
  self.sock_connect_timeout = attributes[:'sock_connect_timeout']
215
203
  end
216
204
 
217
- if attributes.key?(:'hidden_fields')
218
- if (value = attributes[:'hidden_fields']).is_a?(Array)
219
- self.hidden_fields = value
220
- end
205
+ if attributes.key?(:'prn')
206
+ self.prn = attributes[:'prn']
221
207
  end
222
208
 
223
- if attributes.key?(:'ca_cert')
224
- self.ca_cert = attributes[:'ca_cert']
209
+ if attributes.key?(:'pulp_created')
210
+ self.pulp_created = attributes[:'pulp_created']
225
211
  end
226
212
 
227
- if attributes.key?(:'download_concurrency')
228
- self.download_concurrency = attributes[:'download_concurrency']
213
+ if attributes.key?(:'ca_cert')
214
+ self.ca_cert = attributes[:'ca_cert']
229
215
  end
230
216
 
231
- if attributes.key?(:'max_retries')
232
- self.max_retries = attributes[:'max_retries']
217
+ if attributes.key?(:'connect_timeout')
218
+ self.connect_timeout = attributes[:'connect_timeout']
233
219
  end
234
220
 
235
221
  if attributes.key?(:'name')
236
222
  self.name = attributes[:'name']
237
223
  end
238
224
 
239
- if attributes.key?(:'rate_limit')
240
- self.rate_limit = attributes[:'rate_limit']
241
- end
242
-
243
225
  if attributes.key?(:'proxy_url')
244
226
  self.proxy_url = attributes[:'proxy_url']
245
227
  end
246
228
 
247
- if attributes.key?(:'url')
248
- self.url = attributes[:'url']
229
+ if attributes.key?(:'pulp_href')
230
+ self.pulp_href = attributes[:'pulp_href']
249
231
  end
250
232
 
251
233
  if attributes.key?(:'total_timeout')
252
234
  self.total_timeout = attributes[:'total_timeout']
253
235
  end
254
236
 
237
+ if attributes.key?(:'rate_limit')
238
+ self.rate_limit = attributes[:'rate_limit']
239
+ end
240
+
241
+ if attributes.key?(:'hidden_fields')
242
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
243
+ self.hidden_fields = value
244
+ end
245
+ end
246
+
247
+ if attributes.key?(:'download_concurrency')
248
+ self.download_concurrency = attributes[:'download_concurrency']
249
+ end
250
+
251
+ if attributes.key?(:'max_retries')
252
+ self.max_retries = attributes[:'max_retries']
253
+ end
254
+
255
255
  if attributes.key?(:'metadata_only')
256
256
  self.metadata_only = attributes[:'metadata_only']
257
257
  end
@@ -269,30 +269,30 @@ module PulpAnsibleClient
269
269
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
270
270
  end
271
271
 
272
- if !@connect_timeout.nil? && @connect_timeout < 0.0
273
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
272
+ if @url.nil?
273
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
274
274
  end
275
275
 
276
276
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
277
277
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
278
278
  end
279
279
 
280
- if !@download_concurrency.nil? && @download_concurrency < 1
281
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
280
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
281
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
282
282
  end
283
283
 
284
284
  if @name.nil?
285
285
  invalid_properties.push('invalid value for "name", name cannot be nil.')
286
286
  end
287
287
 
288
- if @url.nil?
289
- invalid_properties.push('invalid value for "url", url cannot be nil.')
290
- end
291
-
292
288
  if !@total_timeout.nil? && @total_timeout < 0.0
293
289
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
294
290
  end
295
291
 
292
+ if !@download_concurrency.nil? && @download_concurrency < 1
293
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
294
+ end
295
+
296
296
  invalid_properties
297
297
  end
298
298
 
@@ -300,12 +300,12 @@ module PulpAnsibleClient
300
300
  # @return true if the model is valid
301
301
  def valid?
302
302
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
303
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
303
+ return false if @url.nil?
304
304
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
305
- return false if !@download_concurrency.nil? && @download_concurrency < 1
305
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
306
306
  return false if @name.nil?
307
- return false if @url.nil?
308
307
  return false if !@total_timeout.nil? && @total_timeout < 0.0
308
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
309
309
  true
310
310
  end
311
311
 
@@ -319,16 +319,6 @@ module PulpAnsibleClient
319
319
  @sock_read_timeout = sock_read_timeout
320
320
  end
321
321
 
322
- # Custom attribute writer method with validation
323
- # @param [Object] connect_timeout Value to be assigned
324
- def connect_timeout=(connect_timeout)
325
- if !connect_timeout.nil? && connect_timeout < 0.0
326
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
327
- end
328
-
329
- @connect_timeout = connect_timeout
330
- end
331
-
332
322
  # Custom attribute writer method with validation
333
323
  # @param [Object] sock_connect_timeout Value to be assigned
334
324
  def sock_connect_timeout=(sock_connect_timeout)
@@ -340,13 +330,13 @@ module PulpAnsibleClient
340
330
  end
341
331
 
342
332
  # Custom attribute writer method with validation
343
- # @param [Object] download_concurrency Value to be assigned
344
- def download_concurrency=(download_concurrency)
345
- if !download_concurrency.nil? && download_concurrency < 1
346
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
333
+ # @param [Object] connect_timeout Value to be assigned
334
+ def connect_timeout=(connect_timeout)
335
+ if !connect_timeout.nil? && connect_timeout < 0.0
336
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
347
337
  end
348
338
 
349
- @download_concurrency = download_concurrency
339
+ @connect_timeout = connect_timeout
350
340
  end
351
341
 
352
342
  # Custom attribute writer method with validation
@@ -359,31 +349,41 @@ module PulpAnsibleClient
359
349
  @total_timeout = total_timeout
360
350
  end
361
351
 
352
+ # Custom attribute writer method with validation
353
+ # @param [Object] download_concurrency Value to be assigned
354
+ def download_concurrency=(download_concurrency)
355
+ if !download_concurrency.nil? && download_concurrency < 1
356
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
357
+ end
358
+
359
+ @download_concurrency = download_concurrency
360
+ end
361
+
362
362
  # Checks equality by comparing each attribute.
363
363
  # @param [Object] Object to be compared
364
364
  def ==(o)
365
365
  return true if self.equal?(o)
366
366
  self.class == o.class &&
367
- pulp_href == o.pulp_href &&
368
- prn == o.prn &&
367
+ pulp_last_updated == o.pulp_last_updated &&
368
+ pulp_labels == o.pulp_labels &&
369
369
  sock_read_timeout == o.sock_read_timeout &&
370
- pulp_created == o.pulp_created &&
371
- connect_timeout == o.connect_timeout &&
372
370
  headers == o.headers &&
373
- pulp_last_updated == o.pulp_last_updated &&
371
+ url == o.url &&
374
372
  client_cert == o.client_cert &&
375
373
  tls_validation == o.tls_validation &&
376
- pulp_labels == o.pulp_labels &&
377
374
  sock_connect_timeout == o.sock_connect_timeout &&
378
- hidden_fields == o.hidden_fields &&
375
+ prn == o.prn &&
376
+ pulp_created == o.pulp_created &&
379
377
  ca_cert == o.ca_cert &&
380
- download_concurrency == o.download_concurrency &&
381
- max_retries == o.max_retries &&
378
+ connect_timeout == o.connect_timeout &&
382
379
  name == o.name &&
383
- rate_limit == o.rate_limit &&
384
380
  proxy_url == o.proxy_url &&
385
- url == o.url &&
381
+ pulp_href == o.pulp_href &&
386
382
  total_timeout == o.total_timeout &&
383
+ rate_limit == o.rate_limit &&
384
+ hidden_fields == o.hidden_fields &&
385
+ download_concurrency == o.download_concurrency &&
386
+ max_retries == o.max_retries &&
387
387
  metadata_only == o.metadata_only &&
388
388
  git_ref == o.git_ref
389
389
  end
@@ -397,7 +397,7 @@ module PulpAnsibleClient
397
397
  # Calculates hash code according to all attributes.
398
398
  # @return [Integer] Hash code
399
399
  def hash
400
- [pulp_href, prn, sock_read_timeout, pulp_created, connect_timeout, headers, pulp_last_updated, client_cert, tls_validation, pulp_labels, sock_connect_timeout, hidden_fields, ca_cert, download_concurrency, max_retries, name, rate_limit, proxy_url, url, total_timeout, metadata_only, git_ref].hash
400
+ [pulp_last_updated, pulp_labels, sock_read_timeout, headers, url, client_cert, tls_validation, sock_connect_timeout, prn, pulp_created, ca_cert, connect_timeout, name, proxy_url, pulp_href, total_timeout, rate_limit, hidden_fields, download_concurrency, max_retries, metadata_only, git_ref].hash
401
401
  end
402
402
 
403
403
  # Builds the object from hash
@@ -15,19 +15,19 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
- attr_accessor :pulp_href
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
19
20
 
20
21
  # Artifact file representing the physical content
21
22
  attr_accessor :artifact
22
23
 
23
- # The Pulp Resource Name (PRN).
24
- attr_accessor :prn
24
+ attr_accessor :pulp_href
25
25
 
26
26
  # Timestamp of creation.
27
27
  attr_accessor :pulp_created
28
28
 
29
- # 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.
30
- attr_accessor :pulp_last_updated
29
+ # The Pulp Resource Name (PRN).
30
+ attr_accessor :prn
31
31
 
32
32
  attr_accessor :version
33
33
 
@@ -38,11 +38,11 @@ module PulpAnsibleClient
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
- :'pulp_href' => :'pulp_href',
41
+ :'pulp_last_updated' => :'pulp_last_updated',
42
42
  :'artifact' => :'artifact',
43
- :'prn' => :'prn',
43
+ :'pulp_href' => :'pulp_href',
44
44
  :'pulp_created' => :'pulp_created',
45
- :'pulp_last_updated' => :'pulp_last_updated',
45
+ :'prn' => :'prn',
46
46
  :'version' => :'version',
47
47
  :'name' => :'name',
48
48
  :'namespace' => :'namespace'
@@ -52,11 +52,11 @@ module PulpAnsibleClient
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
- :'pulp_href' => :'String',
55
+ :'pulp_last_updated' => :'DateTime',
56
56
  :'artifact' => :'String',
57
- :'prn' => :'String',
57
+ :'pulp_href' => :'String',
58
58
  :'pulp_created' => :'DateTime',
59
- :'pulp_last_updated' => :'DateTime',
59
+ :'prn' => :'String',
60
60
  :'version' => :'String',
61
61
  :'name' => :'String',
62
62
  :'namespace' => :'String'
@@ -84,24 +84,24 @@ module PulpAnsibleClient
84
84
  h[k.to_sym] = v
85
85
  }
86
86
 
87
- if attributes.key?(:'pulp_href')
88
- self.pulp_href = attributes[:'pulp_href']
87
+ if attributes.key?(:'pulp_last_updated')
88
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
89
89
  end
90
90
 
91
91
  if attributes.key?(:'artifact')
92
92
  self.artifact = attributes[:'artifact']
93
93
  end
94
94
 
95
- if attributes.key?(:'prn')
96
- self.prn = attributes[:'prn']
95
+ if attributes.key?(:'pulp_href')
96
+ self.pulp_href = attributes[:'pulp_href']
97
97
  end
98
98
 
99
99
  if attributes.key?(:'pulp_created')
100
100
  self.pulp_created = attributes[:'pulp_created']
101
101
  end
102
102
 
103
- if attributes.key?(:'pulp_last_updated')
104
- self.pulp_last_updated = attributes[:'pulp_last_updated']
103
+ if attributes.key?(:'prn')
104
+ self.prn = attributes[:'prn']
105
105
  end
106
106
 
107
107
  if attributes.key?(:'version')
@@ -155,11 +155,11 @@ module PulpAnsibleClient
155
155
  def ==(o)
156
156
  return true if self.equal?(o)
157
157
  self.class == o.class &&
158
- pulp_href == o.pulp_href &&
158
+ pulp_last_updated == o.pulp_last_updated &&
159
159
  artifact == o.artifact &&
160
- prn == o.prn &&
160
+ pulp_href == o.pulp_href &&
161
161
  pulp_created == o.pulp_created &&
162
- pulp_last_updated == o.pulp_last_updated &&
162
+ prn == o.prn &&
163
163
  version == o.version &&
164
164
  name == o.name &&
165
165
  namespace == o.namespace
@@ -174,7 +174,7 @@ module PulpAnsibleClient
174
174
  # Calculates hash code according to all attributes.
175
175
  # @return [Integer] Hash code
176
176
  def hash
177
- [pulp_href, artifact, prn, pulp_created, pulp_last_updated, version, name, namespace].hash
177
+ [pulp_last_updated, artifact, pulp_href, pulp_created, prn, version, name, namespace].hash
178
178
  end
179
179
 
180
180
  # Builds the object from hash
@@ -21,6 +21,11 @@ module PulpAnsibleClient
21
21
  # An optional content-guard.
22
22
  attr_accessor :content_guard
23
23
 
24
+ # Whether this distribution should be shown in the content app.
25
+ attr_accessor :hidden
26
+
27
+ attr_accessor :pulp_labels
28
+
24
29
  # A unique name. Ex, `rawhide` and `stable`.
25
30
  attr_accessor :name
26
31
 
@@ -30,17 +35,16 @@ module PulpAnsibleClient
30
35
  # RepositoryVersion to be served
31
36
  attr_accessor :repository_version
32
37
 
33
- attr_accessor :pulp_labels
34
-
35
38
  # Attribute mapping from ruby-style variable name to JSON key.
36
39
  def self.attribute_map
37
40
  {
38
41
  :'base_path' => :'base_path',
39
42
  :'content_guard' => :'content_guard',
43
+ :'hidden' => :'hidden',
44
+ :'pulp_labels' => :'pulp_labels',
40
45
  :'name' => :'name',
41
46
  :'repository' => :'repository',
42
- :'repository_version' => :'repository_version',
43
- :'pulp_labels' => :'pulp_labels'
47
+ :'repository_version' => :'repository_version'
44
48
  }
45
49
  end
46
50
 
@@ -49,10 +53,11 @@ module PulpAnsibleClient
49
53
  {
50
54
  :'base_path' => :'String',
51
55
  :'content_guard' => :'String',
56
+ :'hidden' => :'Boolean',
57
+ :'pulp_labels' => :'Hash<String, String>',
52
58
  :'name' => :'String',
53
59
  :'repository' => :'String',
54
- :'repository_version' => :'String',
55
- :'pulp_labels' => :'Hash<String, String>'
60
+ :'repository_version' => :'String'
56
61
  }
57
62
  end
58
63
 
@@ -61,7 +66,7 @@ module PulpAnsibleClient
61
66
  Set.new([
62
67
  :'content_guard',
63
68
  :'repository',
64
- :'repository_version',
69
+ :'repository_version'
65
70
  ])
66
71
  end
67
72
 
@@ -88,6 +93,18 @@ module PulpAnsibleClient
88
93
  self.content_guard = attributes[:'content_guard']
89
94
  end
90
95
 
96
+ if attributes.key?(:'hidden')
97
+ self.hidden = attributes[:'hidden']
98
+ else
99
+ self.hidden = false
100
+ end
101
+
102
+ if attributes.key?(:'pulp_labels')
103
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
+ self.pulp_labels = value
105
+ end
106
+ end
107
+
91
108
  if attributes.key?(:'name')
92
109
  self.name = attributes[:'name']
93
110
  end
@@ -99,12 +116,6 @@ module PulpAnsibleClient
99
116
  if attributes.key?(:'repository_version')
100
117
  self.repository_version = attributes[:'repository_version']
101
118
  end
102
-
103
- if attributes.key?(:'pulp_labels')
104
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
105
- self.pulp_labels = value
106
- end
107
- end
108
119
  end
109
120
 
110
121
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -157,10 +168,11 @@ module PulpAnsibleClient
157
168
  self.class == o.class &&
158
169
  base_path == o.base_path &&
159
170
  content_guard == o.content_guard &&
171
+ hidden == o.hidden &&
172
+ pulp_labels == o.pulp_labels &&
160
173
  name == o.name &&
161
174
  repository == o.repository &&
162
- repository_version == o.repository_version &&
163
- pulp_labels == o.pulp_labels
175
+ repository_version == o.repository_version
164
176
  end
165
177
 
166
178
  # @see the `==` method
@@ -172,7 +184,7 @@ module PulpAnsibleClient
172
184
  # Calculates hash code according to all attributes.
173
185
  # @return [Integer] Hash code
174
186
  def hash
175
- [base_path, content_guard, name, repository, repository_version, pulp_labels].hash
187
+ [base_path, content_guard, hidden, pulp_labels, name, repository, repository_version].hash
176
188
  end
177
189
 
178
190
  # Builds the object from hash