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