pulp_ansible_client 0.21.5 → 0.21.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,60 +15,60 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
+ attr_accessor :pulp_labels
19
+
18
20
  # A unique name for this remote.
19
21
  attr_accessor :name
20
22
 
21
- # If True, TLS peer validation must be performed.
22
- attr_accessor :tls_validation
23
-
24
- # Total number of simultaneous connections. If not set then the default value will be used.
25
- attr_accessor :download_concurrency
26
-
27
- # Timestamp of the most recent update of the remote.
28
- attr_accessor :pulp_last_updated
23
+ # A PEM encoded client certificate used for authentication.
24
+ attr_accessor :client_cert
29
25
 
30
26
  # Timestamp of creation.
31
27
  attr_accessor :pulp_created
32
28
 
33
- # The proxy URL. Format: scheme://host:port
34
- attr_accessor :proxy_url
35
-
36
29
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
37
30
  attr_accessor :max_retries
38
31
 
39
- # 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.
40
- attr_accessor :sock_connect_timeout
32
+ # Timestamp of the most recent update of the remote.
33
+ attr_accessor :pulp_last_updated
41
34
 
42
- # The URL of an external content source.
43
- attr_accessor :url
35
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
36
+ attr_accessor :ca_cert
44
37
 
45
- # 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.
46
- attr_accessor :sock_read_timeout
38
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
39
+ attr_accessor :connect_timeout
40
+
41
+ # If True, TLS peer validation must be performed.
42
+ attr_accessor :tls_validation
47
43
 
48
44
  # Headers for aiohttp.Clientsession
49
45
  attr_accessor :headers
50
46
 
51
- attr_accessor :pulp_labels
47
+ # 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.
48
+ attr_accessor :sock_connect_timeout
52
49
 
53
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
54
- attr_accessor :ca_cert
50
+ # The URL of an external content source.
51
+ attr_accessor :url
55
52
 
56
- attr_accessor :pulp_href
53
+ # List of hidden (write only) fields
54
+ attr_accessor :hidden_fields
57
55
 
58
56
  # Limits requests per second for each concurrent downloader
59
57
  attr_accessor :rate_limit
60
58
 
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
59
+ # 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.
60
+ attr_accessor :sock_read_timeout
63
61
 
64
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
65
- attr_accessor :connect_timeout
62
+ attr_accessor :pulp_href
66
63
 
67
- # List of hidden (write only) fields
68
- attr_accessor :hidden_fields
64
+ # Total number of simultaneous connections. If not set then the default value will be used.
65
+ attr_accessor :download_concurrency
69
66
 
70
- # A PEM encoded client certificate used for authentication.
71
- attr_accessor :client_cert
67
+ # The proxy URL. Format: scheme://host:port
68
+ attr_accessor :proxy_url
69
+
70
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
71
+ attr_accessor :total_timeout
72
72
 
73
73
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
74
74
  attr_accessor :metadata_only
@@ -79,25 +79,25 @@ module PulpAnsibleClient
79
79
  # Attribute mapping from ruby-style variable name to JSON key.
80
80
  def self.attribute_map
81
81
  {
82
+ :'pulp_labels' => :'pulp_labels',
82
83
  :'name' => :'name',
83
- :'tls_validation' => :'tls_validation',
84
- :'download_concurrency' => :'download_concurrency',
85
- :'pulp_last_updated' => :'pulp_last_updated',
84
+ :'client_cert' => :'client_cert',
86
85
  :'pulp_created' => :'pulp_created',
87
- :'proxy_url' => :'proxy_url',
88
86
  :'max_retries' => :'max_retries',
87
+ :'pulp_last_updated' => :'pulp_last_updated',
88
+ :'ca_cert' => :'ca_cert',
89
+ :'connect_timeout' => :'connect_timeout',
90
+ :'tls_validation' => :'tls_validation',
91
+ :'headers' => :'headers',
89
92
  :'sock_connect_timeout' => :'sock_connect_timeout',
90
93
  :'url' => :'url',
94
+ :'hidden_fields' => :'hidden_fields',
95
+ :'rate_limit' => :'rate_limit',
91
96
  :'sock_read_timeout' => :'sock_read_timeout',
92
- :'headers' => :'headers',
93
- :'pulp_labels' => :'pulp_labels',
94
- :'ca_cert' => :'ca_cert',
95
97
  :'pulp_href' => :'pulp_href',
96
- :'rate_limit' => :'rate_limit',
98
+ :'download_concurrency' => :'download_concurrency',
99
+ :'proxy_url' => :'proxy_url',
97
100
  :'total_timeout' => :'total_timeout',
98
- :'connect_timeout' => :'connect_timeout',
99
- :'hidden_fields' => :'hidden_fields',
100
- :'client_cert' => :'client_cert',
101
101
  :'metadata_only' => :'metadata_only',
102
102
  :'git_ref' => :'git_ref'
103
103
  }
@@ -106,25 +106,25 @@ module PulpAnsibleClient
106
106
  # Attribute type mapping.
107
107
  def self.openapi_types
108
108
  {
109
+ :'pulp_labels' => :'Hash<String, String>',
109
110
  :'name' => :'String',
110
- :'tls_validation' => :'Boolean',
111
- :'download_concurrency' => :'Integer',
112
- :'pulp_last_updated' => :'DateTime',
111
+ :'client_cert' => :'String',
113
112
  :'pulp_created' => :'DateTime',
114
- :'proxy_url' => :'String',
115
113
  :'max_retries' => :'Integer',
114
+ :'pulp_last_updated' => :'DateTime',
115
+ :'ca_cert' => :'String',
116
+ :'connect_timeout' => :'Float',
117
+ :'tls_validation' => :'Boolean',
118
+ :'headers' => :'Array<Object>',
116
119
  :'sock_connect_timeout' => :'Float',
117
120
  :'url' => :'String',
121
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
122
+ :'rate_limit' => :'Integer',
118
123
  :'sock_read_timeout' => :'Float',
119
- :'headers' => :'Array<Object>',
120
- :'pulp_labels' => :'Hash<String, String>',
121
- :'ca_cert' => :'String',
122
124
  :'pulp_href' => :'String',
123
- :'rate_limit' => :'Integer',
125
+ :'download_concurrency' => :'Integer',
126
+ :'proxy_url' => :'String',
124
127
  :'total_timeout' => :'Float',
125
- :'connect_timeout' => :'Float',
126
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
127
- :'client_cert' => :'String',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -133,16 +133,16 @@ module PulpAnsibleClient
133
133
  # List of attributes with nullable: true
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
- :'download_concurrency',
137
- :'proxy_url',
136
+ :'client_cert',
138
137
  :'max_retries',
139
- :'sock_connect_timeout',
140
- :'sock_read_timeout',
141
138
  :'ca_cert',
139
+ :'connect_timeout',
140
+ :'sock_connect_timeout',
142
141
  :'rate_limit',
142
+ :'sock_read_timeout',
143
+ :'download_concurrency',
144
+ :'proxy_url',
143
145
  :'total_timeout',
144
- :'connect_timeout',
145
- :'client_cert',
146
146
  ])
147
147
  end
148
148
 
@@ -161,44 +161,42 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'name')
165
- self.name = attributes[:'name']
166
- end
167
-
168
- if attributes.key?(:'tls_validation')
169
- self.tls_validation = attributes[:'tls_validation']
164
+ if attributes.key?(:'pulp_labels')
165
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
166
+ self.pulp_labels = value
167
+ end
170
168
  end
171
169
 
172
- if attributes.key?(:'download_concurrency')
173
- self.download_concurrency = attributes[:'download_concurrency']
170
+ if attributes.key?(:'name')
171
+ self.name = attributes[:'name']
174
172
  end
175
173
 
176
- if attributes.key?(:'pulp_last_updated')
177
- self.pulp_last_updated = attributes[:'pulp_last_updated']
174
+ if attributes.key?(:'client_cert')
175
+ self.client_cert = attributes[:'client_cert']
178
176
  end
179
177
 
180
178
  if attributes.key?(:'pulp_created')
181
179
  self.pulp_created = attributes[:'pulp_created']
182
180
  end
183
181
 
184
- if attributes.key?(:'proxy_url')
185
- self.proxy_url = attributes[:'proxy_url']
186
- end
187
-
188
182
  if attributes.key?(:'max_retries')
189
183
  self.max_retries = attributes[:'max_retries']
190
184
  end
191
185
 
192
- if attributes.key?(:'sock_connect_timeout')
193
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
186
+ if attributes.key?(:'pulp_last_updated')
187
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
194
188
  end
195
189
 
196
- if attributes.key?(:'url')
197
- self.url = attributes[:'url']
190
+ if attributes.key?(:'ca_cert')
191
+ self.ca_cert = attributes[:'ca_cert']
198
192
  end
199
193
 
200
- if attributes.key?(:'sock_read_timeout')
201
- self.sock_read_timeout = attributes[:'sock_read_timeout']
194
+ if attributes.key?(:'connect_timeout')
195
+ self.connect_timeout = attributes[:'connect_timeout']
196
+ end
197
+
198
+ if attributes.key?(:'tls_validation')
199
+ self.tls_validation = attributes[:'tls_validation']
202
200
  end
203
201
 
204
202
  if attributes.key?(:'headers')
@@ -207,40 +205,42 @@ module PulpAnsibleClient
207
205
  end
208
206
  end
209
207
 
210
- if attributes.key?(:'pulp_labels')
211
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
212
- self.pulp_labels = value
213
- end
208
+ if attributes.key?(:'sock_connect_timeout')
209
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
214
210
  end
215
211
 
216
- if attributes.key?(:'ca_cert')
217
- self.ca_cert = attributes[:'ca_cert']
212
+ if attributes.key?(:'url')
213
+ self.url = attributes[:'url']
218
214
  end
219
215
 
220
- if attributes.key?(:'pulp_href')
221
- self.pulp_href = attributes[:'pulp_href']
216
+ if attributes.key?(:'hidden_fields')
217
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
218
+ self.hidden_fields = value
219
+ end
222
220
  end
223
221
 
224
222
  if attributes.key?(:'rate_limit')
225
223
  self.rate_limit = attributes[:'rate_limit']
226
224
  end
227
225
 
228
- if attributes.key?(:'total_timeout')
229
- self.total_timeout = attributes[:'total_timeout']
226
+ if attributes.key?(:'sock_read_timeout')
227
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
230
228
  end
231
229
 
232
- if attributes.key?(:'connect_timeout')
233
- self.connect_timeout = attributes[:'connect_timeout']
230
+ if attributes.key?(:'pulp_href')
231
+ self.pulp_href = attributes[:'pulp_href']
234
232
  end
235
233
 
236
- if attributes.key?(:'hidden_fields')
237
- if (value = attributes[:'hidden_fields']).is_a?(Array)
238
- self.hidden_fields = value
239
- end
234
+ if attributes.key?(:'download_concurrency')
235
+ self.download_concurrency = attributes[:'download_concurrency']
240
236
  end
241
237
 
242
- if attributes.key?(:'client_cert')
243
- self.client_cert = attributes[:'client_cert']
238
+ if attributes.key?(:'proxy_url')
239
+ self.proxy_url = attributes[:'proxy_url']
240
+ end
241
+
242
+ if attributes.key?(:'total_timeout')
243
+ self.total_timeout = attributes[:'total_timeout']
244
244
  end
245
245
 
246
246
  if attributes.key?(:'metadata_only')
@@ -260,8 +260,8 @@ module PulpAnsibleClient
260
260
  invalid_properties.push('invalid value for "name", name cannot be nil.')
261
261
  end
262
262
 
263
- if !@download_concurrency.nil? && @download_concurrency < 1
264
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
263
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
264
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
265
265
  end
266
266
 
267
267
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
@@ -276,12 +276,12 @@ module PulpAnsibleClient
276
276
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
277
277
  end
278
278
 
279
- if !@total_timeout.nil? && @total_timeout < 0.0
280
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
279
+ if !@download_concurrency.nil? && @download_concurrency < 1
280
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
281
281
  end
282
282
 
283
- if !@connect_timeout.nil? && @connect_timeout < 0.0
284
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
283
+ if !@total_timeout.nil? && @total_timeout < 0.0
284
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
285
285
  end
286
286
 
287
287
  invalid_properties
@@ -291,23 +291,23 @@ module PulpAnsibleClient
291
291
  # @return true if the model is valid
292
292
  def valid?
293
293
  return false if @name.nil?
294
- return false if !@download_concurrency.nil? && @download_concurrency < 1
294
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
295
295
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
296
296
  return false if @url.nil?
297
297
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
298
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
298
299
  return false if !@total_timeout.nil? && @total_timeout < 0.0
299
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
300
300
  true
301
301
  end
302
302
 
303
303
  # Custom attribute writer method with validation
304
- # @param [Object] download_concurrency Value to be assigned
305
- def download_concurrency=(download_concurrency)
306
- if !download_concurrency.nil? && download_concurrency < 1
307
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
304
+ # @param [Object] connect_timeout Value to be assigned
305
+ def connect_timeout=(connect_timeout)
306
+ if !connect_timeout.nil? && connect_timeout < 0.0
307
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
308
308
  end
309
309
 
310
- @download_concurrency = download_concurrency
310
+ @connect_timeout = connect_timeout
311
311
  end
312
312
 
313
313
  # Custom attribute writer method with validation
@@ -331,23 +331,23 @@ module PulpAnsibleClient
331
331
  end
332
332
 
333
333
  # Custom attribute writer method with validation
334
- # @param [Object] total_timeout Value to be assigned
335
- def total_timeout=(total_timeout)
336
- if !total_timeout.nil? && total_timeout < 0.0
337
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
334
+ # @param [Object] download_concurrency Value to be assigned
335
+ def download_concurrency=(download_concurrency)
336
+ if !download_concurrency.nil? && download_concurrency < 1
337
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
338
338
  end
339
339
 
340
- @total_timeout = total_timeout
340
+ @download_concurrency = download_concurrency
341
341
  end
342
342
 
343
343
  # Custom attribute writer method with validation
344
- # @param [Object] connect_timeout Value to be assigned
345
- def connect_timeout=(connect_timeout)
346
- if !connect_timeout.nil? && connect_timeout < 0.0
347
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
344
+ # @param [Object] total_timeout Value to be assigned
345
+ def total_timeout=(total_timeout)
346
+ if !total_timeout.nil? && total_timeout < 0.0
347
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
348
348
  end
349
349
 
350
- @connect_timeout = connect_timeout
350
+ @total_timeout = total_timeout
351
351
  end
352
352
 
353
353
  # Checks equality by comparing each attribute.
@@ -355,25 +355,25 @@ module PulpAnsibleClient
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
+ pulp_labels == o.pulp_labels &&
358
359
  name == o.name &&
359
- tls_validation == o.tls_validation &&
360
- download_concurrency == o.download_concurrency &&
361
- pulp_last_updated == o.pulp_last_updated &&
360
+ client_cert == o.client_cert &&
362
361
  pulp_created == o.pulp_created &&
363
- proxy_url == o.proxy_url &&
364
362
  max_retries == o.max_retries &&
363
+ pulp_last_updated == o.pulp_last_updated &&
364
+ ca_cert == o.ca_cert &&
365
+ connect_timeout == o.connect_timeout &&
366
+ tls_validation == o.tls_validation &&
367
+ headers == o.headers &&
365
368
  sock_connect_timeout == o.sock_connect_timeout &&
366
369
  url == o.url &&
370
+ hidden_fields == o.hidden_fields &&
371
+ rate_limit == o.rate_limit &&
367
372
  sock_read_timeout == o.sock_read_timeout &&
368
- headers == o.headers &&
369
- pulp_labels == o.pulp_labels &&
370
- ca_cert == o.ca_cert &&
371
373
  pulp_href == o.pulp_href &&
372
- rate_limit == o.rate_limit &&
374
+ download_concurrency == o.download_concurrency &&
375
+ proxy_url == o.proxy_url &&
373
376
  total_timeout == o.total_timeout &&
374
- connect_timeout == o.connect_timeout &&
375
- hidden_fields == o.hidden_fields &&
376
- client_cert == o.client_cert &&
377
377
  metadata_only == o.metadata_only &&
378
378
  git_ref == o.git_ref
379
379
  end
@@ -387,7 +387,7 @@ module PulpAnsibleClient
387
387
  # Calculates hash code according to all attributes.
388
388
  # @return [Integer] Hash code
389
389
  def hash
390
- [name, tls_validation, download_concurrency, pulp_last_updated, pulp_created, proxy_url, max_retries, sock_connect_timeout, url, sock_read_timeout, headers, pulp_labels, ca_cert, pulp_href, rate_limit, total_timeout, connect_timeout, hidden_fields, client_cert, metadata_only, git_ref].hash
390
+ [pulp_labels, name, client_cert, pulp_created, max_retries, pulp_last_updated, ca_cert, connect_timeout, tls_validation, headers, sock_connect_timeout, url, hidden_fields, rate_limit, sock_read_timeout, pulp_href, download_concurrency, proxy_url, total_timeout, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # 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
-
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
@@ -33,8 +33,8 @@ module PulpAnsibleClient
33
33
  def self.attribute_map
34
34
  {
35
35
  :'pulp_created' => :'pulp_created',
36
- :'pulp_href' => :'pulp_href',
37
36
  :'artifact' => :'artifact',
37
+ :'pulp_href' => :'pulp_href',
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
- :'pulp_href' => :'String',
49
48
  :'artifact' => :'String',
49
+ :'pulp_href' => :'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?(:'pulp_href')
82
- self.pulp_href = attributes[:'pulp_href']
83
- end
84
-
85
81
  if attributes.key?(:'artifact')
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
@@ -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
- pulp_href == o.pulp_href &&
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_created, pulp_href, 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