pulp_ansible_client 0.23.0 → 0.23.1

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