pulp_ansible_client 0.22.7 → 0.22.8

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