pulp_ansible_client 0.22.2 → 0.22.3

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