pulp_ansible_client 0.11.0.dev1636427751 → 0.11.0.dev1636514074

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