pulp_ansible_client 0.25.0 → 0.26.0

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