pulp_ansible_client 0.13.2 → 0.13.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.
@@ -18,54 +18,54 @@ module PulpAnsibleClient
18
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
19
  attr_accessor :sock_read_timeout
20
20
 
21
- # Timestamp of creation.
22
- attr_accessor :pulp_created
23
-
24
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
25
- attr_accessor :ca_cert
21
+ # The proxy URL. Format: scheme://host:port
22
+ attr_accessor :proxy_url
26
23
 
27
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
28
- attr_accessor :connect_timeout
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
29
26
 
30
- # Timestamp of the most recent update of the remote.
31
- attr_accessor :pulp_last_updated
27
+ # A unique name for this remote.
28
+ attr_accessor :name
32
29
 
33
- attr_accessor :pulp_href
30
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
31
+ attr_accessor :ca_cert
34
32
 
35
33
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
36
34
  attr_accessor :max_retries
37
35
 
36
+ # 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
+ attr_accessor :sock_connect_timeout
38
+
39
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
40
+ attr_accessor :connect_timeout
41
+
38
42
  # The URL of an external content source.
39
43
  attr_accessor :url
40
44
 
41
45
  # Total number of simultaneous connections. If not set then the default value will be used.
42
46
  attr_accessor :download_concurrency
43
47
 
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.
45
- attr_accessor :sock_connect_timeout
46
-
47
- # A PEM encoded client certificate used for authentication.
48
- attr_accessor :client_cert
48
+ # Timestamp of creation.
49
+ attr_accessor :pulp_created
49
50
 
50
- # A unique name for this remote.
51
- attr_accessor :name
51
+ attr_accessor :pulp_href
52
52
 
53
53
  attr_accessor :pulp_labels
54
54
 
55
+ # A PEM encoded client certificate used for authentication.
56
+ attr_accessor :client_cert
57
+
55
58
  # Limits requests per second for each concurrent downloader
56
59
  attr_accessor :rate_limit
57
60
 
58
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
59
- attr_accessor :total_timeout
61
+ # Headers for aiohttp.Clientsession
62
+ attr_accessor :headers
60
63
 
61
64
  # If True, TLS peer validation must be performed.
62
65
  attr_accessor :tls_validation
63
66
 
64
- # Headers for aiohttp.Clientsession
65
- attr_accessor :headers
66
-
67
- # The proxy URL. Format: scheme://host:port
68
- attr_accessor :proxy_url
67
+ # Timestamp of the most recent update of the remote.
68
+ attr_accessor :pulp_last_updated
69
69
 
70
70
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
71
71
  attr_accessor :metadata_only
@@ -77,23 +77,23 @@ module PulpAnsibleClient
77
77
  def self.attribute_map
78
78
  {
79
79
  :'sock_read_timeout' => :'sock_read_timeout',
80
- :'pulp_created' => :'pulp_created',
80
+ :'proxy_url' => :'proxy_url',
81
+ :'total_timeout' => :'total_timeout',
82
+ :'name' => :'name',
81
83
  :'ca_cert' => :'ca_cert',
82
- :'connect_timeout' => :'connect_timeout',
83
- :'pulp_last_updated' => :'pulp_last_updated',
84
- :'pulp_href' => :'pulp_href',
85
84
  :'max_retries' => :'max_retries',
85
+ :'sock_connect_timeout' => :'sock_connect_timeout',
86
+ :'connect_timeout' => :'connect_timeout',
86
87
  :'url' => :'url',
87
88
  :'download_concurrency' => :'download_concurrency',
88
- :'sock_connect_timeout' => :'sock_connect_timeout',
89
- :'client_cert' => :'client_cert',
90
- :'name' => :'name',
89
+ :'pulp_created' => :'pulp_created',
90
+ :'pulp_href' => :'pulp_href',
91
91
  :'pulp_labels' => :'pulp_labels',
92
+ :'client_cert' => :'client_cert',
92
93
  :'rate_limit' => :'rate_limit',
93
- :'total_timeout' => :'total_timeout',
94
- :'tls_validation' => :'tls_validation',
95
94
  :'headers' => :'headers',
96
- :'proxy_url' => :'proxy_url',
95
+ :'tls_validation' => :'tls_validation',
96
+ :'pulp_last_updated' => :'pulp_last_updated',
97
97
  :'metadata_only' => :'metadata_only',
98
98
  :'git_ref' => :'git_ref'
99
99
  }
@@ -103,23 +103,23 @@ module PulpAnsibleClient
103
103
  def self.openapi_types
104
104
  {
105
105
  :'sock_read_timeout' => :'Float',
106
- :'pulp_created' => :'DateTime',
106
+ :'proxy_url' => :'String',
107
+ :'total_timeout' => :'Float',
108
+ :'name' => :'String',
107
109
  :'ca_cert' => :'String',
108
- :'connect_timeout' => :'Float',
109
- :'pulp_last_updated' => :'DateTime',
110
- :'pulp_href' => :'String',
111
110
  :'max_retries' => :'Integer',
111
+ :'sock_connect_timeout' => :'Float',
112
+ :'connect_timeout' => :'Float',
112
113
  :'url' => :'String',
113
114
  :'download_concurrency' => :'Integer',
114
- :'sock_connect_timeout' => :'Float',
115
- :'client_cert' => :'String',
116
- :'name' => :'String',
115
+ :'pulp_created' => :'DateTime',
116
+ :'pulp_href' => :'String',
117
117
  :'pulp_labels' => :'Object',
118
+ :'client_cert' => :'String',
118
119
  :'rate_limit' => :'Integer',
119
- :'total_timeout' => :'Float',
120
- :'tls_validation' => :'Boolean',
121
120
  :'headers' => :'Array<Object>',
122
- :'proxy_url' => :'String',
121
+ :'tls_validation' => :'Boolean',
122
+ :'pulp_last_updated' => :'DateTime',
123
123
  :'metadata_only' => :'Boolean',
124
124
  :'git_ref' => :'String'
125
125
  }
@@ -129,15 +129,15 @@ module PulpAnsibleClient
129
129
  def self.openapi_nullable
130
130
  Set.new([
131
131
  :'sock_read_timeout',
132
+ :'proxy_url',
133
+ :'total_timeout',
132
134
  :'ca_cert',
133
- :'connect_timeout',
134
135
  :'max_retries',
135
- :'download_concurrency',
136
136
  :'sock_connect_timeout',
137
+ :'connect_timeout',
138
+ :'download_concurrency',
137
139
  :'client_cert',
138
140
  :'rate_limit',
139
- :'total_timeout',
140
- :'proxy_url',
141
141
  ])
142
142
  end
143
143
 
@@ -160,30 +160,34 @@ module PulpAnsibleClient
160
160
  self.sock_read_timeout = attributes[:'sock_read_timeout']
161
161
  end
162
162
 
163
- if attributes.key?(:'pulp_created')
164
- self.pulp_created = attributes[:'pulp_created']
165
- end
166
-
167
- if attributes.key?(:'ca_cert')
168
- self.ca_cert = attributes[:'ca_cert']
163
+ if attributes.key?(:'proxy_url')
164
+ self.proxy_url = attributes[:'proxy_url']
169
165
  end
170
166
 
171
- if attributes.key?(:'connect_timeout')
172
- self.connect_timeout = attributes[:'connect_timeout']
167
+ if attributes.key?(:'total_timeout')
168
+ self.total_timeout = attributes[:'total_timeout']
173
169
  end
174
170
 
175
- if attributes.key?(:'pulp_last_updated')
176
- self.pulp_last_updated = attributes[:'pulp_last_updated']
171
+ if attributes.key?(:'name')
172
+ self.name = attributes[:'name']
177
173
  end
178
174
 
179
- if attributes.key?(:'pulp_href')
180
- self.pulp_href = attributes[:'pulp_href']
175
+ if attributes.key?(:'ca_cert')
176
+ self.ca_cert = attributes[:'ca_cert']
181
177
  end
182
178
 
183
179
  if attributes.key?(:'max_retries')
184
180
  self.max_retries = attributes[:'max_retries']
185
181
  end
186
182
 
183
+ if attributes.key?(:'sock_connect_timeout')
184
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
185
+ end
186
+
187
+ if attributes.key?(:'connect_timeout')
188
+ self.connect_timeout = attributes[:'connect_timeout']
189
+ end
190
+
187
191
  if attributes.key?(:'url')
188
192
  self.url = attributes[:'url']
189
193
  end
@@ -192,32 +196,24 @@ module PulpAnsibleClient
192
196
  self.download_concurrency = attributes[:'download_concurrency']
193
197
  end
194
198
 
195
- if attributes.key?(:'sock_connect_timeout')
196
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
197
- end
198
-
199
- if attributes.key?(:'client_cert')
200
- self.client_cert = attributes[:'client_cert']
199
+ if attributes.key?(:'pulp_created')
200
+ self.pulp_created = attributes[:'pulp_created']
201
201
  end
202
202
 
203
- if attributes.key?(:'name')
204
- self.name = attributes[:'name']
203
+ if attributes.key?(:'pulp_href')
204
+ self.pulp_href = attributes[:'pulp_href']
205
205
  end
206
206
 
207
207
  if attributes.key?(:'pulp_labels')
208
208
  self.pulp_labels = attributes[:'pulp_labels']
209
209
  end
210
210
 
211
- if attributes.key?(:'rate_limit')
212
- self.rate_limit = attributes[:'rate_limit']
213
- end
214
-
215
- if attributes.key?(:'total_timeout')
216
- self.total_timeout = attributes[:'total_timeout']
211
+ if attributes.key?(:'client_cert')
212
+ self.client_cert = attributes[:'client_cert']
217
213
  end
218
214
 
219
- if attributes.key?(:'tls_validation')
220
- self.tls_validation = attributes[:'tls_validation']
215
+ if attributes.key?(:'rate_limit')
216
+ self.rate_limit = attributes[:'rate_limit']
221
217
  end
222
218
 
223
219
  if attributes.key?(:'headers')
@@ -226,8 +222,12 @@ module PulpAnsibleClient
226
222
  end
227
223
  end
228
224
 
229
- if attributes.key?(:'proxy_url')
230
- self.proxy_url = attributes[:'proxy_url']
225
+ if attributes.key?(:'tls_validation')
226
+ self.tls_validation = attributes[:'tls_validation']
227
+ end
228
+
229
+ if attributes.key?(:'pulp_last_updated')
230
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
231
231
  end
232
232
 
233
233
  if attributes.key?(:'metadata_only')
@@ -247,28 +247,28 @@ module PulpAnsibleClient
247
247
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
248
248
  end
249
249
 
250
- if !@connect_timeout.nil? && @connect_timeout < 0.0
251
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
252
- end
253
-
254
- if @url.nil?
255
- invalid_properties.push('invalid value for "url", url cannot be nil.')
250
+ if !@total_timeout.nil? && @total_timeout < 0.0
251
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
256
252
  end
257
253
 
258
- if !@download_concurrency.nil? && @download_concurrency < 1
259
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
254
+ if @name.nil?
255
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
260
256
  end
261
257
 
262
258
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
263
259
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
264
260
  end
265
261
 
266
- if @name.nil?
267
- invalid_properties.push('invalid value for "name", name cannot be nil.')
262
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
263
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
268
264
  end
269
265
 
270
- if !@total_timeout.nil? && @total_timeout < 0.0
271
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
266
+ if @url.nil?
267
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
268
+ end
269
+
270
+ if !@download_concurrency.nil? && @download_concurrency < 1
271
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
272
272
  end
273
273
 
274
274
  invalid_properties
@@ -278,12 +278,12 @@ module PulpAnsibleClient
278
278
  # @return true if the model is valid
279
279
  def valid?
280
280
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
281
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
282
+ return false if @name.nil?
283
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
281
284
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
282
285
  return false if @url.nil?
283
286
  return false if !@download_concurrency.nil? && @download_concurrency < 1
284
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
285
- return false if @name.nil?
286
- return false if !@total_timeout.nil? && @total_timeout < 0.0
287
287
  true
288
288
  end
289
289
 
@@ -298,23 +298,13 @@ module PulpAnsibleClient
298
298
  end
299
299
 
300
300
  # Custom attribute writer method with validation
301
- # @param [Object] connect_timeout Value to be assigned
302
- def connect_timeout=(connect_timeout)
303
- if !connect_timeout.nil? && connect_timeout < 0.0
304
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
305
- end
306
-
307
- @connect_timeout = connect_timeout
308
- end
309
-
310
- # Custom attribute writer method with validation
311
- # @param [Object] download_concurrency Value to be assigned
312
- def download_concurrency=(download_concurrency)
313
- if !download_concurrency.nil? && download_concurrency < 1
314
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
301
+ # @param [Object] total_timeout Value to be assigned
302
+ def total_timeout=(total_timeout)
303
+ if !total_timeout.nil? && total_timeout < 0.0
304
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
315
305
  end
316
306
 
317
- @download_concurrency = download_concurrency
307
+ @total_timeout = total_timeout
318
308
  end
319
309
 
320
310
  # Custom attribute writer method with validation
@@ -328,13 +318,23 @@ module PulpAnsibleClient
328
318
  end
329
319
 
330
320
  # Custom attribute writer method with validation
331
- # @param [Object] total_timeout Value to be assigned
332
- def total_timeout=(total_timeout)
333
- if !total_timeout.nil? && total_timeout < 0.0
334
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
321
+ # @param [Object] connect_timeout Value to be assigned
322
+ def connect_timeout=(connect_timeout)
323
+ if !connect_timeout.nil? && connect_timeout < 0.0
324
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
335
325
  end
336
326
 
337
- @total_timeout = total_timeout
327
+ @connect_timeout = connect_timeout
328
+ end
329
+
330
+ # Custom attribute writer method with validation
331
+ # @param [Object] download_concurrency Value to be assigned
332
+ def download_concurrency=(download_concurrency)
333
+ if !download_concurrency.nil? && download_concurrency < 1
334
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
335
+ end
336
+
337
+ @download_concurrency = download_concurrency
338
338
  end
339
339
 
340
340
  # Checks equality by comparing each attribute.
@@ -343,23 +343,23 @@ module PulpAnsibleClient
343
343
  return true if self.equal?(o)
344
344
  self.class == o.class &&
345
345
  sock_read_timeout == o.sock_read_timeout &&
346
- pulp_created == o.pulp_created &&
346
+ proxy_url == o.proxy_url &&
347
+ total_timeout == o.total_timeout &&
348
+ name == o.name &&
347
349
  ca_cert == o.ca_cert &&
348
- connect_timeout == o.connect_timeout &&
349
- pulp_last_updated == o.pulp_last_updated &&
350
- pulp_href == o.pulp_href &&
351
350
  max_retries == o.max_retries &&
351
+ sock_connect_timeout == o.sock_connect_timeout &&
352
+ connect_timeout == o.connect_timeout &&
352
353
  url == o.url &&
353
354
  download_concurrency == o.download_concurrency &&
354
- sock_connect_timeout == o.sock_connect_timeout &&
355
- client_cert == o.client_cert &&
356
- name == o.name &&
355
+ pulp_created == o.pulp_created &&
356
+ pulp_href == o.pulp_href &&
357
357
  pulp_labels == o.pulp_labels &&
358
+ client_cert == o.client_cert &&
358
359
  rate_limit == o.rate_limit &&
359
- total_timeout == o.total_timeout &&
360
- tls_validation == o.tls_validation &&
361
360
  headers == o.headers &&
362
- proxy_url == o.proxy_url &&
361
+ tls_validation == o.tls_validation &&
362
+ pulp_last_updated == o.pulp_last_updated &&
363
363
  metadata_only == o.metadata_only &&
364
364
  git_ref == o.git_ref
365
365
  end
@@ -373,7 +373,7 @@ module PulpAnsibleClient
373
373
  # Calculates hash code according to all attributes.
374
374
  # @return [Integer] Hash code
375
375
  def hash
376
- [sock_read_timeout, pulp_created, ca_cert, connect_timeout, pulp_last_updated, pulp_href, max_retries, url, download_concurrency, sock_connect_timeout, client_cert, name, pulp_labels, rate_limit, total_timeout, tls_validation, headers, proxy_url, metadata_only, git_ref].hash
376
+ [sock_read_timeout, proxy_url, total_timeout, name, ca_cert, max_retries, sock_connect_timeout, connect_timeout, url, download_concurrency, pulp_created, pulp_href, pulp_labels, client_cert, rate_limit, headers, tls_validation, pulp_last_updated, metadata_only, git_ref].hash
377
377
  end
378
378
 
379
379
  # Builds the object from hash
@@ -15,13 +15,13 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
- attr_accessor :pulp_href
18
+ # Artifact file representing the physical content
19
+ attr_accessor :artifact
19
20
 
20
21
  # Timestamp of creation.
21
22
  attr_accessor :pulp_created
22
23
 
23
- # Artifact file representing the physical content
24
- attr_accessor :artifact
24
+ attr_accessor :pulp_href
25
25
 
26
26
  attr_accessor :version
27
27
 
@@ -32,9 +32,9 @@ module PulpAnsibleClient
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'pulp_href' => :'pulp_href',
36
- :'pulp_created' => :'pulp_created',
37
35
  :'artifact' => :'artifact',
36
+ :'pulp_created' => :'pulp_created',
37
+ :'pulp_href' => :'pulp_href',
38
38
  :'version' => :'version',
39
39
  :'name' => :'name',
40
40
  :'namespace' => :'namespace'
@@ -44,9 +44,9 @@ module PulpAnsibleClient
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
- :'pulp_href' => :'String',
48
- :'pulp_created' => :'DateTime',
49
47
  :'artifact' => :'String',
48
+ :'pulp_created' => :'DateTime',
49
+ :'pulp_href' => :'String',
50
50
  :'version' => :'String',
51
51
  :'name' => :'String',
52
52
  :'namespace' => :'String'
@@ -74,16 +74,16 @@ module PulpAnsibleClient
74
74
  h[k.to_sym] = v
75
75
  }
76
76
 
77
- if attributes.key?(:'pulp_href')
78
- self.pulp_href = attributes[:'pulp_href']
77
+ if attributes.key?(:'artifact')
78
+ self.artifact = attributes[:'artifact']
79
79
  end
80
80
 
81
81
  if attributes.key?(:'pulp_created')
82
82
  self.pulp_created = attributes[:'pulp_created']
83
83
  end
84
84
 
85
- if attributes.key?(:'artifact')
86
- self.artifact = attributes[:'artifact']
85
+ if attributes.key?(:'pulp_href')
86
+ self.pulp_href = attributes[:'pulp_href']
87
87
  end
88
88
 
89
89
  if attributes.key?(:'version')
@@ -137,9 +137,9 @@ module PulpAnsibleClient
137
137
  def ==(o)
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
- pulp_href == o.pulp_href &&
141
- pulp_created == o.pulp_created &&
142
140
  artifact == o.artifact &&
141
+ pulp_created == o.pulp_created &&
142
+ pulp_href == o.pulp_href &&
143
143
  version == o.version &&
144
144
  name == o.name &&
145
145
  namespace == o.namespace
@@ -154,7 +154,7 @@ module PulpAnsibleClient
154
154
  # Calculates hash code according to all attributes.
155
155
  # @return [Integer] Hash code
156
156
  def hash
157
- [pulp_href, pulp_created, artifact, version, name, namespace].hash
157
+ [artifact, pulp_created, pulp_href, version, name, namespace].hash
158
158
  end
159
159
 
160
160
  # Builds the object from hash