pulp_ansible_client 0.25.4 → 0.25.6

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 (34) 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/AnsibleCollectionVersionResponse.md +6 -6
  6. data/docs/AnsibleGitRemote.md +24 -24
  7. data/docs/AnsibleGitRemoteResponse.md +26 -26
  8. data/docs/AnsibleRole.md +2 -2
  9. data/docs/AnsibleRoleResponse.md +6 -6
  10. data/docs/ContentCollectionVersionsApi.md +6 -6
  11. data/docs/PatchedansibleAnsibleDistribution.md +5 -3
  12. data/docs/PatchedansibleGitRemote.md +24 -24
  13. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
  14. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +28 -16
  15. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +62 -20
  16. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +21 -21
  17. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +217 -217
  18. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +130 -130
  19. data/lib/pulp_ansible_client/models/ansible_role.rb +13 -13
  20. data/lib/pulp_ansible_client/models/ansible_role_response.rb +23 -23
  21. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +28 -16
  22. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +215 -215
  23. data/lib/pulp_ansible_client/version.rb +1 -1
  24. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  25. data/spec/models/ansible_ansible_distribution_response_spec.rb +28 -4
  26. data/spec/models/ansible_ansible_distribution_spec.rb +10 -4
  27. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  28. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  29. data/spec/models/ansible_git_remote_spec.rb +19 -19
  30. data/spec/models/ansible_role_response_spec.rb +3 -3
  31. data/spec/models/ansible_role_spec.rb +3 -3
  32. data/spec/models/patchedansible_ansible_distribution_spec.rb +10 -4
  33. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  34. metadata +124 -124
@@ -16,63 +16,63 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Git Collection Remotes.
18
18
  class AnsibleGitRemoteResponse
19
- # Headers for aiohttp.Clientsession
20
- attr_accessor :headers
19
+ attr_accessor :pulp_href
21
20
 
22
- # The Pulp Resource Name (PRN).
23
- attr_accessor :prn
21
+ # 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.
22
+ attr_accessor :sock_connect_timeout
24
23
 
25
- # Limits requests per second for each concurrent downloader
26
- attr_accessor :rate_limit
24
+ # A PEM encoded client certificate used for authentication.
25
+ attr_accessor :client_cert
27
26
 
28
- # List of hidden (write only) fields
29
- attr_accessor :hidden_fields
27
+ # Timestamp of the most recent update of the remote.
28
+ attr_accessor :pulp_last_updated
30
29
 
31
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
32
- attr_accessor :total_timeout
30
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
31
+ attr_accessor :max_retries
33
32
 
34
- # 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.
35
- attr_accessor :sock_connect_timeout
33
+ # If True, TLS peer validation must be performed.
34
+ attr_accessor :tls_validation
36
35
 
37
36
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
38
37
  attr_accessor :connect_timeout
39
38
 
40
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
41
- attr_accessor :ca_cert
39
+ # List of hidden (write only) fields
40
+ attr_accessor :hidden_fields
42
41
 
43
- # If True, TLS peer validation must be performed.
44
- attr_accessor :tls_validation
42
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
43
+ attr_accessor :total_timeout
45
44
 
46
- attr_accessor :pulp_labels
45
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
46
+ attr_accessor :ca_cert
47
47
 
48
- # 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.
49
- attr_accessor :sock_read_timeout
48
+ # Limits requests per second for each concurrent downloader
49
+ attr_accessor :rate_limit
50
50
 
51
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
52
- attr_accessor :max_retries
51
+ # The Pulp Resource Name (PRN).
52
+ attr_accessor :prn
53
53
 
54
54
  # Timestamp of creation.
55
55
  attr_accessor :pulp_created
56
56
 
57
- # A PEM encoded client certificate used for authentication.
58
- attr_accessor :client_cert
59
-
60
- # The proxy URL. Format: scheme://host:port
61
- attr_accessor :proxy_url
57
+ # 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.
58
+ attr_accessor :sock_read_timeout
62
59
 
63
60
  # A unique name for this remote.
64
61
  attr_accessor :name
65
62
 
66
- attr_accessor :pulp_href
67
-
68
63
  # Total number of simultaneous connections. If not set then the default value will be used.
69
64
  attr_accessor :download_concurrency
70
65
 
71
66
  # The URL of an external content source.
72
67
  attr_accessor :url
73
68
 
74
- # Timestamp of the most recent update of the remote.
75
- attr_accessor :pulp_last_updated
69
+ attr_accessor :pulp_labels
70
+
71
+ # Headers for aiohttp.Clientsession
72
+ attr_accessor :headers
73
+
74
+ # The proxy URL. Format: scheme://host:port
75
+ attr_accessor :proxy_url
76
76
 
77
77
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
78
78
  attr_accessor :metadata_only
@@ -83,26 +83,26 @@ module PulpAnsibleClient
83
83
  # Attribute mapping from ruby-style variable name to JSON key.
84
84
  def self.attribute_map
85
85
  {
86
- :'headers' => :'headers',
87
- :'prn' => :'prn',
88
- :'rate_limit' => :'rate_limit',
89
- :'hidden_fields' => :'hidden_fields',
90
- :'total_timeout' => :'total_timeout',
86
+ :'pulp_href' => :'pulp_href',
91
87
  :'sock_connect_timeout' => :'sock_connect_timeout',
88
+ :'client_cert' => :'client_cert',
89
+ :'pulp_last_updated' => :'pulp_last_updated',
90
+ :'max_retries' => :'max_retries',
91
+ :'tls_validation' => :'tls_validation',
92
92
  :'connect_timeout' => :'connect_timeout',
93
+ :'hidden_fields' => :'hidden_fields',
94
+ :'total_timeout' => :'total_timeout',
93
95
  :'ca_cert' => :'ca_cert',
94
- :'tls_validation' => :'tls_validation',
95
- :'pulp_labels' => :'pulp_labels',
96
- :'sock_read_timeout' => :'sock_read_timeout',
97
- :'max_retries' => :'max_retries',
96
+ :'rate_limit' => :'rate_limit',
97
+ :'prn' => :'prn',
98
98
  :'pulp_created' => :'pulp_created',
99
- :'client_cert' => :'client_cert',
100
- :'proxy_url' => :'proxy_url',
99
+ :'sock_read_timeout' => :'sock_read_timeout',
101
100
  :'name' => :'name',
102
- :'pulp_href' => :'pulp_href',
103
101
  :'download_concurrency' => :'download_concurrency',
104
102
  :'url' => :'url',
105
- :'pulp_last_updated' => :'pulp_last_updated',
103
+ :'pulp_labels' => :'pulp_labels',
104
+ :'headers' => :'headers',
105
+ :'proxy_url' => :'proxy_url',
106
106
  :'metadata_only' => :'metadata_only',
107
107
  :'git_ref' => :'git_ref'
108
108
  }
@@ -116,26 +116,26 @@ module PulpAnsibleClient
116
116
  # Attribute type mapping.
117
117
  def self.openapi_types
118
118
  {
119
- :'headers' => :'Array<Object>',
120
- :'prn' => :'String',
121
- :'rate_limit' => :'Integer',
122
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
123
- :'total_timeout' => :'Float',
119
+ :'pulp_href' => :'String',
124
120
  :'sock_connect_timeout' => :'Float',
121
+ :'client_cert' => :'String',
122
+ :'pulp_last_updated' => :'Time',
123
+ :'max_retries' => :'Integer',
124
+ :'tls_validation' => :'Boolean',
125
125
  :'connect_timeout' => :'Float',
126
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
127
+ :'total_timeout' => :'Float',
126
128
  :'ca_cert' => :'String',
127
- :'tls_validation' => :'Boolean',
128
- :'pulp_labels' => :'Hash<String, String>',
129
- :'sock_read_timeout' => :'Float',
130
- :'max_retries' => :'Integer',
129
+ :'rate_limit' => :'Integer',
130
+ :'prn' => :'String',
131
131
  :'pulp_created' => :'Time',
132
- :'client_cert' => :'String',
133
- :'proxy_url' => :'String',
132
+ :'sock_read_timeout' => :'Float',
134
133
  :'name' => :'String',
135
- :'pulp_href' => :'String',
136
134
  :'download_concurrency' => :'Integer',
137
135
  :'url' => :'String',
138
- :'pulp_last_updated' => :'Time',
136
+ :'pulp_labels' => :'Hash<String, String>',
137
+ :'headers' => :'Array<Object>',
138
+ :'proxy_url' => :'String',
139
139
  :'metadata_only' => :'Boolean',
140
140
  :'git_ref' => :'String'
141
141
  }
@@ -144,16 +144,16 @@ module PulpAnsibleClient
144
144
  # List of attributes with nullable: true
145
145
  def self.openapi_nullable
146
146
  Set.new([
147
- :'rate_limit',
148
- :'total_timeout',
149
147
  :'sock_connect_timeout',
148
+ :'client_cert',
149
+ :'max_retries',
150
150
  :'connect_timeout',
151
+ :'total_timeout',
151
152
  :'ca_cert',
153
+ :'rate_limit',
152
154
  :'sock_read_timeout',
153
- :'max_retries',
154
- :'client_cert',
155
- :'proxy_url',
156
155
  :'download_concurrency',
156
+ :'proxy_url',
157
157
  ])
158
158
  end
159
159
 
@@ -172,70 +172,62 @@ module PulpAnsibleClient
172
172
  h[k.to_sym] = v
173
173
  }
174
174
 
175
- if attributes.key?(:'headers')
176
- if (value = attributes[:'headers']).is_a?(Array)
177
- self.headers = value
178
- end
175
+ if attributes.key?(:'pulp_href')
176
+ self.pulp_href = attributes[:'pulp_href']
179
177
  end
180
178
 
181
- if attributes.key?(:'prn')
182
- self.prn = attributes[:'prn']
179
+ if attributes.key?(:'sock_connect_timeout')
180
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
183
181
  end
184
182
 
185
- if attributes.key?(:'rate_limit')
186
- self.rate_limit = attributes[:'rate_limit']
183
+ if attributes.key?(:'client_cert')
184
+ self.client_cert = attributes[:'client_cert']
187
185
  end
188
186
 
189
- if attributes.key?(:'hidden_fields')
190
- if (value = attributes[:'hidden_fields']).is_a?(Array)
191
- self.hidden_fields = value
192
- end
187
+ if attributes.key?(:'pulp_last_updated')
188
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
193
189
  end
194
190
 
195
- if attributes.key?(:'total_timeout')
196
- self.total_timeout = attributes[:'total_timeout']
191
+ if attributes.key?(:'max_retries')
192
+ self.max_retries = attributes[:'max_retries']
197
193
  end
198
194
 
199
- if attributes.key?(:'sock_connect_timeout')
200
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
195
+ if attributes.key?(:'tls_validation')
196
+ self.tls_validation = attributes[:'tls_validation']
201
197
  end
202
198
 
203
199
  if attributes.key?(:'connect_timeout')
204
200
  self.connect_timeout = attributes[:'connect_timeout']
205
201
  end
206
202
 
207
- if attributes.key?(:'ca_cert')
208
- self.ca_cert = attributes[:'ca_cert']
203
+ if attributes.key?(:'hidden_fields')
204
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
205
+ self.hidden_fields = value
206
+ end
209
207
  end
210
208
 
211
- if attributes.key?(:'tls_validation')
212
- self.tls_validation = attributes[:'tls_validation']
209
+ if attributes.key?(:'total_timeout')
210
+ self.total_timeout = attributes[:'total_timeout']
213
211
  end
214
212
 
215
- if attributes.key?(:'pulp_labels')
216
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
217
- self.pulp_labels = value
218
- end
213
+ if attributes.key?(:'ca_cert')
214
+ self.ca_cert = attributes[:'ca_cert']
219
215
  end
220
216
 
221
- if attributes.key?(:'sock_read_timeout')
222
- self.sock_read_timeout = attributes[:'sock_read_timeout']
217
+ if attributes.key?(:'rate_limit')
218
+ self.rate_limit = attributes[:'rate_limit']
223
219
  end
224
220
 
225
- if attributes.key?(:'max_retries')
226
- self.max_retries = attributes[:'max_retries']
221
+ if attributes.key?(:'prn')
222
+ self.prn = attributes[:'prn']
227
223
  end
228
224
 
229
225
  if attributes.key?(:'pulp_created')
230
226
  self.pulp_created = attributes[:'pulp_created']
231
227
  end
232
228
 
233
- if attributes.key?(:'client_cert')
234
- self.client_cert = attributes[:'client_cert']
235
- end
236
-
237
- if attributes.key?(:'proxy_url')
238
- self.proxy_url = attributes[:'proxy_url']
229
+ if attributes.key?(:'sock_read_timeout')
230
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
239
231
  end
240
232
 
241
233
  if attributes.key?(:'name')
@@ -244,10 +236,6 @@ module PulpAnsibleClient
244
236
  self.name = nil
245
237
  end
246
238
 
247
- if attributes.key?(:'pulp_href')
248
- self.pulp_href = attributes[:'pulp_href']
249
- end
250
-
251
239
  if attributes.key?(:'download_concurrency')
252
240
  self.download_concurrency = attributes[:'download_concurrency']
253
241
  end
@@ -258,8 +246,20 @@ module PulpAnsibleClient
258
246
  self.url = nil
259
247
  end
260
248
 
261
- if attributes.key?(:'pulp_last_updated')
262
- self.pulp_last_updated = attributes[:'pulp_last_updated']
249
+ if attributes.key?(:'pulp_labels')
250
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
251
+ self.pulp_labels = value
252
+ end
253
+ end
254
+
255
+ if attributes.key?(:'headers')
256
+ if (value = attributes[:'headers']).is_a?(Array)
257
+ self.headers = value
258
+ end
259
+ end
260
+
261
+ if attributes.key?(:'proxy_url')
262
+ self.proxy_url = attributes[:'proxy_url']
263
263
  end
264
264
 
265
265
  if attributes.key?(:'metadata_only')
@@ -276,10 +276,6 @@ module PulpAnsibleClient
276
276
  def list_invalid_properties
277
277
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
278
278
  invalid_properties = Array.new
279
- if !@total_timeout.nil? && @total_timeout < 0.0
280
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
281
- end
282
-
283
279
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
284
280
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
285
281
  end
@@ -288,6 +284,10 @@ module PulpAnsibleClient
288
284
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
289
285
  end
290
286
 
287
+ if !@total_timeout.nil? && @total_timeout < 0.0
288
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
289
+ end
290
+
291
291
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
292
292
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
293
293
  end
@@ -311,9 +311,9 @@ module PulpAnsibleClient
311
311
  # @return true if the model is valid
312
312
  def valid?
313
313
  warn '[DEPRECATED] the `valid?` method is obsolete'
314
- return false if !@total_timeout.nil? && @total_timeout < 0.0
315
314
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
316
315
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
316
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
317
317
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
318
318
  return false if @name.nil?
319
319
  return false if !@download_concurrency.nil? && @download_concurrency < 1
@@ -321,16 +321,6 @@ module PulpAnsibleClient
321
321
  true
322
322
  end
323
323
 
324
- # Custom attribute writer method with validation
325
- # @param [Object] total_timeout Value to be assigned
326
- def total_timeout=(total_timeout)
327
- if !total_timeout.nil? && total_timeout < 0.0
328
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
329
- end
330
-
331
- @total_timeout = total_timeout
332
- end
333
-
334
324
  # Custom attribute writer method with validation
335
325
  # @param [Object] sock_connect_timeout Value to be assigned
336
326
  def sock_connect_timeout=(sock_connect_timeout)
@@ -351,6 +341,16 @@ module PulpAnsibleClient
351
341
  @connect_timeout = connect_timeout
352
342
  end
353
343
 
344
+ # Custom attribute writer method with validation
345
+ # @param [Object] total_timeout Value to be assigned
346
+ def total_timeout=(total_timeout)
347
+ if !total_timeout.nil? && total_timeout < 0.0
348
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
349
+ end
350
+
351
+ @total_timeout = total_timeout
352
+ end
353
+
354
354
  # Custom attribute writer method with validation
355
355
  # @param [Object] sock_read_timeout Value to be assigned
356
356
  def sock_read_timeout=(sock_read_timeout)
@@ -376,26 +376,26 @@ module PulpAnsibleClient
376
376
  def ==(o)
377
377
  return true if self.equal?(o)
378
378
  self.class == o.class &&
379
- headers == o.headers &&
380
- prn == o.prn &&
381
- rate_limit == o.rate_limit &&
382
- hidden_fields == o.hidden_fields &&
383
- total_timeout == o.total_timeout &&
379
+ pulp_href == o.pulp_href &&
384
380
  sock_connect_timeout == o.sock_connect_timeout &&
381
+ client_cert == o.client_cert &&
382
+ pulp_last_updated == o.pulp_last_updated &&
383
+ max_retries == o.max_retries &&
384
+ tls_validation == o.tls_validation &&
385
385
  connect_timeout == o.connect_timeout &&
386
+ hidden_fields == o.hidden_fields &&
387
+ total_timeout == o.total_timeout &&
386
388
  ca_cert == o.ca_cert &&
387
- tls_validation == o.tls_validation &&
388
- pulp_labels == o.pulp_labels &&
389
- sock_read_timeout == o.sock_read_timeout &&
390
- max_retries == o.max_retries &&
389
+ rate_limit == o.rate_limit &&
390
+ prn == o.prn &&
391
391
  pulp_created == o.pulp_created &&
392
- client_cert == o.client_cert &&
393
- proxy_url == o.proxy_url &&
392
+ sock_read_timeout == o.sock_read_timeout &&
394
393
  name == o.name &&
395
- pulp_href == o.pulp_href &&
396
394
  download_concurrency == o.download_concurrency &&
397
395
  url == o.url &&
398
- pulp_last_updated == o.pulp_last_updated &&
396
+ pulp_labels == o.pulp_labels &&
397
+ headers == o.headers &&
398
+ proxy_url == o.proxy_url &&
399
399
  metadata_only == o.metadata_only &&
400
400
  git_ref == o.git_ref
401
401
  end
@@ -409,7 +409,7 @@ module PulpAnsibleClient
409
409
  # Calculates hash code according to all attributes.
410
410
  # @return [Integer] Hash code
411
411
  def hash
412
- [headers, prn, rate_limit, hidden_fields, total_timeout, sock_connect_timeout, connect_timeout, ca_cert, tls_validation, pulp_labels, sock_read_timeout, max_retries, pulp_created, client_cert, proxy_url, name, pulp_href, download_concurrency, url, pulp_last_updated, metadata_only, git_ref].hash
412
+ [pulp_href, sock_connect_timeout, client_cert, pulp_last_updated, max_retries, tls_validation, connect_timeout, hidden_fields, total_timeout, ca_cert, rate_limit, prn, pulp_created, sock_read_timeout, name, download_concurrency, url, pulp_labels, headers, proxy_url, metadata_only, git_ref].hash
413
413
  end
414
414
 
415
415
  # Builds the object from hash
@@ -16,15 +16,15 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Role versions.
18
18
  class AnsibleRole
19
- # Artifact file representing the physical content
20
- attr_accessor :artifact
21
-
22
19
  # A URI of a repository the new content unit should be associated with.
23
20
  attr_accessor :repository
24
21
 
25
22
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
26
23
  attr_accessor :pulp_labels
27
24
 
25
+ # Artifact file representing the physical content
26
+ attr_accessor :artifact
27
+
28
28
  attr_accessor :version
29
29
 
30
30
  attr_accessor :name
@@ -34,9 +34,9 @@ module PulpAnsibleClient
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
- :'artifact' => :'artifact',
38
37
  :'repository' => :'repository',
39
38
  :'pulp_labels' => :'pulp_labels',
39
+ :'artifact' => :'artifact',
40
40
  :'version' => :'version',
41
41
  :'name' => :'name',
42
42
  :'namespace' => :'namespace'
@@ -51,9 +51,9 @@ module PulpAnsibleClient
51
51
  # Attribute type mapping.
52
52
  def self.openapi_types
53
53
  {
54
- :'artifact' => :'String',
55
54
  :'repository' => :'String',
56
55
  :'pulp_labels' => :'Hash<String, String>',
56
+ :'artifact' => :'String',
57
57
  :'version' => :'String',
58
58
  :'name' => :'String',
59
59
  :'namespace' => :'String'
@@ -81,12 +81,6 @@ module PulpAnsibleClient
81
81
  h[k.to_sym] = v
82
82
  }
83
83
 
84
- if attributes.key?(:'artifact')
85
- self.artifact = attributes[:'artifact']
86
- else
87
- self.artifact = nil
88
- end
89
-
90
84
  if attributes.key?(:'repository')
91
85
  self.repository = attributes[:'repository']
92
86
  end
@@ -97,6 +91,12 @@ module PulpAnsibleClient
97
91
  end
98
92
  end
99
93
 
94
+ if attributes.key?(:'artifact')
95
+ self.artifact = attributes[:'artifact']
96
+ else
97
+ self.artifact = nil
98
+ end
99
+
100
100
  if attributes.key?(:'version')
101
101
  self.version = attributes[:'version']
102
102
  else
@@ -213,9 +213,9 @@ module PulpAnsibleClient
213
213
  def ==(o)
214
214
  return true if self.equal?(o)
215
215
  self.class == o.class &&
216
- artifact == o.artifact &&
217
216
  repository == o.repository &&
218
217
  pulp_labels == o.pulp_labels &&
218
+ artifact == o.artifact &&
219
219
  version == o.version &&
220
220
  name == o.name &&
221
221
  namespace == o.namespace
@@ -230,7 +230,7 @@ module PulpAnsibleClient
230
230
  # Calculates hash code according to all attributes.
231
231
  # @return [Integer] Hash code
232
232
  def hash
233
- [artifact, repository, pulp_labels, version, name, namespace].hash
233
+ [repository, pulp_labels, artifact, version, name, namespace].hash
234
234
  end
235
235
 
236
236
  # Builds the object from hash
@@ -16,8 +16,7 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Role versions.
18
18
  class AnsibleRoleResponse
19
- # Artifact file representing the physical content
20
- attr_accessor :artifact
19
+ attr_accessor :pulp_href
21
20
 
22
21
  # The Pulp Resource Name (PRN).
23
22
  attr_accessor :prn
@@ -25,13 +24,14 @@ module PulpAnsibleClient
25
24
  # Timestamp of creation.
26
25
  attr_accessor :pulp_created
27
26
 
28
- attr_accessor :pulp_href
27
+ # 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.
28
+ attr_accessor :pulp_last_updated
29
29
 
30
30
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
31
  attr_accessor :pulp_labels
32
32
 
33
- # 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.
34
- attr_accessor :pulp_last_updated
33
+ # Artifact file representing the physical content
34
+ attr_accessor :artifact
35
35
 
36
36
  attr_accessor :version
37
37
 
@@ -42,12 +42,12 @@ module PulpAnsibleClient
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
43
43
  def self.attribute_map
44
44
  {
45
- :'artifact' => :'artifact',
45
+ :'pulp_href' => :'pulp_href',
46
46
  :'prn' => :'prn',
47
47
  :'pulp_created' => :'pulp_created',
48
- :'pulp_href' => :'pulp_href',
49
- :'pulp_labels' => :'pulp_labels',
50
48
  :'pulp_last_updated' => :'pulp_last_updated',
49
+ :'pulp_labels' => :'pulp_labels',
50
+ :'artifact' => :'artifact',
51
51
  :'version' => :'version',
52
52
  :'name' => :'name',
53
53
  :'namespace' => :'namespace'
@@ -62,12 +62,12 @@ module PulpAnsibleClient
62
62
  # Attribute type mapping.
63
63
  def self.openapi_types
64
64
  {
65
- :'artifact' => :'String',
65
+ :'pulp_href' => :'String',
66
66
  :'prn' => :'String',
67
67
  :'pulp_created' => :'Time',
68
- :'pulp_href' => :'String',
69
- :'pulp_labels' => :'Hash<String, String>',
70
68
  :'pulp_last_updated' => :'Time',
69
+ :'pulp_labels' => :'Hash<String, String>',
70
+ :'artifact' => :'String',
71
71
  :'version' => :'String',
72
72
  :'name' => :'String',
73
73
  :'namespace' => :'String'
@@ -95,10 +95,8 @@ module PulpAnsibleClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'artifact')
99
- self.artifact = attributes[:'artifact']
100
- else
101
- self.artifact = nil
98
+ if attributes.key?(:'pulp_href')
99
+ self.pulp_href = attributes[:'pulp_href']
102
100
  end
103
101
 
104
102
  if attributes.key?(:'prn')
@@ -109,8 +107,8 @@ module PulpAnsibleClient
109
107
  self.pulp_created = attributes[:'pulp_created']
110
108
  end
111
109
 
112
- if attributes.key?(:'pulp_href')
113
- self.pulp_href = attributes[:'pulp_href']
110
+ if attributes.key?(:'pulp_last_updated')
111
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
114
112
  end
115
113
 
116
114
  if attributes.key?(:'pulp_labels')
@@ -119,8 +117,10 @@ module PulpAnsibleClient
119
117
  end
120
118
  end
121
119
 
122
- if attributes.key?(:'pulp_last_updated')
123
- self.pulp_last_updated = attributes[:'pulp_last_updated']
120
+ if attributes.key?(:'artifact')
121
+ self.artifact = attributes[:'artifact']
122
+ else
123
+ self.artifact = nil
124
124
  end
125
125
 
126
126
  if attributes.key?(:'version')
@@ -182,12 +182,12 @@ module PulpAnsibleClient
182
182
  def ==(o)
183
183
  return true if self.equal?(o)
184
184
  self.class == o.class &&
185
- artifact == o.artifact &&
185
+ pulp_href == o.pulp_href &&
186
186
  prn == o.prn &&
187
187
  pulp_created == o.pulp_created &&
188
- pulp_href == o.pulp_href &&
189
- pulp_labels == o.pulp_labels &&
190
188
  pulp_last_updated == o.pulp_last_updated &&
189
+ pulp_labels == o.pulp_labels &&
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, prn, pulp_created, pulp_href, pulp_labels, pulp_last_updated, version, name, namespace].hash
205
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifact, version, name, namespace].hash
206
206
  end
207
207
 
208
208
  # Builds the object from hash