pulp_ansible_client 0.20.8 → 0.20.9

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