pulp_ansible_client 0.12.0.dev1641439175 → 0.12.0.dev1641525578

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_ansible_client might be problematic. Click here for more details.

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