pulp_ansible_client 0.12.0.dev1641179827 → 0.12.0.dev1641266221

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