pulp_ansible_client 0.20.0 → 0.20.1

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