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