pulp_ansible_client 0.22.9 → 0.22.11

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