pulp_ansible_client 0.24.3 → 0.24.4

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