pulp_ansible_client 0.22.7 → 0.22.9

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