pulp_ansible_client 0.22.5 → 0.22.7

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