pulp_ansible_client 0.21.12 → 0.21.13

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