pulp_ansible_client 0.28.8 → 0.28.9

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