pulp_ansible_client 0.18.3 → 0.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersion.md +5 -5
  4. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  5. data/docs/AnsibleGitRemote.md +25 -25
  6. data/docs/AnsibleGitRemoteResponse.md +28 -28
  7. data/docs/AnsibleRole.md +3 -3
  8. data/docs/AnsibleRoleResponse.md +4 -4
  9. data/docs/ContentCollectionVersionsApi.md +4 -4
  10. data/docs/PatchedansibleGitRemote.md +25 -25
  11. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  12. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  13. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
  14. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
  15. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  16. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +228 -228
  17. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +156 -156
  18. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  19. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  20. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  21. data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
  22. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  23. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +220 -220
  24. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  25. data/lib/pulp_ansible_client/version.rb +1 -1
  26. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  27. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  28. data/spec/models/ansible_collection_version_spec.rb +4 -4
  29. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  30. data/spec/models/ansible_git_remote_spec.rb +19 -19
  31. data/spec/models/ansible_role_response_spec.rb +2 -2
  32. data/spec/models/ansible_role_spec.rb +2 -2
  33. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  34. metadata +135 -135
@@ -15,60 +15,60 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # A unique name for this remote.
19
- attr_accessor :name
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
23
-
24
- # Timestamp of creation.
25
- attr_accessor :pulp_created
26
-
27
- attr_accessor :pulp_href
28
-
29
- # Limits requests per second for each concurrent downloader
30
- attr_accessor :rate_limit
31
-
32
18
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
33
19
  attr_accessor :total_timeout
34
20
 
35
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
36
- attr_accessor :ca_cert
21
+ # Limits requests per second for each concurrent downloader
22
+ attr_accessor :rate_limit
37
23
 
38
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
39
- attr_accessor :max_retries
24
+ # Timestamp of the most recent update of the remote.
25
+ attr_accessor :pulp_last_updated
40
26
 
41
- # If True, TLS peer validation must be performed.
42
- attr_accessor :tls_validation
27
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
28
+ attr_accessor :connect_timeout
43
29
 
44
- # The proxy URL. Format: scheme://host:port
45
- attr_accessor :proxy_url
30
+ # Headers for aiohttp.Clientsession
31
+ attr_accessor :headers
46
32
 
47
33
  # Total number of simultaneous connections. If not set then the default value will be used.
48
34
  attr_accessor :download_concurrency
49
35
 
50
- attr_accessor :pulp_labels
36
+ # Timestamp of creation.
37
+ attr_accessor :pulp_created
51
38
 
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
39
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
40
+ attr_accessor :ca_cert
41
+
42
+ # A unique name for this remote.
43
+ attr_accessor :name
44
+
45
+ attr_accessor :pulp_href
46
+
47
+ # The URL of an external content source.
48
+ attr_accessor :url
54
49
 
55
50
  # List of hidden (write only) fields
56
51
  attr_accessor :hidden_fields
57
52
 
58
- # Headers for aiohttp.Clientsession
59
- attr_accessor :headers
53
+ # 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.
54
+ attr_accessor :sock_read_timeout
60
55
 
61
56
  # A PEM encoded client certificate used for authentication.
62
57
  attr_accessor :client_cert
63
58
 
59
+ # If True, TLS peer validation must be performed.
60
+ attr_accessor :tls_validation
61
+
62
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
63
+ attr_accessor :max_retries
64
+
64
65
  # 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.
65
66
  attr_accessor :sock_connect_timeout
66
67
 
67
- # Timestamp of the most recent update of the remote.
68
- attr_accessor :pulp_last_updated
68
+ attr_accessor :pulp_labels
69
69
 
70
- # The URL of an external content source.
71
- attr_accessor :url
70
+ # The proxy URL. Format: scheme://host:port
71
+ attr_accessor :proxy_url
72
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
@@ -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
- :'name' => :'name',
83
- :'sock_read_timeout' => :'sock_read_timeout',
84
- :'pulp_created' => :'pulp_created',
85
- :'pulp_href' => :'pulp_href',
86
- :'rate_limit' => :'rate_limit',
87
82
  :'total_timeout' => :'total_timeout',
88
- :'ca_cert' => :'ca_cert',
89
- :'max_retries' => :'max_retries',
90
- :'tls_validation' => :'tls_validation',
91
- :'proxy_url' => :'proxy_url',
92
- :'download_concurrency' => :'download_concurrency',
93
- :'pulp_labels' => :'pulp_labels',
83
+ :'rate_limit' => :'rate_limit',
84
+ :'pulp_last_updated' => :'pulp_last_updated',
94
85
  :'connect_timeout' => :'connect_timeout',
95
- :'hidden_fields' => :'hidden_fields',
96
86
  :'headers' => :'headers',
87
+ :'download_concurrency' => :'download_concurrency',
88
+ :'pulp_created' => :'pulp_created',
89
+ :'ca_cert' => :'ca_cert',
90
+ :'name' => :'name',
91
+ :'pulp_href' => :'pulp_href',
92
+ :'url' => :'url',
93
+ :'hidden_fields' => :'hidden_fields',
94
+ :'sock_read_timeout' => :'sock_read_timeout',
97
95
  :'client_cert' => :'client_cert',
96
+ :'tls_validation' => :'tls_validation',
97
+ :'max_retries' => :'max_retries',
98
98
  :'sock_connect_timeout' => :'sock_connect_timeout',
99
- :'pulp_last_updated' => :'pulp_last_updated',
100
- :'url' => :'url',
99
+ :'pulp_labels' => :'pulp_labels',
100
+ :'proxy_url' => :'proxy_url',
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
- :'name' => :'String',
110
- :'sock_read_timeout' => :'Float',
111
- :'pulp_created' => :'DateTime',
112
- :'pulp_href' => :'String',
113
- :'rate_limit' => :'Integer',
114
109
  :'total_timeout' => :'Float',
115
- :'ca_cert' => :'String',
116
- :'max_retries' => :'Integer',
117
- :'tls_validation' => :'Boolean',
118
- :'proxy_url' => :'String',
119
- :'download_concurrency' => :'Integer',
120
- :'pulp_labels' => :'Hash<String, String>',
110
+ :'rate_limit' => :'Integer',
111
+ :'pulp_last_updated' => :'DateTime',
121
112
  :'connect_timeout' => :'Float',
122
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
123
113
  :'headers' => :'Array<Object>',
114
+ :'download_concurrency' => :'Integer',
115
+ :'pulp_created' => :'DateTime',
116
+ :'ca_cert' => :'String',
117
+ :'name' => :'String',
118
+ :'pulp_href' => :'String',
119
+ :'url' => :'String',
120
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
121
+ :'sock_read_timeout' => :'Float',
124
122
  :'client_cert' => :'String',
123
+ :'tls_validation' => :'Boolean',
124
+ :'max_retries' => :'Integer',
125
125
  :'sock_connect_timeout' => :'Float',
126
- :'pulp_last_updated' => :'DateTime',
127
- :'url' => :'String',
126
+ :'pulp_labels' => :'Hash<String, String>',
127
+ :'proxy_url' => :'String',
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
- :'sock_read_timeout',
137
- :'rate_limit',
138
136
  :'total_timeout',
139
- :'ca_cert',
140
- :'max_retries',
141
- :'proxy_url',
142
- :'download_concurrency',
137
+ :'rate_limit',
143
138
  :'connect_timeout',
139
+ :'download_concurrency',
140
+ :'ca_cert',
141
+ :'sock_read_timeout',
144
142
  :'client_cert',
143
+ :'max_retries',
145
144
  :'sock_connect_timeout',
145
+ :'proxy_url',
146
146
  ])
147
147
  end
148
148
 
@@ -161,58 +161,50 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'name')
165
- self.name = attributes[:'name']
166
- end
167
-
168
- if attributes.key?(:'sock_read_timeout')
169
- self.sock_read_timeout = attributes[:'sock_read_timeout']
170
- end
171
-
172
- if attributes.key?(:'pulp_created')
173
- self.pulp_created = attributes[:'pulp_created']
174
- end
175
-
176
- if attributes.key?(:'pulp_href')
177
- self.pulp_href = attributes[:'pulp_href']
164
+ if attributes.key?(:'total_timeout')
165
+ self.total_timeout = attributes[:'total_timeout']
178
166
  end
179
167
 
180
168
  if attributes.key?(:'rate_limit')
181
169
  self.rate_limit = attributes[:'rate_limit']
182
170
  end
183
171
 
184
- if attributes.key?(:'total_timeout')
185
- self.total_timeout = attributes[:'total_timeout']
172
+ if attributes.key?(:'pulp_last_updated')
173
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
186
174
  end
187
175
 
188
- if attributes.key?(:'ca_cert')
189
- self.ca_cert = attributes[:'ca_cert']
176
+ if attributes.key?(:'connect_timeout')
177
+ self.connect_timeout = attributes[:'connect_timeout']
190
178
  end
191
179
 
192
- if attributes.key?(:'max_retries')
193
- self.max_retries = attributes[:'max_retries']
180
+ if attributes.key?(:'headers')
181
+ if (value = attributes[:'headers']).is_a?(Array)
182
+ self.headers = value
183
+ end
194
184
  end
195
185
 
196
- if attributes.key?(:'tls_validation')
197
- self.tls_validation = attributes[:'tls_validation']
186
+ if attributes.key?(:'download_concurrency')
187
+ self.download_concurrency = attributes[:'download_concurrency']
198
188
  end
199
189
 
200
- if attributes.key?(:'proxy_url')
201
- self.proxy_url = attributes[:'proxy_url']
190
+ if attributes.key?(:'pulp_created')
191
+ self.pulp_created = attributes[:'pulp_created']
202
192
  end
203
193
 
204
- if attributes.key?(:'download_concurrency')
205
- self.download_concurrency = attributes[:'download_concurrency']
194
+ if attributes.key?(:'ca_cert')
195
+ self.ca_cert = attributes[:'ca_cert']
206
196
  end
207
197
 
208
- if attributes.key?(:'pulp_labels')
209
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
210
- self.pulp_labels = value
211
- end
198
+ if attributes.key?(:'name')
199
+ self.name = attributes[:'name']
212
200
  end
213
201
 
214
- if attributes.key?(:'connect_timeout')
215
- self.connect_timeout = attributes[:'connect_timeout']
202
+ if attributes.key?(:'pulp_href')
203
+ self.pulp_href = attributes[:'pulp_href']
204
+ end
205
+
206
+ if attributes.key?(:'url')
207
+ self.url = attributes[:'url']
216
208
  end
217
209
 
218
210
  if attributes.key?(:'hidden_fields')
@@ -221,26 +213,34 @@ module PulpAnsibleClient
221
213
  end
222
214
  end
223
215
 
224
- if attributes.key?(:'headers')
225
- if (value = attributes[:'headers']).is_a?(Array)
226
- self.headers = value
227
- end
216
+ if attributes.key?(:'sock_read_timeout')
217
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
228
218
  end
229
219
 
230
220
  if attributes.key?(:'client_cert')
231
221
  self.client_cert = attributes[:'client_cert']
232
222
  end
233
223
 
224
+ if attributes.key?(:'tls_validation')
225
+ self.tls_validation = attributes[:'tls_validation']
226
+ end
227
+
228
+ if attributes.key?(:'max_retries')
229
+ self.max_retries = attributes[:'max_retries']
230
+ end
231
+
234
232
  if attributes.key?(:'sock_connect_timeout')
235
233
  self.sock_connect_timeout = attributes[:'sock_connect_timeout']
236
234
  end
237
235
 
238
- if attributes.key?(:'pulp_last_updated')
239
- self.pulp_last_updated = attributes[:'pulp_last_updated']
236
+ if attributes.key?(:'pulp_labels')
237
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
238
+ self.pulp_labels = value
239
+ end
240
240
  end
241
241
 
242
- if attributes.key?(:'url')
243
- self.url = attributes[:'url']
242
+ if attributes.key?(:'proxy_url')
243
+ self.proxy_url = attributes[:'proxy_url']
244
244
  end
245
245
 
246
246
  if attributes.key?(:'metadata_only')
@@ -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.')
259
+ if !@total_timeout.nil? && @total_timeout < 0.0
260
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
261
261
  end
262
262
 
263
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
264
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
265
- end
266
-
267
- if !@total_timeout.nil? && @total_timeout < 0
268
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
263
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
264
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
269
265
  end
270
266
 
271
267
  if !@download_concurrency.nil? && @download_concurrency < 1
272
268
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
273
269
  end
274
270
 
275
- if !@connect_timeout.nil? && @connect_timeout < 0
276
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
277
- end
278
-
279
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
280
- invalid_properties.push('invalid value for "sock_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.')
281
273
  end
282
274
 
283
275
  if @url.nil?
284
276
  invalid_properties.push('invalid value for "url", url cannot be nil.')
285
277
  end
286
278
 
279
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
280
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
281
+ end
282
+
283
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
284
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
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 !@sock_read_timeout.nil? && @sock_read_timeout < 0
295
- return false if !@total_timeout.nil? && @total_timeout < 0
293
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
294
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
296
295
  return false if !@download_concurrency.nil? && @download_concurrency < 1
297
- return false if !@connect_timeout.nil? && @connect_timeout < 0
298
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
296
+ return false if @name.nil?
299
297
  return false if @url.nil?
298
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
299
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
300
300
  true
301
301
  end
302
302
 
303
303
  # Custom attribute writer method with validation
304
- # @param [Object] sock_read_timeout Value to be assigned
305
- def sock_read_timeout=(sock_read_timeout)
306
- if !sock_read_timeout.nil? && sock_read_timeout < 0
307
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
304
+ # @param [Object] total_timeout Value to be assigned
305
+ def total_timeout=(total_timeout)
306
+ if !total_timeout.nil? && total_timeout < 0.0
307
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
308
308
  end
309
309
 
310
- @sock_read_timeout = sock_read_timeout
310
+ @total_timeout = total_timeout
311
311
  end
312
312
 
313
313
  # Custom attribute writer method with validation
314
- # @param [Object] total_timeout Value to be assigned
315
- def total_timeout=(total_timeout)
316
- if !total_timeout.nil? && total_timeout < 0
317
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
314
+ # @param [Object] connect_timeout Value to be assigned
315
+ def connect_timeout=(connect_timeout)
316
+ if !connect_timeout.nil? && connect_timeout < 0.0
317
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
318
318
  end
319
319
 
320
- @total_timeout = total_timeout
320
+ @connect_timeout = connect_timeout
321
321
  end
322
322
 
323
323
  # Custom attribute writer method with validation
@@ -331,20 +331,20 @@ module PulpAnsibleClient
331
331
  end
332
332
 
333
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.'
334
+ # @param [Object] sock_read_timeout Value to be assigned
335
+ def sock_read_timeout=(sock_read_timeout)
336
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
337
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
338
338
  end
339
339
 
340
- @connect_timeout = connect_timeout
340
+ @sock_read_timeout = sock_read_timeout
341
341
  end
342
342
 
343
343
  # Custom attribute writer method with validation
344
344
  # @param [Object] sock_connect_timeout Value to be assigned
345
345
  def sock_connect_timeout=(sock_connect_timeout)
346
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
347
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
346
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
347
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
348
348
  end
349
349
 
350
350
  @sock_connect_timeout = sock_connect_timeout
@@ -355,25 +355,25 @@ module PulpAnsibleClient
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
- name == o.name &&
359
- sock_read_timeout == o.sock_read_timeout &&
360
- pulp_created == o.pulp_created &&
361
- pulp_href == o.pulp_href &&
362
- rate_limit == o.rate_limit &&
363
358
  total_timeout == o.total_timeout &&
364
- ca_cert == o.ca_cert &&
365
- max_retries == o.max_retries &&
366
- tls_validation == o.tls_validation &&
367
- proxy_url == o.proxy_url &&
368
- download_concurrency == o.download_concurrency &&
369
- pulp_labels == o.pulp_labels &&
359
+ rate_limit == o.rate_limit &&
360
+ pulp_last_updated == o.pulp_last_updated &&
370
361
  connect_timeout == o.connect_timeout &&
371
- hidden_fields == o.hidden_fields &&
372
362
  headers == o.headers &&
363
+ download_concurrency == o.download_concurrency &&
364
+ pulp_created == o.pulp_created &&
365
+ ca_cert == o.ca_cert &&
366
+ name == o.name &&
367
+ pulp_href == o.pulp_href &&
368
+ url == o.url &&
369
+ hidden_fields == o.hidden_fields &&
370
+ sock_read_timeout == o.sock_read_timeout &&
373
371
  client_cert == o.client_cert &&
372
+ tls_validation == o.tls_validation &&
373
+ max_retries == o.max_retries &&
374
374
  sock_connect_timeout == o.sock_connect_timeout &&
375
- pulp_last_updated == o.pulp_last_updated &&
376
- url == o.url &&
375
+ pulp_labels == o.pulp_labels &&
376
+ proxy_url == o.proxy_url &&
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
- [name, sock_read_timeout, pulp_created, pulp_href, rate_limit, total_timeout, ca_cert, max_retries, tls_validation, proxy_url, download_concurrency, pulp_labels, connect_timeout, hidden_fields, headers, client_cert, sock_connect_timeout, pulp_last_updated, url, metadata_only, git_ref].hash
390
+ [total_timeout, rate_limit, pulp_last_updated, connect_timeout, headers, download_concurrency, pulp_created, ca_cert, name, pulp_href, url, hidden_fields, sock_read_timeout, client_cert, tls_validation, max_retries, sock_connect_timeout, pulp_labels, proxy_url, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # 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
@@ -312,20 +312,20 @@ module PulpAnsibleClient
312
312
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
313
313
  end
314
314
 
315
- if !@total_timeout.nil? && @total_timeout < 0
316
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
315
+ if !@total_timeout.nil? && @total_timeout < 0.0
316
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
317
317
  end
318
318
 
319
- if !@connect_timeout.nil? && @connect_timeout < 0
320
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
319
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
320
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
321
321
  end
322
322
 
323
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
324
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
323
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
324
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
325
325
  end
326
326
 
327
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
328
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
327
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
328
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
329
329
  end
330
330
 
331
331
  invalid_properties
@@ -347,10 +347,10 @@ module PulpAnsibleClient
347
347
  return false if !@username.nil? && @username.to_s.length < 1
348
348
  return false if !@password.nil? && @password.to_s.length < 1
349
349
  return false if !@download_concurrency.nil? && @download_concurrency < 1
350
- return false if !@total_timeout.nil? && @total_timeout < 0
351
- return false if !@connect_timeout.nil? && @connect_timeout < 0
352
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
353
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
350
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
351
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
352
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
353
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
354
354
  true
355
355
  end
356
356
 
@@ -475,8 +475,8 @@ module PulpAnsibleClient
475
475
  # Custom attribute writer method with validation
476
476
  # @param [Object] total_timeout Value to be assigned
477
477
  def total_timeout=(total_timeout)
478
- if !total_timeout.nil? && total_timeout < 0
479
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
478
+ if !total_timeout.nil? && total_timeout < 0.0
479
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
480
480
  end
481
481
 
482
482
  @total_timeout = total_timeout
@@ -485,8 +485,8 @@ module PulpAnsibleClient
485
485
  # Custom attribute writer method with validation
486
486
  # @param [Object] connect_timeout Value to be assigned
487
487
  def connect_timeout=(connect_timeout)
488
- if !connect_timeout.nil? && connect_timeout < 0
489
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
488
+ if !connect_timeout.nil? && connect_timeout < 0.0
489
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
490
490
  end
491
491
 
492
492
  @connect_timeout = connect_timeout
@@ -495,8 +495,8 @@ module PulpAnsibleClient
495
495
  # Custom attribute writer method with validation
496
496
  # @param [Object] sock_connect_timeout Value to be assigned
497
497
  def sock_connect_timeout=(sock_connect_timeout)
498
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
499
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
498
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
499
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
500
500
  end
501
501
 
502
502
  @sock_connect_timeout = sock_connect_timeout
@@ -505,8 +505,8 @@ module PulpAnsibleClient
505
505
  # Custom attribute writer method with validation
506
506
  # @param [Object] sock_read_timeout Value to be assigned
507
507
  def sock_read_timeout=(sock_read_timeout)
508
- if !sock_read_timeout.nil? && sock_read_timeout < 0
509
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
508
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
509
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
510
510
  end
511
511
 
512
512
  @sock_read_timeout = sock_read_timeout