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