pulp_ansible_client 0.28.5 → 0.28.7

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