pulp_ansible_client 0.12.0.dev1640489463 → 0.12.0.dev1640920642

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