pulp_ansible_client 0.13.5 → 0.13.6

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