pulp_ansible_client 0.11.0.dev1636514074 → 0.11.0.dev1636859743

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,82 +15,82 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
20
-
21
- # If True, TLS peer validation must be performed.
22
- attr_accessor :tls_validation
23
-
24
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
25
- attr_accessor :ca_cert
26
-
27
- attr_accessor :pulp_labels
18
+ # Total number of simultaneous connections. If not set then the default value will be used.
19
+ attr_accessor :download_concurrency
28
20
 
29
21
  # Limits total download rate in requests per second
30
22
  attr_accessor :rate_limit
31
23
 
32
- # A PEM encoded client certificate used for authentication.
33
- attr_accessor :client_cert
24
+ # A unique name for this remote.
25
+ attr_accessor :name
26
+
27
+ # The proxy URL. Format: scheme://host:port
28
+ attr_accessor :proxy_url
34
29
 
35
30
  # 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
31
  attr_accessor :sock_read_timeout
37
32
 
38
- # The URL of an external content source.
39
- attr_accessor :url
40
-
41
33
  # 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.
42
34
  attr_accessor :sock_connect_timeout
43
35
 
36
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
37
+ attr_accessor :ca_cert
38
+
39
+ # Timestamp of creation.
40
+ attr_accessor :pulp_created
41
+
44
42
  # 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
43
  attr_accessor :total_timeout
46
44
 
45
+ # Timestamp of the most recent update of the remote.
46
+ attr_accessor :pulp_last_updated
47
+
47
48
  # Headers for aiohttp.Clientsession
48
49
  attr_accessor :headers
49
50
 
50
- # Total number of simultaneous connections. If not set then the default value will be used.
51
- attr_accessor :download_concurrency
52
-
53
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
54
- attr_accessor :max_retries
55
-
56
- # A unique name for this remote.
57
- attr_accessor :name
51
+ attr_accessor :pulp_labels
58
52
 
59
- attr_accessor :pulp_href
53
+ # If True, TLS peer validation must be performed.
54
+ attr_accessor :tls_validation
60
55
 
61
- # Timestamp of the most recent update of the remote.
62
- attr_accessor :pulp_last_updated
56
+ # The URL of an external content source.
57
+ attr_accessor :url
63
58
 
64
- # The proxy URL. Format: scheme://host:port
65
- attr_accessor :proxy_url
59
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
60
+ attr_accessor :max_retries
66
61
 
67
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.
68
63
  attr_accessor :connect_timeout
69
64
 
65
+ # A PEM encoded client certificate used for authentication.
66
+ attr_accessor :client_cert
67
+
68
+ attr_accessor :pulp_href
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
 
73
73
  # Attribute mapping from ruby-style variable name to JSON key.
74
74
  def self.attribute_map
75
75
  {
76
- :'pulp_created' => :'pulp_created',
77
- :'tls_validation' => :'tls_validation',
78
- :'ca_cert' => :'ca_cert',
79
- :'pulp_labels' => :'pulp_labels',
76
+ :'download_concurrency' => :'download_concurrency',
80
77
  :'rate_limit' => :'rate_limit',
81
- :'client_cert' => :'client_cert',
78
+ :'name' => :'name',
79
+ :'proxy_url' => :'proxy_url',
82
80
  :'sock_read_timeout' => :'sock_read_timeout',
83
- :'url' => :'url',
84
81
  :'sock_connect_timeout' => :'sock_connect_timeout',
82
+ :'ca_cert' => :'ca_cert',
83
+ :'pulp_created' => :'pulp_created',
85
84
  :'total_timeout' => :'total_timeout',
85
+ :'pulp_last_updated' => :'pulp_last_updated',
86
86
  :'headers' => :'headers',
87
- :'download_concurrency' => :'download_concurrency',
87
+ :'pulp_labels' => :'pulp_labels',
88
+ :'tls_validation' => :'tls_validation',
89
+ :'url' => :'url',
88
90
  :'max_retries' => :'max_retries',
89
- :'name' => :'name',
90
- :'pulp_href' => :'pulp_href',
91
- :'pulp_last_updated' => :'pulp_last_updated',
92
- :'proxy_url' => :'proxy_url',
93
91
  :'connect_timeout' => :'connect_timeout',
92
+ :'client_cert' => :'client_cert',
93
+ :'pulp_href' => :'pulp_href',
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_created' => :'DateTime',
102
- :'tls_validation' => :'Boolean',
103
- :'ca_cert' => :'String',
104
- :'pulp_labels' => :'Object',
101
+ :'download_concurrency' => :'Integer',
105
102
  :'rate_limit' => :'Integer',
106
- :'client_cert' => :'String',
103
+ :'name' => :'String',
104
+ :'proxy_url' => :'String',
107
105
  :'sock_read_timeout' => :'Float',
108
- :'url' => :'String',
109
106
  :'sock_connect_timeout' => :'Float',
107
+ :'ca_cert' => :'String',
108
+ :'pulp_created' => :'DateTime',
110
109
  :'total_timeout' => :'Float',
110
+ :'pulp_last_updated' => :'DateTime',
111
111
  :'headers' => :'Array<Object>',
112
- :'download_concurrency' => :'Integer',
112
+ :'pulp_labels' => :'Object',
113
+ :'tls_validation' => :'Boolean',
114
+ :'url' => :'String',
113
115
  :'max_retries' => :'Integer',
114
- :'name' => :'String',
115
- :'pulp_href' => :'String',
116
- :'pulp_last_updated' => :'DateTime',
117
- :'proxy_url' => :'String',
118
116
  :'connect_timeout' => :'Float',
117
+ :'client_cert' => :'String',
118
+ :'pulp_href' => :'String',
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
- :'ca_cert',
126
+ :'download_concurrency',
127
127
  :'rate_limit',
128
- :'client_cert',
128
+ :'proxy_url',
129
129
  :'sock_read_timeout',
130
130
  :'sock_connect_timeout',
131
+ :'ca_cert',
131
132
  :'total_timeout',
132
- :'download_concurrency',
133
133
  :'max_retries',
134
- :'proxy_url',
135
134
  :'connect_timeout',
135
+ :'client_cert',
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_created')
155
- self.pulp_created = attributes[:'pulp_created']
156
- end
157
-
158
- if attributes.key?(:'tls_validation')
159
- self.tls_validation = attributes[:'tls_validation']
160
- end
161
-
162
- if attributes.key?(:'ca_cert')
163
- self.ca_cert = attributes[:'ca_cert']
164
- end
165
-
166
- if attributes.key?(:'pulp_labels')
167
- self.pulp_labels = attributes[:'pulp_labels']
154
+ if attributes.key?(:'download_concurrency')
155
+ self.download_concurrency = attributes[:'download_concurrency']
168
156
  end
169
157
 
170
158
  if attributes.key?(:'rate_limit')
171
159
  self.rate_limit = attributes[:'rate_limit']
172
160
  end
173
161
 
174
- if attributes.key?(:'client_cert')
175
- self.client_cert = attributes[:'client_cert']
162
+ if attributes.key?(:'name')
163
+ self.name = attributes[:'name']
176
164
  end
177
165
 
178
- if attributes.key?(:'sock_read_timeout')
179
- self.sock_read_timeout = attributes[:'sock_read_timeout']
166
+ if attributes.key?(:'proxy_url')
167
+ self.proxy_url = attributes[:'proxy_url']
180
168
  end
181
169
 
182
- if attributes.key?(:'url')
183
- self.url = attributes[:'url']
170
+ if attributes.key?(:'sock_read_timeout')
171
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
184
172
  end
185
173
 
186
174
  if attributes.key?(:'sock_connect_timeout')
187
175
  self.sock_connect_timeout = attributes[:'sock_connect_timeout']
188
176
  end
189
177
 
178
+ if attributes.key?(:'ca_cert')
179
+ self.ca_cert = attributes[:'ca_cert']
180
+ end
181
+
182
+ if attributes.key?(:'pulp_created')
183
+ self.pulp_created = attributes[:'pulp_created']
184
+ end
185
+
190
186
  if attributes.key?(:'total_timeout')
191
187
  self.total_timeout = attributes[:'total_timeout']
192
188
  end
193
189
 
190
+ if attributes.key?(:'pulp_last_updated')
191
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
192
+ end
193
+
194
194
  if attributes.key?(:'headers')
195
195
  if (value = attributes[:'headers']).is_a?(Array)
196
196
  self.headers = value
197
197
  end
198
198
  end
199
199
 
200
- if attributes.key?(:'download_concurrency')
201
- self.download_concurrency = attributes[:'download_concurrency']
200
+ if attributes.key?(:'pulp_labels')
201
+ self.pulp_labels = attributes[:'pulp_labels']
202
202
  end
203
203
 
204
- if attributes.key?(:'max_retries')
205
- self.max_retries = attributes[:'max_retries']
204
+ if attributes.key?(:'tls_validation')
205
+ self.tls_validation = attributes[:'tls_validation']
206
206
  end
207
207
 
208
- if attributes.key?(:'name')
209
- self.name = attributes[:'name']
208
+ if attributes.key?(:'url')
209
+ self.url = attributes[:'url']
210
210
  end
211
211
 
212
- if attributes.key?(:'pulp_href')
213
- self.pulp_href = attributes[:'pulp_href']
212
+ if attributes.key?(:'max_retries')
213
+ self.max_retries = attributes[:'max_retries']
214
214
  end
215
215
 
216
- if attributes.key?(:'pulp_last_updated')
217
- self.pulp_last_updated = attributes[:'pulp_last_updated']
216
+ if attributes.key?(:'connect_timeout')
217
+ self.connect_timeout = attributes[:'connect_timeout']
218
218
  end
219
219
 
220
- if attributes.key?(:'proxy_url')
221
- self.proxy_url = attributes[:'proxy_url']
220
+ if attributes.key?(:'client_cert')
221
+ self.client_cert = attributes[:'client_cert']
222
222
  end
223
223
 
224
- if attributes.key?(:'connect_timeout')
225
- self.connect_timeout = attributes[:'connect_timeout']
224
+ if attributes.key?(:'pulp_href')
225
+ self.pulp_href = attributes[:'pulp_href']
226
226
  end
227
227
 
228
228
  if attributes.key?(:'metadata_only')
@@ -234,12 +234,16 @@ 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 !@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.')
237
+ if !@download_concurrency.nil? && @download_concurrency < 1
238
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
239
239
  end
240
240
 
241
- if @url.nil?
242
- invalid_properties.push('invalid value for "url", url cannot be nil.')
241
+ if @name.nil?
242
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
243
+ end
244
+
245
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
246
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
243
247
  end
244
248
 
245
249
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
@@ -250,12 +254,8 @@ module PulpAnsibleClient
250
254
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
251
255
  end
252
256
 
253
- if !@download_concurrency.nil? && @download_concurrency < 1
254
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
255
- end
256
-
257
- if @name.nil?
258
- invalid_properties.push('invalid value for "name", name cannot be nil.')
257
+ if @url.nil?
258
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
259
259
  end
260
260
 
261
261
  if !@connect_timeout.nil? && @connect_timeout < 0.0
@@ -268,16 +268,26 @@ module PulpAnsibleClient
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 !@download_concurrency.nil? && @download_concurrency < 1
272
+ return false if @name.nil?
271
273
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
272
- return false if @url.nil?
273
274
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
274
275
  return false if !@total_timeout.nil? && @total_timeout < 0.0
275
- return false if !@download_concurrency.nil? && @download_concurrency < 1
276
- return false if @name.nil?
276
+ return false if @url.nil?
277
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] download_concurrency Value to be assigned
283
+ def download_concurrency=(download_concurrency)
284
+ if !download_concurrency.nil? && download_concurrency < 1
285
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
286
+ end
287
+
288
+ @download_concurrency = download_concurrency
289
+ end
290
+
281
291
  # Custom attribute writer method with validation
282
292
  # @param [Object] sock_read_timeout Value to be assigned
283
293
  def sock_read_timeout=(sock_read_timeout)
@@ -308,16 +318,6 @@ module PulpAnsibleClient
308
318
  @total_timeout = total_timeout
309
319
  end
310
320
 
311
- # Custom attribute writer method with validation
312
- # @param [Object] download_concurrency Value to be assigned
313
- def download_concurrency=(download_concurrency)
314
- if !download_concurrency.nil? && download_concurrency < 1
315
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
316
- end
317
-
318
- @download_concurrency = download_concurrency
319
- end
320
-
321
321
  # Custom attribute writer method with validation
322
322
  # @param [Object] connect_timeout Value to be assigned
323
323
  def connect_timeout=(connect_timeout)
@@ -333,24 +333,24 @@ module PulpAnsibleClient
333
333
  def ==(o)
334
334
  return true if self.equal?(o)
335
335
  self.class == o.class &&
336
- pulp_created == o.pulp_created &&
337
- tls_validation == o.tls_validation &&
338
- ca_cert == o.ca_cert &&
339
- pulp_labels == o.pulp_labels &&
336
+ download_concurrency == o.download_concurrency &&
340
337
  rate_limit == o.rate_limit &&
341
- client_cert == o.client_cert &&
338
+ name == o.name &&
339
+ proxy_url == o.proxy_url &&
342
340
  sock_read_timeout == o.sock_read_timeout &&
343
- url == o.url &&
344
341
  sock_connect_timeout == o.sock_connect_timeout &&
342
+ ca_cert == o.ca_cert &&
343
+ pulp_created == o.pulp_created &&
345
344
  total_timeout == o.total_timeout &&
345
+ pulp_last_updated == o.pulp_last_updated &&
346
346
  headers == o.headers &&
347
- download_concurrency == o.download_concurrency &&
347
+ pulp_labels == o.pulp_labels &&
348
+ tls_validation == o.tls_validation &&
349
+ url == o.url &&
348
350
  max_retries == o.max_retries &&
349
- name == o.name &&
350
- pulp_href == o.pulp_href &&
351
- pulp_last_updated == o.pulp_last_updated &&
352
- proxy_url == o.proxy_url &&
353
351
  connect_timeout == o.connect_timeout &&
352
+ client_cert == o.client_cert &&
353
+ pulp_href == o.pulp_href &&
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_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
366
+ [download_concurrency, rate_limit, name, proxy_url, sock_read_timeout, sock_connect_timeout, ca_cert, pulp_created, total_timeout, pulp_last_updated, headers, pulp_labels, tls_validation, url, max_retries, connect_timeout, client_cert, pulp_href, metadata_only].hash
367
367
  end
368
368
 
369
369
  # Builds the object from hash