pulp_container_client 2.2.2 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -13
  3. data/docs/ContainerContainerDistribution.md +11 -5
  4. data/docs/ContainerContainerDistributionResponse.md +16 -10
  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/{ContentguardsContentRedirectApi.md → ContentGuardsContentRedirectApi.md} +25 -19
  11. data/docs/DistributionsContainerApi.md +8 -0
  12. data/docs/PatchedcontainerContainerDistribution.md +11 -5
  13. data/docs/PatchedcontainerContainerRemote.md +4 -0
  14. data/docs/PatchedcontainerContainerRepository.md +3 -1
  15. data/docs/PulpContainerNamespacesApi.md +16 -5
  16. data/docs/RemotesContainerApi.md +8 -0
  17. data/docs/RepositoriesContainerApi.md +8 -0
  18. data/docs/RepositoriesContainerPushApi.md +73 -61
  19. data/docs/RepositoriesContainerVersionsApi.md +2 -2
  20. data/lib/pulp_container_client/api/{contentguards_content_redirect_api.rb → content_guards_content_redirect_api.rb} +31 -22
  21. data/lib/pulp_container_client/api/distributions_container_api.rb +12 -0
  22. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -7
  23. data/lib/pulp_container_client/api/remotes_container_api.rb +12 -0
  24. data/lib/pulp_container_client/api/repositories_container_api.rb +12 -0
  25. data/lib/pulp_container_client/api/repositories_container_push_api.rb +120 -94
  26. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +4 -4
  27. data/lib/pulp_container_client/models/container_container_distribution.rb +51 -21
  28. data/lib/pulp_container_client/models/container_container_distribution_response.rb +77 -47
  29. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +10 -1
  30. data/lib/pulp_container_client/models/container_container_remote.rb +21 -1
  31. data/lib/pulp_container_client/models/container_container_remote_response.rb +21 -1
  32. data/lib/pulp_container_client/models/container_container_repository.rb +10 -1
  33. data/lib/pulp_container_client/models/container_container_repository_response.rb +10 -1
  34. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +46 -16
  35. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +21 -1
  36. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +10 -1
  37. data/lib/pulp_container_client/version.rb +1 -1
  38. data/lib/pulp_container_client.rb +1 -2
  39. data/spec/api/{contentguards_content_redirect_api_spec.rb → content_guards_content_redirect_api_spec.rb} +9 -6
  40. data/spec/api/distributions_container_api_spec.rb +4 -0
  41. data/spec/api/pulp_container_namespaces_api_spec.rb +7 -2
  42. data/spec/api/remotes_container_api_spec.rb +4 -0
  43. data/spec/api/repositories_container_api_spec.rb +4 -0
  44. data/spec/api/repositories_container_push_api_spec.rb +32 -26
  45. data/spec/api/repositories_container_versions_api_spec.rb +2 -2
  46. data/spec/models/container_container_distribution_response_spec.rb +25 -7
  47. data/spec/models/container_container_distribution_spec.rb +20 -2
  48. data/spec/models/container_container_push_repository_response_spec.rb +6 -0
  49. data/spec/models/container_container_remote_response_spec.rb +12 -0
  50. data/spec/models/container_container_remote_spec.rb +12 -0
  51. data/spec/models/container_container_repository_response_spec.rb +6 -0
  52. data/spec/models/container_container_repository_spec.rb +6 -0
  53. data/spec/models/patchedcontainer_container_distribution_spec.rb +20 -2
  54. data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
  55. data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
  56. metadata +43 -47
  57. data/docs/ContainerContainerPushRepository.md +0 -21
  58. data/lib/pulp_container_client/models/container_container_push_repository.rb +0 -234
  59. data/spec/models/container_container_push_repository_spec.rb +0 -53
@@ -15,6 +15,14 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
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
+ attr_accessor :pulp_labels
22
+
23
+ # RepositoryVersion to be served
24
+ attr_accessor :repository_version
25
+
18
26
  # An optional content-guard. If none is specified, a default one will be used.
19
27
  attr_accessor :content_guard
20
28
 
@@ -24,39 +32,46 @@ module PulpContainerClient
24
32
  # The latest RepositoryVersion for this Repository will be served.
25
33
  attr_accessor :repository
26
34
 
27
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
28
- attr_accessor :base_path
35
+ # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
36
+ attr_accessor :private
29
37
 
30
- # RepositoryVersion to be served
31
- attr_accessor :repository_version
38
+ # An optional description.
39
+ attr_accessor :description
32
40
 
33
41
  # Attribute mapping from ruby-style variable name to JSON key.
34
42
  def self.attribute_map
35
43
  {
44
+ :'base_path' => :'base_path',
45
+ :'pulp_labels' => :'pulp_labels',
46
+ :'repository_version' => :'repository_version',
36
47
  :'content_guard' => :'content_guard',
37
48
  :'name' => :'name',
38
49
  :'repository' => :'repository',
39
- :'base_path' => :'base_path',
40
- :'repository_version' => :'repository_version'
50
+ :'private' => :'private',
51
+ :'description' => :'description'
41
52
  }
42
53
  end
43
54
 
44
55
  # Attribute type mapping.
45
56
  def self.openapi_types
46
57
  {
58
+ :'base_path' => :'String',
59
+ :'pulp_labels' => :'Object',
60
+ :'repository_version' => :'String',
47
61
  :'content_guard' => :'String',
48
62
  :'name' => :'String',
49
63
  :'repository' => :'String',
50
- :'base_path' => :'String',
51
- :'repository_version' => :'String'
64
+ :'private' => :'Boolean',
65
+ :'description' => :'String'
52
66
  }
53
67
  end
54
68
 
55
69
  # List of attributes with nullable: true
56
70
  def self.openapi_nullable
57
71
  Set.new([
72
+ :'repository_version',
58
73
  :'repository',
59
- :'repository_version'
74
+ :'description'
60
75
  ])
61
76
  end
62
77
 
@@ -75,6 +90,18 @@ module PulpContainerClient
75
90
  h[k.to_sym] = v
76
91
  }
77
92
 
93
+ if attributes.key?(:'base_path')
94
+ self.base_path = attributes[:'base_path']
95
+ end
96
+
97
+ if attributes.key?(:'pulp_labels')
98
+ self.pulp_labels = attributes[:'pulp_labels']
99
+ end
100
+
101
+ if attributes.key?(:'repository_version')
102
+ self.repository_version = attributes[:'repository_version']
103
+ end
104
+
78
105
  if attributes.key?(:'content_guard')
79
106
  self.content_guard = attributes[:'content_guard']
80
107
  end
@@ -87,12 +114,12 @@ module PulpContainerClient
87
114
  self.repository = attributes[:'repository']
88
115
  end
89
116
 
90
- if attributes.key?(:'base_path')
91
- self.base_path = attributes[:'base_path']
117
+ if attributes.key?(:'private')
118
+ self.private = attributes[:'private']
92
119
  end
93
120
 
94
- if attributes.key?(:'repository_version')
95
- self.repository_version = attributes[:'repository_version']
121
+ if attributes.key?(:'description')
122
+ self.description = attributes[:'description']
96
123
  end
97
124
  end
98
125
 
@@ -100,22 +127,22 @@ module PulpContainerClient
100
127
  # @return Array for valid properties with the reasons
101
128
  def list_invalid_properties
102
129
  invalid_properties = Array.new
103
- if @name.nil?
104
- invalid_properties.push('invalid value for "name", name cannot be nil.')
105
- end
106
-
107
130
  if @base_path.nil?
108
131
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
109
132
  end
110
133
 
134
+ if @name.nil?
135
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
136
+ end
137
+
111
138
  invalid_properties
112
139
  end
113
140
 
114
141
  # Check to see if the all the properties in the model are valid
115
142
  # @return true if the model is valid
116
143
  def valid?
117
- return false if @name.nil?
118
144
  return false if @base_path.nil?
145
+ return false if @name.nil?
119
146
  true
120
147
  end
121
148
 
@@ -124,11 +151,14 @@ module PulpContainerClient
124
151
  def ==(o)
125
152
  return true if self.equal?(o)
126
153
  self.class == o.class &&
154
+ base_path == o.base_path &&
155
+ pulp_labels == o.pulp_labels &&
156
+ repository_version == o.repository_version &&
127
157
  content_guard == o.content_guard &&
128
158
  name == o.name &&
129
159
  repository == o.repository &&
130
- base_path == o.base_path &&
131
- repository_version == o.repository_version
160
+ private == o.private &&
161
+ description == o.description
132
162
  end
133
163
 
134
164
  # @see the `==` method
@@ -140,7 +170,7 @@ module PulpContainerClient
140
170
  # Calculates hash code according to all attributes.
141
171
  # @return [Integer] Hash code
142
172
  def hash
143
- [content_guard, name, repository, base_path, repository_version].hash
173
+ [base_path, pulp_labels, repository_version, content_guard, name, repository, private, description].hash
144
174
  end
145
175
 
146
176
  # Builds the object from hash
@@ -15,67 +15,82 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
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
+ attr_accessor :pulp_labels
22
+
23
+ attr_accessor :pulp_href
24
+
25
+ # RepositoryVersion to be served
26
+ attr_accessor :repository_version
27
+
18
28
  # An optional content-guard. If none is specified, a default one will be used.
19
29
  attr_accessor :content_guard
20
30
 
21
- # A unique name. Ex, `rawhide` and `stable`.
22
- attr_accessor :name
23
-
24
31
  # Timestamp of creation.
25
32
  attr_accessor :pulp_created
26
33
 
34
+ # A unique name. Ex, `rawhide` and `stable`.
35
+ attr_accessor :name
36
+
27
37
  # The latest RepositoryVersion for this Repository will be served.
28
38
  attr_accessor :repository
29
39
 
30
- attr_accessor :pulp_href
31
-
32
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
33
- attr_accessor :base_path
34
-
35
- # RepositoryVersion to be served
36
- attr_accessor :repository_version
37
-
38
40
  # The Registry hostame/name/ to use with docker pull command defined by this distribution.
39
41
  attr_accessor :registry_path
40
42
 
41
43
  # Namespace this distribution belongs to.
42
44
  attr_accessor :namespace
43
45
 
46
+ # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
47
+ attr_accessor :private
48
+
49
+ # An optional description.
50
+ attr_accessor :description
51
+
44
52
  # Attribute mapping from ruby-style variable name to JSON key.
45
53
  def self.attribute_map
46
54
  {
55
+ :'base_path' => :'base_path',
56
+ :'pulp_labels' => :'pulp_labels',
57
+ :'pulp_href' => :'pulp_href',
58
+ :'repository_version' => :'repository_version',
47
59
  :'content_guard' => :'content_guard',
48
- :'name' => :'name',
49
60
  :'pulp_created' => :'pulp_created',
61
+ :'name' => :'name',
50
62
  :'repository' => :'repository',
51
- :'pulp_href' => :'pulp_href',
52
- :'base_path' => :'base_path',
53
- :'repository_version' => :'repository_version',
54
63
  :'registry_path' => :'registry_path',
55
- :'namespace' => :'namespace'
64
+ :'namespace' => :'namespace',
65
+ :'private' => :'private',
66
+ :'description' => :'description'
56
67
  }
57
68
  end
58
69
 
59
70
  # Attribute type mapping.
60
71
  def self.openapi_types
61
72
  {
73
+ :'base_path' => :'String',
74
+ :'pulp_labels' => :'Object',
75
+ :'pulp_href' => :'String',
76
+ :'repository_version' => :'String',
62
77
  :'content_guard' => :'String',
63
- :'name' => :'String',
64
78
  :'pulp_created' => :'DateTime',
79
+ :'name' => :'String',
65
80
  :'repository' => :'String',
66
- :'pulp_href' => :'String',
67
- :'base_path' => :'String',
68
- :'repository_version' => :'String',
69
81
  :'registry_path' => :'String',
70
- :'namespace' => :'String'
82
+ :'namespace' => :'String',
83
+ :'private' => :'Boolean',
84
+ :'description' => :'String'
71
85
  }
72
86
  end
73
87
 
74
88
  # List of attributes with nullable: true
75
89
  def self.openapi_nullable
76
90
  Set.new([
77
- :'repository',
78
91
  :'repository_version',
92
+ :'repository',
93
+ :'description'
79
94
  ])
80
95
  end
81
96
 
@@ -94,32 +109,36 @@ module PulpContainerClient
94
109
  h[k.to_sym] = v
95
110
  }
96
111
 
97
- if attributes.key?(:'content_guard')
98
- self.content_guard = attributes[:'content_guard']
112
+ if attributes.key?(:'base_path')
113
+ self.base_path = attributes[:'base_path']
99
114
  end
100
115
 
101
- if attributes.key?(:'name')
102
- self.name = attributes[:'name']
116
+ if attributes.key?(:'pulp_labels')
117
+ self.pulp_labels = attributes[:'pulp_labels']
103
118
  end
104
119
 
105
- if attributes.key?(:'pulp_created')
106
- self.pulp_created = attributes[:'pulp_created']
120
+ if attributes.key?(:'pulp_href')
121
+ self.pulp_href = attributes[:'pulp_href']
107
122
  end
108
123
 
109
- if attributes.key?(:'repository')
110
- self.repository = attributes[:'repository']
124
+ if attributes.key?(:'repository_version')
125
+ self.repository_version = attributes[:'repository_version']
111
126
  end
112
127
 
113
- if attributes.key?(:'pulp_href')
114
- self.pulp_href = attributes[:'pulp_href']
128
+ if attributes.key?(:'content_guard')
129
+ self.content_guard = attributes[:'content_guard']
115
130
  end
116
131
 
117
- if attributes.key?(:'base_path')
118
- self.base_path = attributes[:'base_path']
132
+ if attributes.key?(:'pulp_created')
133
+ self.pulp_created = attributes[:'pulp_created']
119
134
  end
120
135
 
121
- if attributes.key?(:'repository_version')
122
- self.repository_version = attributes[:'repository_version']
136
+ if attributes.key?(:'name')
137
+ self.name = attributes[:'name']
138
+ end
139
+
140
+ if attributes.key?(:'repository')
141
+ self.repository = attributes[:'repository']
123
142
  end
124
143
 
125
144
  if attributes.key?(:'registry_path')
@@ -129,28 +148,36 @@ module PulpContainerClient
129
148
  if attributes.key?(:'namespace')
130
149
  self.namespace = attributes[:'namespace']
131
150
  end
151
+
152
+ if attributes.key?(:'private')
153
+ self.private = attributes[:'private']
154
+ end
155
+
156
+ if attributes.key?(:'description')
157
+ self.description = attributes[:'description']
158
+ end
132
159
  end
133
160
 
134
161
  # Show invalid properties with the reasons. Usually used together with valid?
135
162
  # @return Array for valid properties with the reasons
136
163
  def list_invalid_properties
137
164
  invalid_properties = Array.new
138
- if @name.nil?
139
- invalid_properties.push('invalid value for "name", name cannot be nil.')
140
- end
141
-
142
165
  if @base_path.nil?
143
166
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
144
167
  end
145
168
 
169
+ if @name.nil?
170
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
171
+ end
172
+
146
173
  invalid_properties
147
174
  end
148
175
 
149
176
  # Check to see if the all the properties in the model are valid
150
177
  # @return true if the model is valid
151
178
  def valid?
152
- return false if @name.nil?
153
179
  return false if @base_path.nil?
180
+ return false if @name.nil?
154
181
  true
155
182
  end
156
183
 
@@ -159,15 +186,18 @@ module PulpContainerClient
159
186
  def ==(o)
160
187
  return true if self.equal?(o)
161
188
  self.class == o.class &&
189
+ base_path == o.base_path &&
190
+ pulp_labels == o.pulp_labels &&
191
+ pulp_href == o.pulp_href &&
192
+ repository_version == o.repository_version &&
162
193
  content_guard == o.content_guard &&
163
- name == o.name &&
164
194
  pulp_created == o.pulp_created &&
195
+ name == o.name &&
165
196
  repository == o.repository &&
166
- pulp_href == o.pulp_href &&
167
- base_path == o.base_path &&
168
- repository_version == o.repository_version &&
169
197
  registry_path == o.registry_path &&
170
- namespace == o.namespace
198
+ namespace == o.namespace &&
199
+ private == o.private &&
200
+ description == o.description
171
201
  end
172
202
 
173
203
  # @see the `==` method
@@ -179,7 +209,7 @@ module PulpContainerClient
179
209
  # Calculates hash code according to all attributes.
180
210
  # @return [Integer] Hash code
181
211
  def hash
182
- [content_guard, name, pulp_created, repository, pulp_href, base_path, repository_version, registry_path, namespace].hash
212
+ [base_path, pulp_labels, pulp_href, repository_version, content_guard, pulp_created, name, repository, registry_path, namespace, private, description].hash
183
213
  end
184
214
 
185
215
  # 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
@@ -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