pulp_container_client 2.4.0.dev1614741644 → 2.4.0.dev1615346638

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_container_client might be problematic. Click here for more details.

@@ -33,9 +33,15 @@ module PulpContainerClient
33
33
  # If True, TLS peer validation must be performed.
34
34
  attr_accessor :tls_validation
35
35
 
36
- # The proxy URL. Format: scheme://user:password@host:port
36
+ # The proxy URL. Format: scheme://host:port
37
37
  attr_accessor :proxy_url
38
38
 
39
+ # The username to authenticte to the proxy.
40
+ attr_accessor :proxy_username
41
+
42
+ # The password to authenticte to the proxy.
43
+ attr_accessor :proxy_password
44
+
39
45
  # The username to be used for authentication when syncing.
40
46
  attr_accessor :username
41
47
 
@@ -62,6 +68,9 @@ module PulpContainerClient
62
68
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
63
69
  attr_accessor :sock_read_timeout
64
70
 
71
+ # Headers for aiohttp.Clientsession
72
+ attr_accessor :headers
73
+
65
74
  # Limits total download rate in requests per second
66
75
  attr_accessor :rate_limit
67
76
 
@@ -84,6 +93,8 @@ module PulpContainerClient
84
93
  :'client_key' => :'client_key',
85
94
  :'tls_validation' => :'tls_validation',
86
95
  :'proxy_url' => :'proxy_url',
96
+ :'proxy_username' => :'proxy_username',
97
+ :'proxy_password' => :'proxy_password',
87
98
  :'username' => :'username',
88
99
  :'password' => :'password',
89
100
  :'pulp_labels' => :'pulp_labels',
@@ -93,6 +104,7 @@ module PulpContainerClient
93
104
  :'connect_timeout' => :'connect_timeout',
94
105
  :'sock_connect_timeout' => :'sock_connect_timeout',
95
106
  :'sock_read_timeout' => :'sock_read_timeout',
107
+ :'headers' => :'headers',
96
108
  :'rate_limit' => :'rate_limit',
97
109
  :'upstream_name' => :'upstream_name',
98
110
  :'include_tags' => :'include_tags',
@@ -110,6 +122,8 @@ module PulpContainerClient
110
122
  :'client_key' => :'String',
111
123
  :'tls_validation' => :'Boolean',
112
124
  :'proxy_url' => :'String',
125
+ :'proxy_username' => :'String',
126
+ :'proxy_password' => :'String',
113
127
  :'username' => :'String',
114
128
  :'password' => :'String',
115
129
  :'pulp_labels' => :'Object',
@@ -119,6 +133,7 @@ module PulpContainerClient
119
133
  :'connect_timeout' => :'Float',
120
134
  :'sock_connect_timeout' => :'Float',
121
135
  :'sock_read_timeout' => :'Float',
136
+ :'headers' => :'Array<Object>',
122
137
  :'rate_limit' => :'Integer',
123
138
  :'upstream_name' => :'String',
124
139
  :'include_tags' => :'Array<String>',
@@ -133,6 +148,8 @@ module PulpContainerClient
133
148
  :'client_cert',
134
149
  :'client_key',
135
150
  :'proxy_url',
151
+ :'proxy_username',
152
+ :'proxy_password',
136
153
  :'username',
137
154
  :'password',
138
155
  :'total_timeout',
@@ -188,6 +205,14 @@ module PulpContainerClient
188
205
  self.proxy_url = attributes[:'proxy_url']
189
206
  end
190
207
 
208
+ if attributes.key?(:'proxy_username')
209
+ self.proxy_username = attributes[:'proxy_username']
210
+ end
211
+
212
+ if attributes.key?(:'proxy_password')
213
+ self.proxy_password = attributes[:'proxy_password']
214
+ end
215
+
191
216
  if attributes.key?(:'username')
192
217
  self.username = attributes[:'username']
193
218
  end
@@ -224,6 +249,12 @@ module PulpContainerClient
224
249
  self.sock_read_timeout = attributes[:'sock_read_timeout']
225
250
  end
226
251
 
252
+ if attributes.key?(:'headers')
253
+ if (value = attributes[:'headers']).is_a?(Array)
254
+ self.headers = value
255
+ end
256
+ end
257
+
227
258
  if attributes.key?(:'rate_limit')
228
259
  self.rate_limit = attributes[:'rate_limit']
229
260
  end
@@ -360,6 +391,8 @@ module PulpContainerClient
360
391
  client_key == o.client_key &&
361
392
  tls_validation == o.tls_validation &&
362
393
  proxy_url == o.proxy_url &&
394
+ proxy_username == o.proxy_username &&
395
+ proxy_password == o.proxy_password &&
363
396
  username == o.username &&
364
397
  password == o.password &&
365
398
  pulp_labels == o.pulp_labels &&
@@ -369,6 +402,7 @@ module PulpContainerClient
369
402
  connect_timeout == o.connect_timeout &&
370
403
  sock_connect_timeout == o.sock_connect_timeout &&
371
404
  sock_read_timeout == o.sock_read_timeout &&
405
+ headers == o.headers &&
372
406
  rate_limit == o.rate_limit &&
373
407
  upstream_name == o.upstream_name &&
374
408
  include_tags == o.include_tags &&
@@ -384,7 +418,7 @@ module PulpContainerClient
384
418
  # Calculates hash code according to all attributes.
385
419
  # @return [Integer] Hash code
386
420
  def hash
387
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, upstream_name, include_tags, exclude_tags].hash
421
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, upstream_name, include_tags, exclude_tags].hash
388
422
  end
389
423
 
390
424
  # Builds the object from hash
@@ -32,21 +32,12 @@ module PulpContainerClient
32
32
  # A PEM encoded client certificate used for authentication.
33
33
  attr_accessor :client_cert
34
34
 
35
- # A PEM encoded private key used for authentication.
36
- attr_accessor :client_key
37
-
38
35
  # If True, TLS peer validation must be performed.
39
36
  attr_accessor :tls_validation
40
37
 
41
- # The proxy URL. Format: scheme://user:password@host:port
38
+ # The proxy URL. Format: scheme://host:port
42
39
  attr_accessor :proxy_url
43
40
 
44
- # The username to be used for authentication when syncing.
45
- attr_accessor :username
46
-
47
- # The password to be used for authentication when syncing.
48
- attr_accessor :password
49
-
50
41
  attr_accessor :pulp_labels
51
42
 
52
43
  # Timestamp of the most recent update of the remote.
@@ -70,6 +61,9 @@ module PulpContainerClient
70
61
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
71
62
  attr_accessor :sock_read_timeout
72
63
 
64
+ # Headers for aiohttp.Clientsession
65
+ attr_accessor :headers
66
+
73
67
  # Limits total download rate in requests per second
74
68
  attr_accessor :rate_limit
75
69
 
@@ -91,11 +85,8 @@ module PulpContainerClient
91
85
  :'url' => :'url',
92
86
  :'ca_cert' => :'ca_cert',
93
87
  :'client_cert' => :'client_cert',
94
- :'client_key' => :'client_key',
95
88
  :'tls_validation' => :'tls_validation',
96
89
  :'proxy_url' => :'proxy_url',
97
- :'username' => :'username',
98
- :'password' => :'password',
99
90
  :'pulp_labels' => :'pulp_labels',
100
91
  :'pulp_last_updated' => :'pulp_last_updated',
101
92
  :'download_concurrency' => :'download_concurrency',
@@ -104,6 +95,7 @@ module PulpContainerClient
104
95
  :'connect_timeout' => :'connect_timeout',
105
96
  :'sock_connect_timeout' => :'sock_connect_timeout',
106
97
  :'sock_read_timeout' => :'sock_read_timeout',
98
+ :'headers' => :'headers',
107
99
  :'rate_limit' => :'rate_limit',
108
100
  :'upstream_name' => :'upstream_name',
109
101
  :'include_tags' => :'include_tags',
@@ -120,11 +112,8 @@ module PulpContainerClient
120
112
  :'url' => :'String',
121
113
  :'ca_cert' => :'String',
122
114
  :'client_cert' => :'String',
123
- :'client_key' => :'String',
124
115
  :'tls_validation' => :'Boolean',
125
116
  :'proxy_url' => :'String',
126
- :'username' => :'String',
127
- :'password' => :'String',
128
117
  :'pulp_labels' => :'Object',
129
118
  :'pulp_last_updated' => :'DateTime',
130
119
  :'download_concurrency' => :'Integer',
@@ -133,6 +122,7 @@ module PulpContainerClient
133
122
  :'connect_timeout' => :'Float',
134
123
  :'sock_connect_timeout' => :'Float',
135
124
  :'sock_read_timeout' => :'Float',
125
+ :'headers' => :'Array<Object>',
136
126
  :'rate_limit' => :'Integer',
137
127
  :'upstream_name' => :'String',
138
128
  :'include_tags' => :'Array<String>',
@@ -145,10 +135,7 @@ module PulpContainerClient
145
135
  Set.new([
146
136
  :'ca_cert',
147
137
  :'client_cert',
148
- :'client_key',
149
138
  :'proxy_url',
150
- :'username',
151
- :'password',
152
139
  :'total_timeout',
153
140
  :'connect_timeout',
154
141
  :'sock_connect_timeout',
@@ -198,10 +185,6 @@ module PulpContainerClient
198
185
  self.client_cert = attributes[:'client_cert']
199
186
  end
200
187
 
201
- if attributes.key?(:'client_key')
202
- self.client_key = attributes[:'client_key']
203
- end
204
-
205
188
  if attributes.key?(:'tls_validation')
206
189
  self.tls_validation = attributes[:'tls_validation']
207
190
  end
@@ -210,14 +193,6 @@ module PulpContainerClient
210
193
  self.proxy_url = attributes[:'proxy_url']
211
194
  end
212
195
 
213
- if attributes.key?(:'username')
214
- self.username = attributes[:'username']
215
- end
216
-
217
- if attributes.key?(:'password')
218
- self.password = attributes[:'password']
219
- end
220
-
221
196
  if attributes.key?(:'pulp_labels')
222
197
  self.pulp_labels = attributes[:'pulp_labels']
223
198
  end
@@ -250,6 +225,12 @@ module PulpContainerClient
250
225
  self.sock_read_timeout = attributes[:'sock_read_timeout']
251
226
  end
252
227
 
228
+ if attributes.key?(:'headers')
229
+ if (value = attributes[:'headers']).is_a?(Array)
230
+ self.headers = value
231
+ end
232
+ end
233
+
253
234
  if attributes.key?(:'rate_limit')
254
235
  self.rate_limit = attributes[:'rate_limit']
255
236
  end
@@ -385,11 +366,8 @@ module PulpContainerClient
385
366
  url == o.url &&
386
367
  ca_cert == o.ca_cert &&
387
368
  client_cert == o.client_cert &&
388
- client_key == o.client_key &&
389
369
  tls_validation == o.tls_validation &&
390
370
  proxy_url == o.proxy_url &&
391
- username == o.username &&
392
- password == o.password &&
393
371
  pulp_labels == o.pulp_labels &&
394
372
  pulp_last_updated == o.pulp_last_updated &&
395
373
  download_concurrency == o.download_concurrency &&
@@ -398,6 +376,7 @@ module PulpContainerClient
398
376
  connect_timeout == o.connect_timeout &&
399
377
  sock_connect_timeout == o.sock_connect_timeout &&
400
378
  sock_read_timeout == o.sock_read_timeout &&
379
+ headers == o.headers &&
401
380
  rate_limit == o.rate_limit &&
402
381
  upstream_name == o.upstream_name &&
403
382
  include_tags == o.include_tags &&
@@ -413,7 +392,7 @@ module PulpContainerClient
413
392
  # Calculates hash code according to all attributes.
414
393
  # @return [Integer] Hash code
415
394
  def hash
416
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, upstream_name, include_tags, exclude_tags].hash
395
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, upstream_name, include_tags, exclude_tags].hash
417
396
  end
418
397
 
419
398
  # Builds the object from hash
@@ -15,16 +15,16 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
19
- attr_accessor :base_path
20
-
21
- # RepositoryVersion to be served
22
- attr_accessor :repository_version
18
+ attr_accessor :pulp_labels
23
19
 
24
20
  # A unique name. Ex, `rawhide` and `stable`.
25
21
  attr_accessor :name
26
22
 
27
- attr_accessor :pulp_labels
23
+ # RepositoryVersion to be served
24
+ attr_accessor :repository_version
25
+
26
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
27
+ attr_accessor :base_path
28
28
 
29
29
  # The latest RepositoryVersion for this Repository will be served.
30
30
  attr_accessor :repository
@@ -41,10 +41,10 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'base_path' => :'base_path',
45
- :'repository_version' => :'repository_version',
46
- :'name' => :'name',
47
44
  :'pulp_labels' => :'pulp_labels',
45
+ :'name' => :'name',
46
+ :'repository_version' => :'repository_version',
47
+ :'base_path' => :'base_path',
48
48
  :'repository' => :'repository',
49
49
  :'content_guard' => :'content_guard',
50
50
  :'private' => :'private',
@@ -55,10 +55,10 @@ module PulpContainerClient
55
55
  # Attribute type mapping.
56
56
  def self.openapi_types
57
57
  {
58
- :'base_path' => :'String',
59
- :'repository_version' => :'String',
60
- :'name' => :'String',
61
58
  :'pulp_labels' => :'Object',
59
+ :'name' => :'String',
60
+ :'repository_version' => :'String',
61
+ :'base_path' => :'String',
62
62
  :'repository' => :'String',
63
63
  :'content_guard' => :'String',
64
64
  :'private' => :'Boolean',
@@ -90,20 +90,20 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
- if attributes.key?(:'base_path')
94
- self.base_path = attributes[:'base_path']
95
- end
96
-
97
- if attributes.key?(:'repository_version')
98
- self.repository_version = attributes[:'repository_version']
93
+ if attributes.key?(:'pulp_labels')
94
+ self.pulp_labels = attributes[:'pulp_labels']
99
95
  end
100
96
 
101
97
  if attributes.key?(:'name')
102
98
  self.name = attributes[:'name']
103
99
  end
104
100
 
105
- if attributes.key?(:'pulp_labels')
106
- self.pulp_labels = attributes[:'pulp_labels']
101
+ if attributes.key?(:'repository_version')
102
+ self.repository_version = attributes[:'repository_version']
103
+ end
104
+
105
+ if attributes.key?(:'base_path')
106
+ self.base_path = attributes[:'base_path']
107
107
  end
108
108
 
109
109
  if attributes.key?(:'repository')
@@ -141,10 +141,10 @@ module PulpContainerClient
141
141
  def ==(o)
142
142
  return true if self.equal?(o)
143
143
  self.class == o.class &&
144
- base_path == o.base_path &&
145
- repository_version == o.repository_version &&
146
- name == o.name &&
147
144
  pulp_labels == o.pulp_labels &&
145
+ name == o.name &&
146
+ repository_version == o.repository_version &&
147
+ base_path == o.base_path &&
148
148
  repository == o.repository &&
149
149
  content_guard == o.content_guard &&
150
150
  private == o.private &&
@@ -160,7 +160,7 @@ module PulpContainerClient
160
160
  # Calculates hash code according to all attributes.
161
161
  # @return [Integer] Hash code
162
162
  def hash
163
- [base_path, repository_version, name, pulp_labels, repository, content_guard, private, description].hash
163
+ [pulp_labels, name, repository_version, base_path, repository, content_guard, private, description].hash
164
164
  end
165
165
 
166
166
  # Builds the object from hash
@@ -33,9 +33,15 @@ module PulpContainerClient
33
33
  # If True, TLS peer validation must be performed.
34
34
  attr_accessor :tls_validation
35
35
 
36
- # The proxy URL. Format: scheme://user:password@host:port
36
+ # The proxy URL. Format: scheme://host:port
37
37
  attr_accessor :proxy_url
38
38
 
39
+ # The username to authenticte to the proxy.
40
+ attr_accessor :proxy_username
41
+
42
+ # The password to authenticte to the proxy.
43
+ attr_accessor :proxy_password
44
+
39
45
  # The username to be used for authentication when syncing.
40
46
  attr_accessor :username
41
47
 
@@ -62,6 +68,9 @@ module PulpContainerClient
62
68
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
63
69
  attr_accessor :sock_read_timeout
64
70
 
71
+ # Headers for aiohttp.Clientsession
72
+ attr_accessor :headers
73
+
65
74
  # Limits total download rate in requests per second
66
75
  attr_accessor :rate_limit
67
76
 
@@ -84,6 +93,8 @@ module PulpContainerClient
84
93
  :'client_key' => :'client_key',
85
94
  :'tls_validation' => :'tls_validation',
86
95
  :'proxy_url' => :'proxy_url',
96
+ :'proxy_username' => :'proxy_username',
97
+ :'proxy_password' => :'proxy_password',
87
98
  :'username' => :'username',
88
99
  :'password' => :'password',
89
100
  :'pulp_labels' => :'pulp_labels',
@@ -93,6 +104,7 @@ module PulpContainerClient
93
104
  :'connect_timeout' => :'connect_timeout',
94
105
  :'sock_connect_timeout' => :'sock_connect_timeout',
95
106
  :'sock_read_timeout' => :'sock_read_timeout',
107
+ :'headers' => :'headers',
96
108
  :'rate_limit' => :'rate_limit',
97
109
  :'upstream_name' => :'upstream_name',
98
110
  :'include_tags' => :'include_tags',
@@ -110,6 +122,8 @@ module PulpContainerClient
110
122
  :'client_key' => :'String',
111
123
  :'tls_validation' => :'Boolean',
112
124
  :'proxy_url' => :'String',
125
+ :'proxy_username' => :'String',
126
+ :'proxy_password' => :'String',
113
127
  :'username' => :'String',
114
128
  :'password' => :'String',
115
129
  :'pulp_labels' => :'Object',
@@ -119,6 +133,7 @@ module PulpContainerClient
119
133
  :'connect_timeout' => :'Float',
120
134
  :'sock_connect_timeout' => :'Float',
121
135
  :'sock_read_timeout' => :'Float',
136
+ :'headers' => :'Array<Object>',
122
137
  :'rate_limit' => :'Integer',
123
138
  :'upstream_name' => :'String',
124
139
  :'include_tags' => :'Array<String>',
@@ -133,6 +148,8 @@ module PulpContainerClient
133
148
  :'client_cert',
134
149
  :'client_key',
135
150
  :'proxy_url',
151
+ :'proxy_username',
152
+ :'proxy_password',
136
153
  :'username',
137
154
  :'password',
138
155
  :'total_timeout',
@@ -188,6 +205,14 @@ module PulpContainerClient
188
205
  self.proxy_url = attributes[:'proxy_url']
189
206
  end
190
207
 
208
+ if attributes.key?(:'proxy_username')
209
+ self.proxy_username = attributes[:'proxy_username']
210
+ end
211
+
212
+ if attributes.key?(:'proxy_password')
213
+ self.proxy_password = attributes[:'proxy_password']
214
+ end
215
+
191
216
  if attributes.key?(:'username')
192
217
  self.username = attributes[:'username']
193
218
  end
@@ -224,6 +249,12 @@ module PulpContainerClient
224
249
  self.sock_read_timeout = attributes[:'sock_read_timeout']
225
250
  end
226
251
 
252
+ if attributes.key?(:'headers')
253
+ if (value = attributes[:'headers']).is_a?(Array)
254
+ self.headers = value
255
+ end
256
+ end
257
+
227
258
  if attributes.key?(:'rate_limit')
228
259
  self.rate_limit = attributes[:'rate_limit']
229
260
  end
@@ -345,6 +376,8 @@ module PulpContainerClient
345
376
  client_key == o.client_key &&
346
377
  tls_validation == o.tls_validation &&
347
378
  proxy_url == o.proxy_url &&
379
+ proxy_username == o.proxy_username &&
380
+ proxy_password == o.proxy_password &&
348
381
  username == o.username &&
349
382
  password == o.password &&
350
383
  pulp_labels == o.pulp_labels &&
@@ -354,6 +387,7 @@ module PulpContainerClient
354
387
  connect_timeout == o.connect_timeout &&
355
388
  sock_connect_timeout == o.sock_connect_timeout &&
356
389
  sock_read_timeout == o.sock_read_timeout &&
390
+ headers == o.headers &&
357
391
  rate_limit == o.rate_limit &&
358
392
  upstream_name == o.upstream_name &&
359
393
  include_tags == o.include_tags &&
@@ -369,7 +403,7 @@ module PulpContainerClient
369
403
  # Calculates hash code according to all attributes.
370
404
  # @return [Integer] Hash code
371
405
  def hash
372
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, upstream_name, include_tags, exclude_tags].hash
406
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, upstream_name, include_tags, exclude_tags].hash
373
407
  end
374
408
 
375
409
  # Builds the object from hash