pulp_ansible_client 0.27.1 → 0.28.0

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 +4 -4
  3. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +2 -0
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
  5. data/docs/AnsibleCollectionRemoteResponse.md +1 -1
  6. data/docs/AnsibleCollectionVersionResponse.md +12 -10
  7. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
  8. data/docs/AnsibleGitRemote.md +26 -26
  9. data/docs/AnsibleGitRemoteResponse.md +27 -27
  10. data/docs/AnsibleRole.md +2 -2
  11. data/docs/AnsibleRoleRemoteResponse.md +1 -1
  12. data/docs/AnsibleRoleResponse.md +8 -6
  13. data/docs/CollectionMetadataResponse.md +4 -4
  14. data/docs/CollectionSummaryResponse.md +2 -2
  15. data/docs/CollectionVersionListResponse.md +1 -1
  16. data/docs/CollectionVersionResponse.md +1 -1
  17. data/docs/ContentCollectionVersionsApi.md +6 -6
  18. data/docs/PatchedansibleGitRemote.md +26 -26
  19. data/docs/RemotesGitApi.md +2 -2
  20. data/docs/RepositoryVersionResponse.md +3 -1
  21. data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
  22. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
  23. data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +10 -1
  24. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +0 -15
  25. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +0 -15
  26. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +0 -33
  27. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +0 -30
  28. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +39 -45
  29. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +10 -1
  30. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +209 -224
  31. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +140 -155
  32. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  33. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +0 -15
  34. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +0 -15
  35. data/lib/pulp_ansible_client/models/ansible_role_response.rb +39 -30
  36. data/lib/pulp_ansible_client/models/collection_summary_response.rb +0 -15
  37. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +0 -15
  38. data/lib/pulp_ansible_client/models/collection_version_response.rb +0 -15
  39. data/lib/pulp_ansible_client/models/paginated_collection_response_list_links.rb +0 -4
  40. data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +0 -2
  41. data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +0 -2
  42. data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +0 -2
  43. data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +0 -2
  44. data/lib/pulp_ansible_client/models/paginatedansible_ansible_collection_deprecated_response_list.rb +0 -2
  45. data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +0 -2
  46. data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +0 -2
  47. data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +0 -2
  48. data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +0 -2
  49. data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +0 -2
  50. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +0 -2
  51. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +0 -2
  52. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +0 -2
  53. data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +0 -2
  54. data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +0 -2
  55. data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +0 -2
  56. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +0 -15
  57. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +0 -33
  58. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +197 -212
  59. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +0 -15
  60. data/lib/pulp_ansible_client/models/repository.rb +0 -15
  61. data/lib/pulp_ansible_client/models/repository_response.rb +0 -15
  62. data/lib/pulp_ansible_client/models/repository_version_response.rb +13 -4
  63. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +0 -15
  64. data/lib/pulp_ansible_client/version.rb +1 -1
  65. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  66. data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +6 -0
  67. data/spec/models/ansible_collection_version_response_spec.rb +11 -5
  68. data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
  69. data/spec/models/ansible_git_remote_response_spec.rb +20 -20
  70. data/spec/models/ansible_git_remote_spec.rb +19 -19
  71. data/spec/models/ansible_role_response_spec.rb +11 -5
  72. data/spec/models/ansible_role_spec.rb +2 -2
  73. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  74. data/spec/models/repository_version_response_spec.rb +6 -0
  75. metadata +122 -122
@@ -16,63 +16,63 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Git Collection Remotes.
18
18
  class AnsibleGitRemoteResponse
19
- # Timestamp of the most recent update of the remote.
20
- attr_accessor :pulp_last_updated
21
-
22
- # Total number of simultaneous connections. If not set then the default value will be used.
23
- attr_accessor :download_concurrency
24
-
25
- # Limits requests per second for each concurrent downloader
26
- attr_accessor :rate_limit
27
-
28
- # The URL of an external content source.
29
- attr_accessor :url
19
+ # The Pulp Resource Name (PRN).
20
+ attr_accessor :prn
30
21
 
31
22
  # If True, TLS peer validation must be performed.
32
23
  attr_accessor :tls_validation
33
24
 
34
- # Timestamp of creation.
35
- attr_accessor :pulp_created
25
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
26
+ attr_accessor :total_timeout
27
+
28
+ # Total number of simultaneous connections. If not set then the default value will be used.
29
+ attr_accessor :download_concurrency
30
+
31
+ # The proxy URL. Format: scheme://host:port
32
+ attr_accessor :proxy_url
36
33
 
37
34
  # A PEM encoded client certificate used for authentication.
38
35
  attr_accessor :client_cert
39
36
 
40
- attr_accessor :pulp_href
41
-
42
37
  # 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.
43
38
  attr_accessor :sock_connect_timeout
44
39
 
45
- # A unique name for this remote.
46
- attr_accessor :name
47
-
48
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
49
- attr_accessor :connect_timeout
40
+ # Timestamp of creation.
41
+ attr_accessor :pulp_created
50
42
 
51
43
  # List of hidden (write only) fields
52
44
  attr_accessor :hidden_fields
53
45
 
54
- attr_accessor :pulp_labels
55
-
56
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
57
- attr_accessor :ca_cert
58
-
59
- # The Pulp Resource Name (PRN).
60
- attr_accessor :prn
61
-
62
46
  # Headers for aiohttp.Clientsession
63
47
  attr_accessor :headers
64
48
 
65
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
66
- attr_accessor :total_timeout
49
+ # Timestamp of the most recent update of the remote.
50
+ attr_accessor :pulp_last_updated
67
51
 
68
52
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
69
53
  attr_accessor :max_retries
70
54
 
55
+ attr_accessor :pulp_href
56
+
57
+ # Limits requests per second for each concurrent downloader
58
+ attr_accessor :rate_limit
59
+
60
+ attr_accessor :pulp_labels
61
+
62
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
63
+ attr_accessor :connect_timeout
64
+
71
65
  # 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.
72
66
  attr_accessor :sock_read_timeout
73
67
 
74
- # The proxy URL. Format: scheme://host:port
75
- attr_accessor :proxy_url
68
+ # A unique name for this remote.
69
+ attr_accessor :name
70
+
71
+ # The URL of an external content source.
72
+ attr_accessor :url
73
+
74
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
75
+ attr_accessor :ca_cert
76
76
 
77
77
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
78
78
  attr_accessor :metadata_only
@@ -83,26 +83,26 @@ module PulpAnsibleClient
83
83
  # Attribute mapping from ruby-style variable name to JSON key.
84
84
  def self.attribute_map
85
85
  {
86
- :'pulp_last_updated' => :'pulp_last_updated',
87
- :'download_concurrency' => :'download_concurrency',
88
- :'rate_limit' => :'rate_limit',
89
- :'url' => :'url',
86
+ :'prn' => :'prn',
90
87
  :'tls_validation' => :'tls_validation',
91
- :'pulp_created' => :'pulp_created',
88
+ :'total_timeout' => :'total_timeout',
89
+ :'download_concurrency' => :'download_concurrency',
90
+ :'proxy_url' => :'proxy_url',
92
91
  :'client_cert' => :'client_cert',
93
- :'pulp_href' => :'pulp_href',
94
92
  :'sock_connect_timeout' => :'sock_connect_timeout',
95
- :'name' => :'name',
96
- :'connect_timeout' => :'connect_timeout',
93
+ :'pulp_created' => :'pulp_created',
97
94
  :'hidden_fields' => :'hidden_fields',
98
- :'pulp_labels' => :'pulp_labels',
99
- :'ca_cert' => :'ca_cert',
100
- :'prn' => :'prn',
101
95
  :'headers' => :'headers',
102
- :'total_timeout' => :'total_timeout',
96
+ :'pulp_last_updated' => :'pulp_last_updated',
103
97
  :'max_retries' => :'max_retries',
98
+ :'pulp_href' => :'pulp_href',
99
+ :'rate_limit' => :'rate_limit',
100
+ :'pulp_labels' => :'pulp_labels',
101
+ :'connect_timeout' => :'connect_timeout',
104
102
  :'sock_read_timeout' => :'sock_read_timeout',
105
- :'proxy_url' => :'proxy_url',
103
+ :'name' => :'name',
104
+ :'url' => :'url',
105
+ :'ca_cert' => :'ca_cert',
106
106
  :'metadata_only' => :'metadata_only',
107
107
  :'git_ref' => :'git_ref'
108
108
  }
@@ -116,26 +116,26 @@ module PulpAnsibleClient
116
116
  # Attribute type mapping.
117
117
  def self.openapi_types
118
118
  {
119
- :'pulp_last_updated' => :'Time',
120
- :'download_concurrency' => :'Integer',
121
- :'rate_limit' => :'Integer',
122
- :'url' => :'String',
119
+ :'prn' => :'String',
123
120
  :'tls_validation' => :'Boolean',
124
- :'pulp_created' => :'Time',
121
+ :'total_timeout' => :'Float',
122
+ :'download_concurrency' => :'Integer',
123
+ :'proxy_url' => :'String',
125
124
  :'client_cert' => :'String',
126
- :'pulp_href' => :'String',
127
125
  :'sock_connect_timeout' => :'Float',
128
- :'name' => :'String',
129
- :'connect_timeout' => :'Float',
126
+ :'pulp_created' => :'Time',
130
127
  :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
131
- :'pulp_labels' => :'Hash<String, String>',
132
- :'ca_cert' => :'String',
133
- :'prn' => :'String',
134
128
  :'headers' => :'Array<Object>',
135
- :'total_timeout' => :'Float',
129
+ :'pulp_last_updated' => :'Time',
136
130
  :'max_retries' => :'Integer',
131
+ :'pulp_href' => :'String',
132
+ :'rate_limit' => :'Integer',
133
+ :'pulp_labels' => :'Hash<String, String>',
134
+ :'connect_timeout' => :'Float',
137
135
  :'sock_read_timeout' => :'Float',
138
- :'proxy_url' => :'String',
136
+ :'name' => :'String',
137
+ :'url' => :'String',
138
+ :'ca_cert' => :'String',
139
139
  :'metadata_only' => :'Boolean',
140
140
  :'git_ref' => :'String'
141
141
  }
@@ -144,16 +144,16 @@ module PulpAnsibleClient
144
144
  # List of attributes with nullable: true
145
145
  def self.openapi_nullable
146
146
  Set.new([
147
+ :'total_timeout',
147
148
  :'download_concurrency',
148
- :'rate_limit',
149
+ :'proxy_url',
149
150
  :'client_cert',
150
151
  :'sock_connect_timeout',
151
- :'connect_timeout',
152
- :'ca_cert',
153
- :'total_timeout',
154
152
  :'max_retries',
153
+ :'rate_limit',
154
+ :'connect_timeout',
155
155
  :'sock_read_timeout',
156
- :'proxy_url',
156
+ :'ca_cert',
157
157
  ])
158
158
  end
159
159
 
@@ -172,52 +172,36 @@ module PulpAnsibleClient
172
172
  h[k.to_sym] = v
173
173
  }
174
174
 
175
- if attributes.key?(:'pulp_last_updated')
176
- self.pulp_last_updated = attributes[:'pulp_last_updated']
177
- end
178
-
179
- if attributes.key?(:'download_concurrency')
180
- self.download_concurrency = attributes[:'download_concurrency']
175
+ if attributes.key?(:'prn')
176
+ self.prn = attributes[:'prn']
181
177
  end
182
178
 
183
- if attributes.key?(:'rate_limit')
184
- self.rate_limit = attributes[:'rate_limit']
179
+ if attributes.key?(:'tls_validation')
180
+ self.tls_validation = attributes[:'tls_validation']
185
181
  end
186
182
 
187
- if attributes.key?(:'url')
188
- self.url = attributes[:'url']
189
- else
190
- self.url = nil
183
+ if attributes.key?(:'total_timeout')
184
+ self.total_timeout = attributes[:'total_timeout']
191
185
  end
192
186
 
193
- if attributes.key?(:'tls_validation')
194
- self.tls_validation = attributes[:'tls_validation']
187
+ if attributes.key?(:'download_concurrency')
188
+ self.download_concurrency = attributes[:'download_concurrency']
195
189
  end
196
190
 
197
- if attributes.key?(:'pulp_created')
198
- self.pulp_created = attributes[:'pulp_created']
191
+ if attributes.key?(:'proxy_url')
192
+ self.proxy_url = attributes[:'proxy_url']
199
193
  end
200
194
 
201
195
  if attributes.key?(:'client_cert')
202
196
  self.client_cert = attributes[:'client_cert']
203
197
  end
204
198
 
205
- if attributes.key?(:'pulp_href')
206
- self.pulp_href = attributes[:'pulp_href']
207
- end
208
-
209
199
  if attributes.key?(:'sock_connect_timeout')
210
200
  self.sock_connect_timeout = attributes[:'sock_connect_timeout']
211
201
  end
212
202
 
213
- if attributes.key?(:'name')
214
- self.name = attributes[:'name']
215
- else
216
- self.name = nil
217
- end
218
-
219
- if attributes.key?(:'connect_timeout')
220
- self.connect_timeout = attributes[:'connect_timeout']
203
+ if attributes.key?(:'pulp_created')
204
+ self.pulp_created = attributes[:'pulp_created']
221
205
  end
222
206
 
223
207
  if attributes.key?(:'hidden_fields')
@@ -226,40 +210,56 @@ module PulpAnsibleClient
226
210
  end
227
211
  end
228
212
 
229
- if attributes.key?(:'pulp_labels')
230
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
231
- self.pulp_labels = value
213
+ if attributes.key?(:'headers')
214
+ if (value = attributes[:'headers']).is_a?(Array)
215
+ self.headers = value
232
216
  end
233
217
  end
234
218
 
235
- if attributes.key?(:'ca_cert')
236
- self.ca_cert = attributes[:'ca_cert']
219
+ if attributes.key?(:'pulp_last_updated')
220
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
237
221
  end
238
222
 
239
- if attributes.key?(:'prn')
240
- self.prn = attributes[:'prn']
223
+ if attributes.key?(:'max_retries')
224
+ self.max_retries = attributes[:'max_retries']
241
225
  end
242
226
 
243
- if attributes.key?(:'headers')
244
- if (value = attributes[:'headers']).is_a?(Array)
245
- self.headers = value
246
- end
227
+ if attributes.key?(:'pulp_href')
228
+ self.pulp_href = attributes[:'pulp_href']
247
229
  end
248
230
 
249
- if attributes.key?(:'total_timeout')
250
- self.total_timeout = attributes[:'total_timeout']
231
+ if attributes.key?(:'rate_limit')
232
+ self.rate_limit = attributes[:'rate_limit']
251
233
  end
252
234
 
253
- if attributes.key?(:'max_retries')
254
- self.max_retries = attributes[:'max_retries']
235
+ if attributes.key?(:'pulp_labels')
236
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
237
+ self.pulp_labels = value
238
+ end
239
+ end
240
+
241
+ if attributes.key?(:'connect_timeout')
242
+ self.connect_timeout = attributes[:'connect_timeout']
255
243
  end
256
244
 
257
245
  if attributes.key?(:'sock_read_timeout')
258
246
  self.sock_read_timeout = attributes[:'sock_read_timeout']
259
247
  end
260
248
 
261
- if attributes.key?(:'proxy_url')
262
- self.proxy_url = attributes[:'proxy_url']
249
+ if attributes.key?(:'name')
250
+ self.name = attributes[:'name']
251
+ else
252
+ self.name = nil
253
+ end
254
+
255
+ if attributes.key?(:'url')
256
+ self.url = attributes[:'url']
257
+ else
258
+ self.url = nil
259
+ end
260
+
261
+ if attributes.key?(:'ca_cert')
262
+ self.ca_cert = attributes[:'ca_cert']
263
263
  end
264
264
 
265
265
  if attributes.key?(:'metadata_only')
@@ -276,34 +276,30 @@ module PulpAnsibleClient
276
276
  def list_invalid_properties
277
277
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
278
278
  invalid_properties = Array.new
279
- if !@download_concurrency.nil? && @download_concurrency < 1
280
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
281
- end
282
-
283
- if @url.nil?
284
- invalid_properties.push('invalid value for "url", url cannot be nil.')
279
+ if !@total_timeout.nil? && @total_timeout < 0.0
280
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
285
281
  end
286
282
 
287
283
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
288
284
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
289
285
  end
290
286
 
291
- if @name.nil?
292
- invalid_properties.push('invalid value for "name", name cannot be nil.')
293
- end
294
-
295
287
  if !@connect_timeout.nil? && @connect_timeout < 0.0
296
288
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
297
289
  end
298
290
 
299
- if !@total_timeout.nil? && @total_timeout < 0.0
300
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
301
- end
302
-
303
291
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
304
292
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
305
293
  end
306
294
 
295
+ if @name.nil?
296
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
297
+ end
298
+
299
+ if @url.nil?
300
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
301
+ end
302
+
307
303
  invalid_properties
308
304
  end
309
305
 
@@ -311,24 +307,23 @@ module PulpAnsibleClient
311
307
  # @return true if the model is valid
312
308
  def valid?
313
309
  warn '[DEPRECATED] the `valid?` method is obsolete'
314
- return false if !@download_concurrency.nil? && @download_concurrency < 1
315
- return false if @url.nil?
310
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
316
311
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
317
- return false if @name.nil?
318
312
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
319
- return false if !@total_timeout.nil? && @total_timeout < 0.0
320
313
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
314
+ return false if @name.nil?
315
+ return false if @url.nil?
321
316
  true
322
317
  end
323
318
 
324
319
  # Custom attribute writer method with validation
325
- # @param [Object] download_concurrency Value to be assigned
326
- def download_concurrency=(download_concurrency)
327
- if !download_concurrency.nil? && download_concurrency < 1
328
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
320
+ # @param [Object] total_timeout Value to be assigned
321
+ def total_timeout=(total_timeout)
322
+ if !total_timeout.nil? && total_timeout < 0.0
323
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
329
324
  end
330
325
 
331
- @download_concurrency = download_concurrency
326
+ @total_timeout = total_timeout
332
327
  end
333
328
 
334
329
  # Custom attribute writer method with validation
@@ -351,16 +346,6 @@ module PulpAnsibleClient
351
346
  @connect_timeout = connect_timeout
352
347
  end
353
348
 
354
- # Custom attribute writer method with validation
355
- # @param [Object] total_timeout Value to be assigned
356
- def total_timeout=(total_timeout)
357
- if !total_timeout.nil? && total_timeout < 0.0
358
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
359
- end
360
-
361
- @total_timeout = total_timeout
362
- end
363
-
364
349
  # Custom attribute writer method with validation
365
350
  # @param [Object] sock_read_timeout Value to be assigned
366
351
  def sock_read_timeout=(sock_read_timeout)
@@ -376,26 +361,26 @@ module PulpAnsibleClient
376
361
  def ==(o)
377
362
  return true if self.equal?(o)
378
363
  self.class == o.class &&
379
- pulp_last_updated == o.pulp_last_updated &&
380
- download_concurrency == o.download_concurrency &&
381
- rate_limit == o.rate_limit &&
382
- url == o.url &&
364
+ prn == o.prn &&
383
365
  tls_validation == o.tls_validation &&
384
- pulp_created == o.pulp_created &&
366
+ total_timeout == o.total_timeout &&
367
+ download_concurrency == o.download_concurrency &&
368
+ proxy_url == o.proxy_url &&
385
369
  client_cert == o.client_cert &&
386
- pulp_href == o.pulp_href &&
387
370
  sock_connect_timeout == o.sock_connect_timeout &&
388
- name == o.name &&
389
- connect_timeout == o.connect_timeout &&
371
+ pulp_created == o.pulp_created &&
390
372
  hidden_fields == o.hidden_fields &&
391
- pulp_labels == o.pulp_labels &&
392
- ca_cert == o.ca_cert &&
393
- prn == o.prn &&
394
373
  headers == o.headers &&
395
- total_timeout == o.total_timeout &&
374
+ pulp_last_updated == o.pulp_last_updated &&
396
375
  max_retries == o.max_retries &&
376
+ pulp_href == o.pulp_href &&
377
+ rate_limit == o.rate_limit &&
378
+ pulp_labels == o.pulp_labels &&
379
+ connect_timeout == o.connect_timeout &&
397
380
  sock_read_timeout == o.sock_read_timeout &&
398
- proxy_url == o.proxy_url &&
381
+ name == o.name &&
382
+ url == o.url &&
383
+ ca_cert == o.ca_cert &&
399
384
  metadata_only == o.metadata_only &&
400
385
  git_ref == o.git_ref
401
386
  end
@@ -409,7 +394,7 @@ module PulpAnsibleClient
409
394
  # Calculates hash code according to all attributes.
410
395
  # @return [Integer] Hash code
411
396
  def hash
412
- [pulp_last_updated, download_concurrency, rate_limit, url, tls_validation, pulp_created, client_cert, pulp_href, sock_connect_timeout, name, connect_timeout, hidden_fields, pulp_labels, ca_cert, prn, headers, total_timeout, max_retries, sock_read_timeout, proxy_url, metadata_only, git_ref].hash
397
+ [prn, tls_validation, total_timeout, download_concurrency, proxy_url, client_cert, sock_connect_timeout, pulp_created, hidden_fields, headers, pulp_last_updated, max_retries, pulp_href, rate_limit, pulp_labels, connect_timeout, sock_read_timeout, name, url, ca_cert, metadata_only, git_ref].hash
413
398
  end
414
399
 
415
400
  # Builds the object from hash
@@ -16,12 +16,12 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Role versions.
18
18
  class AnsibleRole
19
- # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
20
- attr_accessor :pulp_labels
21
-
22
19
  # A URI of a repository the new content unit should be associated with.
23
20
  attr_accessor :repository
24
21
 
22
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
23
+ attr_accessor :pulp_labels
24
+
25
25
  # Artifact file representing the physical content
26
26
  attr_accessor :artifact
27
27
 
@@ -34,8 +34,8 @@ module PulpAnsibleClient
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
- :'pulp_labels' => :'pulp_labels',
38
37
  :'repository' => :'repository',
38
+ :'pulp_labels' => :'pulp_labels',
39
39
  :'artifact' => :'artifact',
40
40
  :'version' => :'version',
41
41
  :'name' => :'name',
@@ -51,8 +51,8 @@ module PulpAnsibleClient
51
51
  # Attribute type mapping.
52
52
  def self.openapi_types
53
53
  {
54
- :'pulp_labels' => :'Hash<String, String>',
55
54
  :'repository' => :'String',
55
+ :'pulp_labels' => :'Hash<String, String>',
56
56
  :'artifact' => :'String',
57
57
  :'version' => :'String',
58
58
  :'name' => :'String',
@@ -81,16 +81,16 @@ module PulpAnsibleClient
81
81
  h[k.to_sym] = v
82
82
  }
83
83
 
84
+ if attributes.key?(:'repository')
85
+ self.repository = attributes[:'repository']
86
+ end
87
+
84
88
  if attributes.key?(:'pulp_labels')
85
89
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
86
90
  self.pulp_labels = value
87
91
  end
88
92
  end
89
93
 
90
- if attributes.key?(:'repository')
91
- self.repository = attributes[:'repository']
92
- end
93
-
94
94
  if attributes.key?(:'artifact')
95
95
  self.artifact = attributes[:'artifact']
96
96
  else
@@ -213,8 +213,8 @@ module PulpAnsibleClient
213
213
  def ==(o)
214
214
  return true if self.equal?(o)
215
215
  self.class == o.class &&
216
- pulp_labels == o.pulp_labels &&
217
216
  repository == o.repository &&
217
+ pulp_labels == o.pulp_labels &&
218
218
  artifact == o.artifact &&
219
219
  version == o.version &&
220
220
  name == o.name &&
@@ -230,7 +230,7 @@ module PulpAnsibleClient
230
230
  # Calculates hash code according to all attributes.
231
231
  # @return [Integer] Hash code
232
232
  def hash
233
- [pulp_labels, repository, artifact, version, name, namespace].hash
233
+ [repository, pulp_labels, artifact, version, name, namespace].hash
234
234
  end
235
235
 
236
236
  # Builds the object from hash
@@ -341,10 +341,6 @@ module PulpAnsibleClient
341
341
  invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
342
342
  end
343
343
 
344
- if !@download_concurrency.nil? && @download_concurrency < 1
345
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
346
- end
347
-
348
344
  if !@total_timeout.nil? && @total_timeout < 0.0
349
345
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
350
346
  end
@@ -380,7 +376,6 @@ module PulpAnsibleClient
380
376
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
381
377
  return false if !@username.nil? && @username.to_s.length < 1
382
378
  return false if !@password.nil? && @password.to_s.length < 1
383
- return false if !@download_concurrency.nil? && @download_concurrency < 1
384
379
  return false if !@total_timeout.nil? && @total_timeout < 0.0
385
380
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
386
381
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
@@ -496,16 +491,6 @@ module PulpAnsibleClient
496
491
  @password = password
497
492
  end
498
493
 
499
- # Custom attribute writer method with validation
500
- # @param [Object] download_concurrency Value to be assigned
501
- def download_concurrency=(download_concurrency)
502
- if !download_concurrency.nil? && download_concurrency < 1
503
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
504
- end
505
-
506
- @download_concurrency = download_concurrency
507
- end
508
-
509
494
  # Custom attribute writer method with validation
510
495
  # @param [Object] total_timeout Value to be assigned
511
496
  def total_timeout=(total_timeout)
@@ -297,10 +297,6 @@ module PulpAnsibleClient
297
297
  invalid_properties.push('invalid value for "url", url cannot be nil.')
298
298
  end
299
299
 
300
- if !@download_concurrency.nil? && @download_concurrency < 1
301
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
302
- end
303
-
304
300
  if !@total_timeout.nil? && @total_timeout < 0.0
305
301
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
306
302
  end
@@ -326,7 +322,6 @@ module PulpAnsibleClient
326
322
  warn '[DEPRECATED] the `valid?` method is obsolete'
327
323
  return false if @name.nil?
328
324
  return false if @url.nil?
329
- return false if !@download_concurrency.nil? && @download_concurrency < 1
330
325
  return false if !@total_timeout.nil? && @total_timeout < 0.0
331
326
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
332
327
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
@@ -334,16 +329,6 @@ module PulpAnsibleClient
334
329
  true
335
330
  end
336
331
 
337
- # Custom attribute writer method with validation
338
- # @param [Object] download_concurrency Value to be assigned
339
- def download_concurrency=(download_concurrency)
340
- if !download_concurrency.nil? && download_concurrency < 1
341
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
342
- end
343
-
344
- @download_concurrency = download_concurrency
345
- end
346
-
347
332
  # Custom attribute writer method with validation
348
333
  # @param [Object] total_timeout Value to be assigned
349
334
  def total_timeout=(total_timeout)