pulp_container_client 2.3.0.dev01611374760 → 2.3.0.dev01611890753

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.

Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +7 -5
  4. data/docs/ContainerContainerDistributionResponse.md +10 -8
  5. data/docs/ContainerContainerPushRepositoryResponse.md +2 -0
  6. data/docs/ContainerContainerRemote.md +4 -0
  7. data/docs/ContainerContainerRemoteResponse.md +4 -0
  8. data/docs/ContainerContainerRepository.md +3 -1
  9. data/docs/ContainerContainerRepositoryResponse.md +2 -0
  10. data/docs/PatchedcontainerContainerDistribution.md +7 -5
  11. data/docs/PatchedcontainerContainerRemote.md +4 -0
  12. data/docs/PatchedcontainerContainerRepository.md +3 -1
  13. data/lib/pulp_container_client/models/container_container_distribution.rb +28 -19
  14. data/lib/pulp_container_client/models/container_container_distribution_response.rb +41 -32
  15. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +10 -1
  16. data/lib/pulp_container_client/models/container_container_remote.rb +21 -1
  17. data/lib/pulp_container_client/models/container_container_remote_response.rb +21 -1
  18. data/lib/pulp_container_client/models/container_container_repository.rb +10 -1
  19. data/lib/pulp_container_client/models/container_container_repository_response.rb +10 -1
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +28 -19
  21. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +21 -1
  22. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +10 -1
  23. data/lib/pulp_container_client/version.rb +1 -1
  24. data/spec/models/container_container_distribution_response_spec.rb +11 -5
  25. data/spec/models/container_container_distribution_spec.rb +9 -3
  26. data/spec/models/container_container_push_repository_response_spec.rb +6 -0
  27. data/spec/models/container_container_remote_response_spec.rb +12 -0
  28. data/spec/models/container_container_remote_spec.rb +12 -0
  29. data/spec/models/container_container_repository_response_spec.rb +6 -0
  30. data/spec/models/container_container_repository_spec.rb +6 -0
  31. data/spec/models/patchedcontainer_container_distribution_spec.rb +9 -3
  32. data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
  33. data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
  34. metadata +40 -40
@@ -22,6 +22,8 @@ module PulpContainerClient
22
22
 
23
23
  attr_accessor :versions_href
24
24
 
25
+ attr_accessor :pulp_labels
26
+
25
27
  attr_accessor :latest_version_href
26
28
 
27
29
  # A unique name for this repository.
@@ -38,6 +40,7 @@ module PulpContainerClient
38
40
  :'pulp_href' => :'pulp_href',
39
41
  :'pulp_created' => :'pulp_created',
40
42
  :'versions_href' => :'versions_href',
43
+ :'pulp_labels' => :'pulp_labels',
41
44
  :'latest_version_href' => :'latest_version_href',
42
45
  :'name' => :'name',
43
46
  :'description' => :'description',
@@ -51,6 +54,7 @@ module PulpContainerClient
51
54
  :'pulp_href' => :'String',
52
55
  :'pulp_created' => :'DateTime',
53
56
  :'versions_href' => :'String',
57
+ :'pulp_labels' => :'Object',
54
58
  :'latest_version_href' => :'String',
55
59
  :'name' => :'String',
56
60
  :'description' => :'String',
@@ -93,6 +97,10 @@ module PulpContainerClient
93
97
  self.versions_href = attributes[:'versions_href']
94
98
  end
95
99
 
100
+ if attributes.key?(:'pulp_labels')
101
+ self.pulp_labels = attributes[:'pulp_labels']
102
+ end
103
+
96
104
  if attributes.key?(:'latest_version_href')
97
105
  self.latest_version_href = attributes[:'latest_version_href']
98
106
  end
@@ -136,6 +144,7 @@ module PulpContainerClient
136
144
  pulp_href == o.pulp_href &&
137
145
  pulp_created == o.pulp_created &&
138
146
  versions_href == o.versions_href &&
147
+ pulp_labels == o.pulp_labels &&
139
148
  latest_version_href == o.latest_version_href &&
140
149
  name == o.name &&
141
150
  description == o.description &&
@@ -151,7 +160,7 @@ module PulpContainerClient
151
160
  # Calculates hash code according to all attributes.
152
161
  # @return [Integer] Hash code
153
162
  def hash
154
- [pulp_href, pulp_created, versions_href, latest_version_href, name, description, remote].hash
163
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote].hash
155
164
  end
156
165
 
157
166
  # Builds the object from hash
@@ -42,6 +42,8 @@ module PulpContainerClient
42
42
  # The password to be used for authentication when syncing.
43
43
  attr_accessor :password
44
44
 
45
+ attr_accessor :pulp_labels
46
+
45
47
  # Total number of simultaneous connections.
46
48
  attr_accessor :download_concurrency
47
49
 
@@ -60,6 +62,9 @@ module PulpContainerClient
60
62
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
61
63
  attr_accessor :sock_read_timeout
62
64
 
65
+ # Limits total download rate in requests per second
66
+ attr_accessor :rate_limit
67
+
63
68
  # Name of the upstream repository
64
69
  attr_accessor :upstream_name
65
70
 
@@ -81,12 +86,14 @@ module PulpContainerClient
81
86
  :'proxy_url' => :'proxy_url',
82
87
  :'username' => :'username',
83
88
  :'password' => :'password',
89
+ :'pulp_labels' => :'pulp_labels',
84
90
  :'download_concurrency' => :'download_concurrency',
85
91
  :'policy' => :'policy',
86
92
  :'total_timeout' => :'total_timeout',
87
93
  :'connect_timeout' => :'connect_timeout',
88
94
  :'sock_connect_timeout' => :'sock_connect_timeout',
89
95
  :'sock_read_timeout' => :'sock_read_timeout',
96
+ :'rate_limit' => :'rate_limit',
90
97
  :'upstream_name' => :'upstream_name',
91
98
  :'include_tags' => :'include_tags',
92
99
  :'exclude_tags' => :'exclude_tags'
@@ -105,12 +112,14 @@ module PulpContainerClient
105
112
  :'proxy_url' => :'String',
106
113
  :'username' => :'String',
107
114
  :'password' => :'String',
115
+ :'pulp_labels' => :'Object',
108
116
  :'download_concurrency' => :'Integer',
109
117
  :'policy' => :'PolicyEnum',
110
118
  :'total_timeout' => :'Float',
111
119
  :'connect_timeout' => :'Float',
112
120
  :'sock_connect_timeout' => :'Float',
113
121
  :'sock_read_timeout' => :'Float',
122
+ :'rate_limit' => :'Integer',
114
123
  :'upstream_name' => :'String',
115
124
  :'include_tags' => :'Array<String>',
116
125
  :'exclude_tags' => :'Array<String>'
@@ -130,6 +139,7 @@ module PulpContainerClient
130
139
  :'connect_timeout',
131
140
  :'sock_connect_timeout',
132
141
  :'sock_read_timeout',
142
+ :'rate_limit',
133
143
  :'include_tags',
134
144
  :'exclude_tags'
135
145
  ])
@@ -186,6 +196,10 @@ module PulpContainerClient
186
196
  self.password = attributes[:'password']
187
197
  end
188
198
 
199
+ if attributes.key?(:'pulp_labels')
200
+ self.pulp_labels = attributes[:'pulp_labels']
201
+ end
202
+
189
203
  if attributes.key?(:'download_concurrency')
190
204
  self.download_concurrency = attributes[:'download_concurrency']
191
205
  end
@@ -210,6 +224,10 @@ module PulpContainerClient
210
224
  self.sock_read_timeout = attributes[:'sock_read_timeout']
211
225
  end
212
226
 
227
+ if attributes.key?(:'rate_limit')
228
+ self.rate_limit = attributes[:'rate_limit']
229
+ end
230
+
213
231
  if attributes.key?(:'upstream_name')
214
232
  self.upstream_name = attributes[:'upstream_name']
215
233
  end
@@ -344,12 +362,14 @@ module PulpContainerClient
344
362
  proxy_url == o.proxy_url &&
345
363
  username == o.username &&
346
364
  password == o.password &&
365
+ pulp_labels == o.pulp_labels &&
347
366
  download_concurrency == o.download_concurrency &&
348
367
  policy == o.policy &&
349
368
  total_timeout == o.total_timeout &&
350
369
  connect_timeout == o.connect_timeout &&
351
370
  sock_connect_timeout == o.sock_connect_timeout &&
352
371
  sock_read_timeout == o.sock_read_timeout &&
372
+ rate_limit == o.rate_limit &&
353
373
  upstream_name == o.upstream_name &&
354
374
  include_tags == o.include_tags &&
355
375
  exclude_tags == o.exclude_tags
@@ -364,7 +384,7 @@ module PulpContainerClient
364
384
  # Calculates hash code according to all attributes.
365
385
  # @return [Integer] Hash code
366
386
  def hash
367
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, upstream_name, include_tags, exclude_tags].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
368
388
  end
369
389
 
370
390
  # Builds the object from hash
@@ -47,6 +47,8 @@ module PulpContainerClient
47
47
  # The password to be used for authentication when syncing.
48
48
  attr_accessor :password
49
49
 
50
+ attr_accessor :pulp_labels
51
+
50
52
  # Timestamp of the most recent update of the remote.
51
53
  attr_accessor :pulp_last_updated
52
54
 
@@ -68,6 +70,9 @@ module PulpContainerClient
68
70
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
69
71
  attr_accessor :sock_read_timeout
70
72
 
73
+ # Limits total download rate in requests per second
74
+ attr_accessor :rate_limit
75
+
71
76
  # Name of the upstream repository
72
77
  attr_accessor :upstream_name
73
78
 
@@ -91,6 +96,7 @@ module PulpContainerClient
91
96
  :'proxy_url' => :'proxy_url',
92
97
  :'username' => :'username',
93
98
  :'password' => :'password',
99
+ :'pulp_labels' => :'pulp_labels',
94
100
  :'pulp_last_updated' => :'pulp_last_updated',
95
101
  :'download_concurrency' => :'download_concurrency',
96
102
  :'policy' => :'policy',
@@ -98,6 +104,7 @@ module PulpContainerClient
98
104
  :'connect_timeout' => :'connect_timeout',
99
105
  :'sock_connect_timeout' => :'sock_connect_timeout',
100
106
  :'sock_read_timeout' => :'sock_read_timeout',
107
+ :'rate_limit' => :'rate_limit',
101
108
  :'upstream_name' => :'upstream_name',
102
109
  :'include_tags' => :'include_tags',
103
110
  :'exclude_tags' => :'exclude_tags'
@@ -118,6 +125,7 @@ module PulpContainerClient
118
125
  :'proxy_url' => :'String',
119
126
  :'username' => :'String',
120
127
  :'password' => :'String',
128
+ :'pulp_labels' => :'Object',
121
129
  :'pulp_last_updated' => :'DateTime',
122
130
  :'download_concurrency' => :'Integer',
123
131
  :'policy' => :'PolicyEnum',
@@ -125,6 +133,7 @@ module PulpContainerClient
125
133
  :'connect_timeout' => :'Float',
126
134
  :'sock_connect_timeout' => :'Float',
127
135
  :'sock_read_timeout' => :'Float',
136
+ :'rate_limit' => :'Integer',
128
137
  :'upstream_name' => :'String',
129
138
  :'include_tags' => :'Array<String>',
130
139
  :'exclude_tags' => :'Array<String>'
@@ -144,6 +153,7 @@ module PulpContainerClient
144
153
  :'connect_timeout',
145
154
  :'sock_connect_timeout',
146
155
  :'sock_read_timeout',
156
+ :'rate_limit',
147
157
  :'include_tags',
148
158
  :'exclude_tags'
149
159
  ])
@@ -208,6 +218,10 @@ module PulpContainerClient
208
218
  self.password = attributes[:'password']
209
219
  end
210
220
 
221
+ if attributes.key?(:'pulp_labels')
222
+ self.pulp_labels = attributes[:'pulp_labels']
223
+ end
224
+
211
225
  if attributes.key?(:'pulp_last_updated')
212
226
  self.pulp_last_updated = attributes[:'pulp_last_updated']
213
227
  end
@@ -236,6 +250,10 @@ module PulpContainerClient
236
250
  self.sock_read_timeout = attributes[:'sock_read_timeout']
237
251
  end
238
252
 
253
+ if attributes.key?(:'rate_limit')
254
+ self.rate_limit = attributes[:'rate_limit']
255
+ end
256
+
239
257
  if attributes.key?(:'upstream_name')
240
258
  self.upstream_name = attributes[:'upstream_name']
241
259
  end
@@ -372,6 +390,7 @@ module PulpContainerClient
372
390
  proxy_url == o.proxy_url &&
373
391
  username == o.username &&
374
392
  password == o.password &&
393
+ pulp_labels == o.pulp_labels &&
375
394
  pulp_last_updated == o.pulp_last_updated &&
376
395
  download_concurrency == o.download_concurrency &&
377
396
  policy == o.policy &&
@@ -379,6 +398,7 @@ module PulpContainerClient
379
398
  connect_timeout == o.connect_timeout &&
380
399
  sock_connect_timeout == o.sock_connect_timeout &&
381
400
  sock_read_timeout == o.sock_read_timeout &&
401
+ rate_limit == o.rate_limit &&
382
402
  upstream_name == o.upstream_name &&
383
403
  include_tags == o.include_tags &&
384
404
  exclude_tags == o.exclude_tags
@@ -393,7 +413,7 @@ module PulpContainerClient
393
413
  # Calculates hash code according to all attributes.
394
414
  # @return [Integer] Hash code
395
415
  def hash
396
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, upstream_name, include_tags, exclude_tags].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
397
417
  end
398
418
 
399
419
  # Builds the object from hash
@@ -15,6 +15,8 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Repositories.
17
17
  class ContainerContainerRepository
18
+ attr_accessor :pulp_labels
19
+
18
20
  # A unique name for this repository.
19
21
  attr_accessor :name
20
22
 
@@ -26,6 +28,7 @@ module PulpContainerClient
26
28
  # Attribute mapping from ruby-style variable name to JSON key.
27
29
  def self.attribute_map
28
30
  {
31
+ :'pulp_labels' => :'pulp_labels',
29
32
  :'name' => :'name',
30
33
  :'description' => :'description',
31
34
  :'remote' => :'remote'
@@ -35,6 +38,7 @@ module PulpContainerClient
35
38
  # Attribute type mapping.
36
39
  def self.openapi_types
37
40
  {
41
+ :'pulp_labels' => :'Object',
38
42
  :'name' => :'String',
39
43
  :'description' => :'String',
40
44
  :'remote' => :'String'
@@ -64,6 +68,10 @@ module PulpContainerClient
64
68
  h[k.to_sym] = v
65
69
  }
66
70
 
71
+ if attributes.key?(:'pulp_labels')
72
+ self.pulp_labels = attributes[:'pulp_labels']
73
+ end
74
+
67
75
  if attributes.key?(:'name')
68
76
  self.name = attributes[:'name']
69
77
  end
@@ -100,6 +108,7 @@ module PulpContainerClient
100
108
  def ==(o)
101
109
  return true if self.equal?(o)
102
110
  self.class == o.class &&
111
+ pulp_labels == o.pulp_labels &&
103
112
  name == o.name &&
104
113
  description == o.description &&
105
114
  remote == o.remote
@@ -114,7 +123,7 @@ module PulpContainerClient
114
123
  # Calculates hash code according to all attributes.
115
124
  # @return [Integer] Hash code
116
125
  def hash
117
- [name, description, remote].hash
126
+ [pulp_labels, name, description, remote].hash
118
127
  end
119
128
 
120
129
  # Builds the object from hash
@@ -22,6 +22,8 @@ module PulpContainerClient
22
22
 
23
23
  attr_accessor :versions_href
24
24
 
25
+ attr_accessor :pulp_labels
26
+
25
27
  attr_accessor :latest_version_href
26
28
 
27
29
  # A unique name for this repository.
@@ -38,6 +40,7 @@ module PulpContainerClient
38
40
  :'pulp_href' => :'pulp_href',
39
41
  :'pulp_created' => :'pulp_created',
40
42
  :'versions_href' => :'versions_href',
43
+ :'pulp_labels' => :'pulp_labels',
41
44
  :'latest_version_href' => :'latest_version_href',
42
45
  :'name' => :'name',
43
46
  :'description' => :'description',
@@ -51,6 +54,7 @@ module PulpContainerClient
51
54
  :'pulp_href' => :'String',
52
55
  :'pulp_created' => :'DateTime',
53
56
  :'versions_href' => :'String',
57
+ :'pulp_labels' => :'Object',
54
58
  :'latest_version_href' => :'String',
55
59
  :'name' => :'String',
56
60
  :'description' => :'String',
@@ -93,6 +97,10 @@ module PulpContainerClient
93
97
  self.versions_href = attributes[:'versions_href']
94
98
  end
95
99
 
100
+ if attributes.key?(:'pulp_labels')
101
+ self.pulp_labels = attributes[:'pulp_labels']
102
+ end
103
+
96
104
  if attributes.key?(:'latest_version_href')
97
105
  self.latest_version_href = attributes[:'latest_version_href']
98
106
  end
@@ -136,6 +144,7 @@ module PulpContainerClient
136
144
  pulp_href == o.pulp_href &&
137
145
  pulp_created == o.pulp_created &&
138
146
  versions_href == o.versions_href &&
147
+ pulp_labels == o.pulp_labels &&
139
148
  latest_version_href == o.latest_version_href &&
140
149
  name == o.name &&
141
150
  description == o.description &&
@@ -151,7 +160,7 @@ module PulpContainerClient
151
160
  # Calculates hash code according to all attributes.
152
161
  # @return [Integer] Hash code
153
162
  def hash
154
- [pulp_href, pulp_created, versions_href, latest_version_href, name, description, remote].hash
163
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote].hash
155
164
  end
156
165
 
157
166
  # Builds the object from hash
@@ -15,28 +15,31 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
- # The latest RepositoryVersion for this Repository will be served.
19
- attr_accessor :repository
20
-
21
- # An optional content-guard. If none is specified, a default one will be used.
22
- attr_accessor :content_guard
23
-
24
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\")
25
19
  attr_accessor :base_path
26
20
 
21
+ attr_accessor :pulp_labels
22
+
23
+ # The latest RepositoryVersion for this Repository will be served.
24
+ attr_accessor :repository
25
+
27
26
  # RepositoryVersion to be served
28
27
  attr_accessor :repository_version
29
28
 
29
+ # An optional content-guard. If none is specified, a default one will be used.
30
+ attr_accessor :content_guard
31
+
30
32
  # A unique name. Ex, `rawhide` and `stable`.
31
33
  attr_accessor :name
32
34
 
33
35
  # Attribute mapping from ruby-style variable name to JSON key.
34
36
  def self.attribute_map
35
37
  {
36
- :'repository' => :'repository',
37
- :'content_guard' => :'content_guard',
38
38
  :'base_path' => :'base_path',
39
+ :'pulp_labels' => :'pulp_labels',
40
+ :'repository' => :'repository',
39
41
  :'repository_version' => :'repository_version',
42
+ :'content_guard' => :'content_guard',
40
43
  :'name' => :'name'
41
44
  }
42
45
  end
@@ -44,10 +47,11 @@ module PulpContainerClient
44
47
  # Attribute type mapping.
45
48
  def self.openapi_types
46
49
  {
47
- :'repository' => :'String',
48
- :'content_guard' => :'String',
49
50
  :'base_path' => :'String',
51
+ :'pulp_labels' => :'Object',
52
+ :'repository' => :'String',
50
53
  :'repository_version' => :'String',
54
+ :'content_guard' => :'String',
51
55
  :'name' => :'String'
52
56
  }
53
57
  end
@@ -75,22 +79,26 @@ module PulpContainerClient
75
79
  h[k.to_sym] = v
76
80
  }
77
81
 
78
- if attributes.key?(:'repository')
79
- self.repository = attributes[:'repository']
82
+ if attributes.key?(:'base_path')
83
+ self.base_path = attributes[:'base_path']
80
84
  end
81
85
 
82
- if attributes.key?(:'content_guard')
83
- self.content_guard = attributes[:'content_guard']
86
+ if attributes.key?(:'pulp_labels')
87
+ self.pulp_labels = attributes[:'pulp_labels']
84
88
  end
85
89
 
86
- if attributes.key?(:'base_path')
87
- self.base_path = attributes[:'base_path']
90
+ if attributes.key?(:'repository')
91
+ self.repository = attributes[:'repository']
88
92
  end
89
93
 
90
94
  if attributes.key?(:'repository_version')
91
95
  self.repository_version = attributes[:'repository_version']
92
96
  end
93
97
 
98
+ if attributes.key?(:'content_guard')
99
+ self.content_guard = attributes[:'content_guard']
100
+ end
101
+
94
102
  if attributes.key?(:'name')
95
103
  self.name = attributes[:'name']
96
104
  end
@@ -114,10 +122,11 @@ module PulpContainerClient
114
122
  def ==(o)
115
123
  return true if self.equal?(o)
116
124
  self.class == o.class &&
117
- repository == o.repository &&
118
- content_guard == o.content_guard &&
119
125
  base_path == o.base_path &&
126
+ pulp_labels == o.pulp_labels &&
127
+ repository == o.repository &&
120
128
  repository_version == o.repository_version &&
129
+ content_guard == o.content_guard &&
121
130
  name == o.name
122
131
  end
123
132
 
@@ -130,7 +139,7 @@ module PulpContainerClient
130
139
  # Calculates hash code according to all attributes.
131
140
  # @return [Integer] Hash code
132
141
  def hash
133
- [repository, content_guard, base_path, repository_version, name].hash
142
+ [base_path, pulp_labels, repository, repository_version, content_guard, name].hash
134
143
  end
135
144
 
136
145
  # Builds the object from hash