pulp_ansible_client 0.21.4 → 0.21.6

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