pulp_ansible_client 0.24.4 → 0.24.5

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