pulp_ansible_client 0.21.7 → 0.22.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 (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -15
  3. data/docs/{AnsibleCollection.md → AnsibleAnsibleCollectionDeprecated.md} +4 -2
  4. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +25 -0
  5. data/docs/AnsibleCollectionVersion.md +2 -2
  6. data/docs/AnsibleCollectionVersionResponse.md +10 -10
  7. data/docs/AnsibleCollectionsApi.md +60 -0
  8. data/docs/AnsibleGitRemote.md +25 -25
  9. data/docs/AnsibleGitRemoteResponse.md +22 -22
  10. data/docs/AnsibleRoleResponse.md +5 -5
  11. data/docs/CollectionImportDetailResponse.md +2 -2
  12. data/docs/CollectionMetadataResponse.md +2 -2
  13. data/docs/CollectionSummaryResponse.md +2 -2
  14. data/docs/CollectionVersionDocsResponse.md +1 -1
  15. data/docs/CollectionVersionResponse.md +2 -2
  16. data/docs/ContentCollectionDeprecationsApi.md +10 -10
  17. data/docs/ContentCollectionVersionsApi.md +2 -2
  18. data/docs/Copy.md +1 -1
  19. data/docs/{PaginatedGalaxyCollectionVersionResponseList.md → PaginatedansibleAnsibleCollectionDeprecatedResponseList.md} +5 -5
  20. data/docs/PatchedansibleGitRemote.md +25 -25
  21. data/docs/VersionsApi.md +0 -55
  22. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
  23. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
  24. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
  25. data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
  26. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
  27. data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
  28. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  29. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +22 -22
  30. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +203 -203
  31. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +139 -139
  32. data/lib/pulp_ansible_client/models/ansible_role_response.rb +17 -17
  33. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  34. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
  35. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  36. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  37. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  38. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  39. data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +4 -4
  40. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +203 -203
  41. data/lib/pulp_ansible_client/version.rb +1 -1
  42. data/lib/pulp_ansible_client.rb +3 -9
  43. data/spec/api/ansible_collections_api_spec.rb +14 -0
  44. data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
  45. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  46. data/spec/api/versions_api_spec.rb +0 -14
  47. data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
  48. data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
  49. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  50. data/spec/models/ansible_collection_version_spec.rb +3 -3
  51. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  52. data/spec/models/ansible_git_remote_spec.rb +19 -19
  53. data/spec/models/ansible_role_response_spec.rb +3 -3
  54. data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
  55. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  56. metadata +13 -37
  57. data/docs/ApiCollectionsApi.md +0 -112
  58. data/docs/GalaxyCollection.md +0 -23
  59. data/docs/GalaxyCollectionResponse.md +0 -31
  60. data/docs/GalaxyCollectionVersionResponse.md +0 -27
  61. data/docs/GalaxyDetailApi.md +0 -61
  62. data/docs/PaginatedGalaxyCollectionResponseList.md +0 -23
  63. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
  64. data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
  65. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
  66. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
  67. data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
  68. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
  69. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_version_response_list.rb +0 -247
  70. data/spec/api/api_collections_api_spec.rb +0 -61
  71. data/spec/api/galaxy_detail_api_spec.rb +0 -48
  72. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
  73. data/spec/models/galaxy_collection_response_spec.rb +0 -83
  74. data/spec/models/galaxy_collection_spec.rb +0 -59
  75. data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
@@ -15,19 +15,11 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # The proxy URL. Format: scheme://host:port
19
- attr_accessor :proxy_url
20
-
21
- # A unique name for this remote.
22
- attr_accessor :name
23
-
24
- # Timestamp of creation.
25
- attr_accessor :pulp_created
26
-
27
- # The URL of an external content source.
28
- attr_accessor :url
18
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
19
+ attr_accessor :max_retries
29
20
 
30
- attr_accessor :pulp_labels
21
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
22
+ attr_accessor :connect_timeout
31
23
 
32
24
  # 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.
33
25
  attr_accessor :sock_connect_timeout
@@ -37,39 +29,47 @@ module PulpAnsibleClient
37
29
  # If True, TLS peer validation must be performed.
38
30
  attr_accessor :tls_validation
39
31
 
40
- # Total number of simultaneous connections. If not set then the default value will be used.
41
- attr_accessor :download_concurrency
32
+ # The proxy URL. Format: scheme://host:port
33
+ attr_accessor :proxy_url
42
34
 
43
35
  # 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.
44
36
  attr_accessor :sock_read_timeout
45
37
 
46
- # A PEM encoded client certificate used for authentication.
47
- attr_accessor :client_cert
38
+ # A unique name for this remote.
39
+ attr_accessor :name
48
40
 
49
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
50
- attr_accessor :max_retries
41
+ # The URL of an external content source.
42
+ attr_accessor :url
51
43
 
52
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
53
- attr_accessor :connect_timeout
44
+ # Limits requests per second for each concurrent downloader
45
+ attr_accessor :rate_limit
54
46
 
55
- # Timestamp of the most recent update of the remote.
56
- attr_accessor :pulp_last_updated
47
+ # A PEM encoded client certificate used for authentication.
48
+ attr_accessor :client_cert
57
49
 
58
50
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
59
51
  attr_accessor :ca_cert
60
52
 
61
- # Limits requests per second for each concurrent downloader
62
- attr_accessor :rate_limit
63
-
64
- # List of hidden (write only) fields
65
- attr_accessor :hidden_fields
66
-
67
53
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
68
54
  attr_accessor :total_timeout
69
55
 
56
+ # Timestamp of creation.
57
+ attr_accessor :pulp_created
58
+
59
+ # Total number of simultaneous connections. If not set then the default value will be used.
60
+ attr_accessor :download_concurrency
61
+
62
+ attr_accessor :pulp_labels
63
+
70
64
  # Headers for aiohttp.Clientsession
71
65
  attr_accessor :headers
72
66
 
67
+ # List of hidden (write only) fields
68
+ attr_accessor :hidden_fields
69
+
70
+ # Timestamp of the most recent update of the remote.
71
+ attr_accessor :pulp_last_updated
72
+
73
73
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
74
74
  attr_accessor :metadata_only
75
75
 
@@ -79,25 +79,25 @@ module PulpAnsibleClient
79
79
  # Attribute mapping from ruby-style variable name to JSON key.
80
80
  def self.attribute_map
81
81
  {
82
- :'proxy_url' => :'proxy_url',
83
- :'name' => :'name',
84
- :'pulp_created' => :'pulp_created',
85
- :'url' => :'url',
86
- :'pulp_labels' => :'pulp_labels',
82
+ :'max_retries' => :'max_retries',
83
+ :'connect_timeout' => :'connect_timeout',
87
84
  :'sock_connect_timeout' => :'sock_connect_timeout',
88
85
  :'pulp_href' => :'pulp_href',
89
86
  :'tls_validation' => :'tls_validation',
90
- :'download_concurrency' => :'download_concurrency',
87
+ :'proxy_url' => :'proxy_url',
91
88
  :'sock_read_timeout' => :'sock_read_timeout',
89
+ :'name' => :'name',
90
+ :'url' => :'url',
91
+ :'rate_limit' => :'rate_limit',
92
92
  :'client_cert' => :'client_cert',
93
- :'max_retries' => :'max_retries',
94
- :'connect_timeout' => :'connect_timeout',
95
- :'pulp_last_updated' => :'pulp_last_updated',
96
93
  :'ca_cert' => :'ca_cert',
97
- :'rate_limit' => :'rate_limit',
98
- :'hidden_fields' => :'hidden_fields',
99
94
  :'total_timeout' => :'total_timeout',
95
+ :'pulp_created' => :'pulp_created',
96
+ :'download_concurrency' => :'download_concurrency',
97
+ :'pulp_labels' => :'pulp_labels',
100
98
  :'headers' => :'headers',
99
+ :'hidden_fields' => :'hidden_fields',
100
+ :'pulp_last_updated' => :'pulp_last_updated',
101
101
  :'metadata_only' => :'metadata_only',
102
102
  :'git_ref' => :'git_ref'
103
103
  }
@@ -106,25 +106,25 @@ module PulpAnsibleClient
106
106
  # Attribute type mapping.
107
107
  def self.openapi_types
108
108
  {
109
- :'proxy_url' => :'String',
110
- :'name' => :'String',
111
- :'pulp_created' => :'DateTime',
112
- :'url' => :'String',
113
- :'pulp_labels' => :'Hash<String, String>',
109
+ :'max_retries' => :'Integer',
110
+ :'connect_timeout' => :'Float',
114
111
  :'sock_connect_timeout' => :'Float',
115
112
  :'pulp_href' => :'String',
116
113
  :'tls_validation' => :'Boolean',
117
- :'download_concurrency' => :'Integer',
114
+ :'proxy_url' => :'String',
118
115
  :'sock_read_timeout' => :'Float',
116
+ :'name' => :'String',
117
+ :'url' => :'String',
118
+ :'rate_limit' => :'Integer',
119
119
  :'client_cert' => :'String',
120
- :'max_retries' => :'Integer',
121
- :'connect_timeout' => :'Float',
122
- :'pulp_last_updated' => :'DateTime',
123
120
  :'ca_cert' => :'String',
124
- :'rate_limit' => :'Integer',
125
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
126
121
  :'total_timeout' => :'Float',
122
+ :'pulp_created' => :'DateTime',
123
+ :'download_concurrency' => :'Integer',
124
+ :'pulp_labels' => :'Hash<String, String>',
127
125
  :'headers' => :'Array<Object>',
126
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
127
+ :'pulp_last_updated' => :'DateTime',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -133,16 +133,16 @@ module PulpAnsibleClient
133
133
  # List of attributes with nullable: true
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
- :'proxy_url',
136
+ :'max_retries',
137
+ :'connect_timeout',
137
138
  :'sock_connect_timeout',
138
- :'download_concurrency',
139
+ :'proxy_url',
139
140
  :'sock_read_timeout',
141
+ :'rate_limit',
140
142
  :'client_cert',
141
- :'max_retries',
142
- :'connect_timeout',
143
143
  :'ca_cert',
144
- :'rate_limit',
145
144
  :'total_timeout',
145
+ :'download_concurrency',
146
146
  ])
147
147
  end
148
148
 
@@ -161,26 +161,12 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'proxy_url')
165
- self.proxy_url = attributes[:'proxy_url']
166
- end
167
-
168
- if attributes.key?(:'name')
169
- self.name = attributes[:'name']
170
- end
171
-
172
- if attributes.key?(:'pulp_created')
173
- self.pulp_created = attributes[:'pulp_created']
174
- end
175
-
176
- if attributes.key?(:'url')
177
- self.url = attributes[:'url']
164
+ if attributes.key?(:'max_retries')
165
+ self.max_retries = attributes[:'max_retries']
178
166
  end
179
167
 
180
- if attributes.key?(:'pulp_labels')
181
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
182
- self.pulp_labels = value
183
- end
168
+ if attributes.key?(:'connect_timeout')
169
+ self.connect_timeout = attributes[:'connect_timeout']
184
170
  end
185
171
 
186
172
  if attributes.key?(:'sock_connect_timeout')
@@ -195,46 +181,50 @@ module PulpAnsibleClient
195
181
  self.tls_validation = attributes[:'tls_validation']
196
182
  end
197
183
 
198
- if attributes.key?(:'download_concurrency')
199
- self.download_concurrency = attributes[:'download_concurrency']
184
+ if attributes.key?(:'proxy_url')
185
+ self.proxy_url = attributes[:'proxy_url']
200
186
  end
201
187
 
202
188
  if attributes.key?(:'sock_read_timeout')
203
189
  self.sock_read_timeout = attributes[:'sock_read_timeout']
204
190
  end
205
191
 
206
- if attributes.key?(:'client_cert')
207
- self.client_cert = attributes[:'client_cert']
192
+ if attributes.key?(:'name')
193
+ self.name = attributes[:'name']
208
194
  end
209
195
 
210
- if attributes.key?(:'max_retries')
211
- self.max_retries = attributes[:'max_retries']
196
+ if attributes.key?(:'url')
197
+ self.url = attributes[:'url']
212
198
  end
213
199
 
214
- if attributes.key?(:'connect_timeout')
215
- self.connect_timeout = attributes[:'connect_timeout']
200
+ if attributes.key?(:'rate_limit')
201
+ self.rate_limit = attributes[:'rate_limit']
216
202
  end
217
203
 
218
- if attributes.key?(:'pulp_last_updated')
219
- self.pulp_last_updated = attributes[:'pulp_last_updated']
204
+ if attributes.key?(:'client_cert')
205
+ self.client_cert = attributes[:'client_cert']
220
206
  end
221
207
 
222
208
  if attributes.key?(:'ca_cert')
223
209
  self.ca_cert = attributes[:'ca_cert']
224
210
  end
225
211
 
226
- if attributes.key?(:'rate_limit')
227
- self.rate_limit = attributes[:'rate_limit']
212
+ if attributes.key?(:'total_timeout')
213
+ self.total_timeout = attributes[:'total_timeout']
228
214
  end
229
215
 
230
- if attributes.key?(:'hidden_fields')
231
- if (value = attributes[:'hidden_fields']).is_a?(Array)
232
- self.hidden_fields = value
233
- end
216
+ if attributes.key?(:'pulp_created')
217
+ self.pulp_created = attributes[:'pulp_created']
234
218
  end
235
219
 
236
- if attributes.key?(:'total_timeout')
237
- self.total_timeout = attributes[:'total_timeout']
220
+ if attributes.key?(:'download_concurrency')
221
+ self.download_concurrency = attributes[:'download_concurrency']
222
+ end
223
+
224
+ if attributes.key?(:'pulp_labels')
225
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
226
+ self.pulp_labels = value
227
+ end
238
228
  end
239
229
 
240
230
  if attributes.key?(:'headers')
@@ -243,6 +233,16 @@ module PulpAnsibleClient
243
233
  end
244
234
  end
245
235
 
236
+ if attributes.key?(:'hidden_fields')
237
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
238
+ self.hidden_fields = value
239
+ end
240
+ end
241
+
242
+ if attributes.key?(:'pulp_last_updated')
243
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
244
+ end
245
+
246
246
  if attributes.key?(:'metadata_only')
247
247
  self.metadata_only = attributes[:'metadata_only']
248
248
  end
@@ -256,68 +256,68 @@ module PulpAnsibleClient
256
256
  # @return Array for valid properties with the reasons
257
257
  def list_invalid_properties
258
258
  invalid_properties = Array.new
259
- if @name.nil?
260
- invalid_properties.push('invalid value for "name", name cannot be nil.')
261
- end
262
-
263
- if @url.nil?
264
- invalid_properties.push('invalid value for "url", url cannot be nil.')
259
+ if !@connect_timeout.nil? && @connect_timeout < 0
260
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
265
261
  end
266
262
 
267
263
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
268
264
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
269
265
  end
270
266
 
271
- if !@download_concurrency.nil? && @download_concurrency < 1
272
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
273
- end
274
-
275
267
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0
276
268
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
277
269
  end
278
270
 
279
- if !@connect_timeout.nil? && @connect_timeout < 0
280
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
271
+ if @name.nil?
272
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
273
+ end
274
+
275
+ if @url.nil?
276
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
281
277
  end
282
278
 
283
279
  if !@total_timeout.nil? && @total_timeout < 0
284
280
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
285
281
  end
286
282
 
283
+ if !@download_concurrency.nil? && @download_concurrency < 1
284
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
285
+ end
286
+
287
287
  invalid_properties
288
288
  end
289
289
 
290
290
  # Check to see if the all the properties in the model are valid
291
291
  # @return true if the model is valid
292
292
  def valid?
293
- return false if @name.nil?
294
- return false if @url.nil?
293
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
295
294
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
296
- return false if !@download_concurrency.nil? && @download_concurrency < 1
297
295
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
298
- return false if !@connect_timeout.nil? && @connect_timeout < 0
296
+ return false if @name.nil?
297
+ return false if @url.nil?
299
298
  return false if !@total_timeout.nil? && @total_timeout < 0
299
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
300
300
  true
301
301
  end
302
302
 
303
303
  # Custom attribute writer method with validation
304
- # @param [Object] sock_connect_timeout Value to be assigned
305
- def sock_connect_timeout=(sock_connect_timeout)
306
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
307
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
304
+ # @param [Object] connect_timeout Value to be assigned
305
+ def connect_timeout=(connect_timeout)
306
+ if !connect_timeout.nil? && connect_timeout < 0
307
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
308
308
  end
309
309
 
310
- @sock_connect_timeout = sock_connect_timeout
310
+ @connect_timeout = connect_timeout
311
311
  end
312
312
 
313
313
  # Custom attribute writer method with validation
314
- # @param [Object] download_concurrency Value to be assigned
315
- def download_concurrency=(download_concurrency)
316
- if !download_concurrency.nil? && download_concurrency < 1
317
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
314
+ # @param [Object] sock_connect_timeout Value to be assigned
315
+ def sock_connect_timeout=(sock_connect_timeout)
316
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
317
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
318
318
  end
319
319
 
320
- @download_concurrency = download_concurrency
320
+ @sock_connect_timeout = sock_connect_timeout
321
321
  end
322
322
 
323
323
  # Custom attribute writer method with validation
@@ -330,16 +330,6 @@ module PulpAnsibleClient
330
330
  @sock_read_timeout = sock_read_timeout
331
331
  end
332
332
 
333
- # Custom attribute writer method with validation
334
- # @param [Object] connect_timeout Value to be assigned
335
- def connect_timeout=(connect_timeout)
336
- if !connect_timeout.nil? && connect_timeout < 0
337
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
338
- end
339
-
340
- @connect_timeout = connect_timeout
341
- end
342
-
343
333
  # Custom attribute writer method with validation
344
334
  # @param [Object] total_timeout Value to be assigned
345
335
  def total_timeout=(total_timeout)
@@ -350,30 +340,40 @@ module PulpAnsibleClient
350
340
  @total_timeout = total_timeout
351
341
  end
352
342
 
343
+ # Custom attribute writer method with validation
344
+ # @param [Object] download_concurrency Value to be assigned
345
+ def download_concurrency=(download_concurrency)
346
+ if !download_concurrency.nil? && download_concurrency < 1
347
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
348
+ end
349
+
350
+ @download_concurrency = download_concurrency
351
+ end
352
+
353
353
  # Checks equality by comparing each attribute.
354
354
  # @param [Object] Object to be compared
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
- proxy_url == o.proxy_url &&
359
- name == o.name &&
360
- pulp_created == o.pulp_created &&
361
- url == o.url &&
362
- pulp_labels == o.pulp_labels &&
358
+ max_retries == o.max_retries &&
359
+ connect_timeout == o.connect_timeout &&
363
360
  sock_connect_timeout == o.sock_connect_timeout &&
364
361
  pulp_href == o.pulp_href &&
365
362
  tls_validation == o.tls_validation &&
366
- download_concurrency == o.download_concurrency &&
363
+ proxy_url == o.proxy_url &&
367
364
  sock_read_timeout == o.sock_read_timeout &&
365
+ name == o.name &&
366
+ url == o.url &&
367
+ rate_limit == o.rate_limit &&
368
368
  client_cert == o.client_cert &&
369
- max_retries == o.max_retries &&
370
- connect_timeout == o.connect_timeout &&
371
- pulp_last_updated == o.pulp_last_updated &&
372
369
  ca_cert == o.ca_cert &&
373
- rate_limit == o.rate_limit &&
374
- hidden_fields == o.hidden_fields &&
375
370
  total_timeout == o.total_timeout &&
371
+ pulp_created == o.pulp_created &&
372
+ download_concurrency == o.download_concurrency &&
373
+ pulp_labels == o.pulp_labels &&
376
374
  headers == o.headers &&
375
+ hidden_fields == o.hidden_fields &&
376
+ pulp_last_updated == o.pulp_last_updated &&
377
377
  metadata_only == o.metadata_only &&
378
378
  git_ref == o.git_ref
379
379
  end
@@ -387,7 +387,7 @@ module PulpAnsibleClient
387
387
  # Calculates hash code according to all attributes.
388
388
  # @return [Integer] Hash code
389
389
  def hash
390
- [proxy_url, name, pulp_created, url, pulp_labels, sock_connect_timeout, pulp_href, tls_validation, download_concurrency, sock_read_timeout, client_cert, max_retries, connect_timeout, pulp_last_updated, ca_cert, rate_limit, hidden_fields, total_timeout, headers, metadata_only, git_ref].hash
390
+ [max_retries, connect_timeout, sock_connect_timeout, pulp_href, tls_validation, proxy_url, sock_read_timeout, name, url, rate_limit, client_cert, ca_cert, total_timeout, pulp_created, download_concurrency, pulp_labels, headers, hidden_fields, pulp_last_updated, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash
@@ -15,16 +15,16 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
- # Artifact file representing the physical content
19
- attr_accessor :artifact
20
-
21
18
  # Timestamp of creation.
22
19
  attr_accessor :pulp_created
23
20
 
21
+ attr_accessor :pulp_href
22
+
24
23
  # 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.
25
24
  attr_accessor :pulp_last_updated
26
25
 
27
- attr_accessor :pulp_href
26
+ # Artifact file representing the physical content
27
+ attr_accessor :artifact
28
28
 
29
29
  attr_accessor :version
30
30
 
@@ -35,10 +35,10 @@ module PulpAnsibleClient
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
37
37
  {
38
- :'artifact' => :'artifact',
39
38
  :'pulp_created' => :'pulp_created',
40
- :'pulp_last_updated' => :'pulp_last_updated',
41
39
  :'pulp_href' => :'pulp_href',
40
+ :'pulp_last_updated' => :'pulp_last_updated',
41
+ :'artifact' => :'artifact',
42
42
  :'version' => :'version',
43
43
  :'name' => :'name',
44
44
  :'namespace' => :'namespace'
@@ -48,10 +48,10 @@ module PulpAnsibleClient
48
48
  # Attribute type mapping.
49
49
  def self.openapi_types
50
50
  {
51
- :'artifact' => :'String',
52
51
  :'pulp_created' => :'DateTime',
53
- :'pulp_last_updated' => :'DateTime',
54
52
  :'pulp_href' => :'String',
53
+ :'pulp_last_updated' => :'DateTime',
54
+ :'artifact' => :'String',
55
55
  :'version' => :'String',
56
56
  :'name' => :'String',
57
57
  :'namespace' => :'String'
@@ -79,20 +79,20 @@ module PulpAnsibleClient
79
79
  h[k.to_sym] = v
80
80
  }
81
81
 
82
- if attributes.key?(:'artifact')
83
- self.artifact = attributes[:'artifact']
84
- end
85
-
86
82
  if attributes.key?(:'pulp_created')
87
83
  self.pulp_created = attributes[:'pulp_created']
88
84
  end
89
85
 
86
+ if attributes.key?(:'pulp_href')
87
+ self.pulp_href = attributes[:'pulp_href']
88
+ end
89
+
90
90
  if attributes.key?(:'pulp_last_updated')
91
91
  self.pulp_last_updated = attributes[:'pulp_last_updated']
92
92
  end
93
93
 
94
- if attributes.key?(:'pulp_href')
95
- self.pulp_href = attributes[:'pulp_href']
94
+ if attributes.key?(:'artifact')
95
+ self.artifact = attributes[:'artifact']
96
96
  end
97
97
 
98
98
  if attributes.key?(:'version')
@@ -146,10 +146,10 @@ module PulpAnsibleClient
146
146
  def ==(o)
147
147
  return true if self.equal?(o)
148
148
  self.class == o.class &&
149
- artifact == o.artifact &&
150
149
  pulp_created == o.pulp_created &&
151
- pulp_last_updated == o.pulp_last_updated &&
152
150
  pulp_href == o.pulp_href &&
151
+ pulp_last_updated == o.pulp_last_updated &&
152
+ artifact == o.artifact &&
153
153
  version == o.version &&
154
154
  name == o.name &&
155
155
  namespace == o.namespace
@@ -164,7 +164,7 @@ module PulpAnsibleClient
164
164
  # Calculates hash code according to all attributes.
165
165
  # @return [Integer] Hash code
166
166
  def hash
167
- [artifact, pulp_created, pulp_last_updated, pulp_href, version, name, namespace].hash
167
+ [pulp_created, pulp_href, pulp_last_updated, artifact, version, name, namespace].hash
168
168
  end
169
169
 
170
170
  # Builds the object from hash
@@ -54,8 +54,8 @@ module PulpAnsibleClient
54
54
  :'updated_at' => :'DateTime',
55
55
  :'started_at' => :'DateTime',
56
56
  :'finished_at' => :'DateTime',
57
- :'error' => :'Object',
58
- :'messages' => :'Object'
57
+ :'error' => :'AnyType',
58
+ :'messages' => :'AnyType'
59
59
  }
60
60
  end
61
61
 
@@ -55,8 +55,8 @@ module PulpAnsibleClient
55
55
  def self.openapi_types
56
56
  {
57
57
  :'authors' => :'Array<String>',
58
- :'contents' => :'Object',
59
- :'dependencies' => :'Object',
58
+ :'contents' => :'AnyType',
59
+ :'dependencies' => :'AnyType',
60
60
  :'description' => :'String',
61
61
  :'documentation' => :'String',
62
62
  :'homepage' => :'String',
@@ -68,8 +68,8 @@ module PulpAnsibleClient
68
68
  :'version' => :'String',
69
69
  :'requires_ansible' => :'String',
70
70
  :'pulp_created' => :'DateTime',
71
- :'contents' => :'Object',
72
- :'dependencies' => :'Object',
71
+ :'contents' => :'AnyType',
72
+ :'dependencies' => :'AnyType',
73
73
  :'description' => :'String',
74
74
  :'tags' => :'Array<AnsibleTagResponse>'
75
75
  }
@@ -27,7 +27,7 @@ module PulpAnsibleClient
27
27
  # Attribute type mapping.
28
28
  def self.openapi_types
29
29
  {
30
- :'docs_blob' => :'Object'
30
+ :'docs_blob' => :'AnyType'
31
31
  }
32
32
  end
33
33
 
@@ -97,8 +97,8 @@ module PulpAnsibleClient
97
97
  :'metadata' => :'CollectionMetadataResponse',
98
98
  :'git_url' => :'String',
99
99
  :'git_commit_sha' => :'String',
100
- :'manifest' => :'Object',
101
- :'files' => :'Object'
100
+ :'manifest' => :'AnyType',
101
+ :'files' => :'AnyType'
102
102
  }
103
103
  end
104
104
 
@@ -28,7 +28,7 @@ module PulpAnsibleClient
28
28
  # Attribute type mapping.
29
29
  def self.openapi_types
30
30
  {
31
- :'config' => :'Object'
31
+ :'config' => :'AnyType'
32
32
  }
33
33
  end
34
34
 
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- class PaginatedGalaxyCollectionResponseList
16
+ class PaginatedansibleAnsibleCollectionDeprecatedResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<GalaxyCollectionResponse>'
41
+ :'results' => :'Array<AnsibleAnsibleCollectionDeprecatedResponse>'
42
42
  }
43
43
  end
44
44
 
@@ -54,13 +54,13 @@ module PulpAnsibleClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::PaginatedGalaxyCollectionResponseList` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::PaginatedansibleAnsibleCollectionDeprecatedResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::PaginatedGalaxyCollectionResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::PaginatedansibleAnsibleCollectionDeprecatedResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }