pulp_container_client 2.27.0 → 2.27.2

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.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -7
  3. data/docs/ContainerContainerDistribution.md +4 -4
  4. data/docs/ContainerContainerDistributionResponse.md +14 -14
  5. data/docs/ContainerContainerPullThroughDistribution.md +4 -4
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
  7. data/docs/ContainerContainerPullThroughRemote.md +6 -6
  8. data/docs/ContainerContainerPullThroughRemoteResponse.md +8 -8
  9. data/docs/ContainerContainerPushRepository.md +4 -4
  10. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  11. data/docs/ContainerContainerRemote.md +6 -6
  12. data/docs/ContainerContainerRemoteResponse.md +8 -8
  13. data/docs/ContentBlobsApi.md +6 -6
  14. data/docs/ContentManifestsApi.md +6 -6
  15. data/docs/ContentSignaturesApi.md +6 -6
  16. data/docs/ContentTagsApi.md +6 -6
  17. data/docs/DistributionsContainerApi.md +4 -4
  18. data/docs/DistributionsPullThroughApi.md +4 -4
  19. data/docs/PatchedcontainerContainerDistribution.md +4 -4
  20. data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
  21. data/docs/PatchedcontainerContainerPullThroughRemote.md +6 -6
  22. data/docs/PatchedcontainerContainerPushRepository.md +4 -4
  23. data/docs/PatchedcontainerContainerRemote.md +6 -6
  24. data/docs/RepositoriesContainerApi.md +2 -2
  25. data/docs/RepositoriesContainerPushApi.md +2 -2
  26. data/lib/pulp_container_client/api/content_blobs_api.rb +6 -6
  27. data/lib/pulp_container_client/api/content_manifests_api.rb +6 -6
  28. data/lib/pulp_container_client/api/content_signatures_api.rb +6 -6
  29. data/lib/pulp_container_client/api/content_tags_api.rb +6 -6
  30. data/lib/pulp_container_client/api/distributions_container_api.rb +4 -4
  31. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +4 -4
  32. data/lib/pulp_container_client/api/repositories_container_api.rb +2 -2
  33. data/lib/pulp_container_client/api/repositories_container_push_api.rb +2 -2
  34. data/lib/pulp_container_client/models/container_container_distribution.rb +21 -21
  35. data/lib/pulp_container_client/models/container_container_distribution_response.rb +60 -60
  36. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +21 -21
  37. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +60 -60
  38. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +32 -32
  39. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +44 -44
  40. data/lib/pulp_container_client/models/container_container_push_repository.rb +21 -21
  41. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +59 -59
  42. data/lib/pulp_container_client/models/container_container_remote.rb +33 -33
  43. data/lib/pulp_container_client/models/container_container_remote_response.rb +45 -45
  44. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +21 -21
  45. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +21 -21
  46. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +32 -32
  47. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +21 -21
  48. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +33 -33
  49. data/lib/pulp_container_client/version.rb +1 -1
  50. data/spec/api/content_blobs_api_spec.rb +3 -3
  51. data/spec/api/content_manifests_api_spec.rb +3 -3
  52. data/spec/api/content_signatures_api_spec.rb +3 -3
  53. data/spec/api/content_tags_api_spec.rb +3 -3
  54. data/spec/api/distributions_container_api_spec.rb +2 -2
  55. data/spec/api/distributions_pull_through_api_spec.rb +2 -2
  56. data/spec/api/repositories_container_api_spec.rb +1 -1
  57. data/spec/api/repositories_container_push_api_spec.rb +1 -1
  58. data/spec/models/container_container_distribution_response_spec.rb +11 -11
  59. data/spec/models/container_container_distribution_spec.rb +4 -4
  60. data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -11
  61. data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
  62. data/spec/models/container_container_pull_through_remote_response_spec.rb +10 -10
  63. data/spec/models/container_container_pull_through_remote_spec.rb +17 -17
  64. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  65. data/spec/models/container_container_push_repository_spec.rb +4 -4
  66. data/spec/models/container_container_remote_response_spec.rb +10 -10
  67. data/spec/models/container_container_remote_spec.rb +17 -17
  68. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  69. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
  70. data/spec/models/patchedcontainer_container_pull_through_remote_spec.rb +17 -17
  71. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  72. data/spec/models/patchedcontainer_container_remote_spec.rb +17 -17
  73. metadata +2 -2
@@ -16,49 +16,49 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepositoryResponse
19
- # A reference to an associated signing service.
20
- attr_accessor :manifest_signing_service
21
-
22
- # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
23
- attr_accessor :pulp_last_updated
24
-
25
- attr_accessor :pulp_labels
26
-
27
19
  # An optional description.
28
20
  attr_accessor :description
29
21
 
30
22
  # Timestamp of creation.
31
23
  attr_accessor :pulp_created
32
24
 
33
- attr_accessor :latest_version_href
34
-
35
25
  # Retain X versions of the repository. Default is null which retains all versions.
36
26
  attr_accessor :retain_repo_versions
37
27
 
38
- # A unique name for this repository.
39
- attr_accessor :name
28
+ # The Pulp Resource Name (PRN).
29
+ attr_accessor :prn
40
30
 
41
31
  attr_accessor :versions_href
42
32
 
43
- # The Pulp Resource Name (PRN).
44
- attr_accessor :prn
33
+ # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
34
+ attr_accessor :pulp_last_updated
35
+
36
+ attr_accessor :pulp_labels
45
37
 
46
38
  attr_accessor :pulp_href
47
39
 
40
+ attr_accessor :latest_version_href
41
+
42
+ # A reference to an associated signing service.
43
+ attr_accessor :manifest_signing_service
44
+
45
+ # A unique name for this repository.
46
+ attr_accessor :name
47
+
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
- :'manifest_signing_service' => :'manifest_signing_service',
52
- :'pulp_last_updated' => :'pulp_last_updated',
53
- :'pulp_labels' => :'pulp_labels',
54
51
  :'description' => :'description',
55
52
  :'pulp_created' => :'pulp_created',
56
- :'latest_version_href' => :'latest_version_href',
57
53
  :'retain_repo_versions' => :'retain_repo_versions',
58
- :'name' => :'name',
59
- :'versions_href' => :'versions_href',
60
54
  :'prn' => :'prn',
61
- :'pulp_href' => :'pulp_href'
55
+ :'versions_href' => :'versions_href',
56
+ :'pulp_last_updated' => :'pulp_last_updated',
57
+ :'pulp_labels' => :'pulp_labels',
58
+ :'pulp_href' => :'pulp_href',
59
+ :'latest_version_href' => :'latest_version_href',
60
+ :'manifest_signing_service' => :'manifest_signing_service',
61
+ :'name' => :'name'
62
62
  }
63
63
  end
64
64
 
@@ -70,26 +70,26 @@ module PulpContainerClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'manifest_signing_service' => :'String',
74
- :'pulp_last_updated' => :'Time',
75
- :'pulp_labels' => :'Hash<String, String>',
76
73
  :'description' => :'String',
77
74
  :'pulp_created' => :'Time',
78
- :'latest_version_href' => :'String',
79
75
  :'retain_repo_versions' => :'Integer',
80
- :'name' => :'String',
81
- :'versions_href' => :'String',
82
76
  :'prn' => :'String',
83
- :'pulp_href' => :'String'
77
+ :'versions_href' => :'String',
78
+ :'pulp_last_updated' => :'Time',
79
+ :'pulp_labels' => :'Hash<String, String>',
80
+ :'pulp_href' => :'String',
81
+ :'latest_version_href' => :'String',
82
+ :'manifest_signing_service' => :'String',
83
+ :'name' => :'String'
84
84
  }
85
85
  end
86
86
 
87
87
  # List of attributes with nullable: true
88
88
  def self.openapi_nullable
89
89
  Set.new([
90
- :'manifest_signing_service',
91
90
  :'description',
92
91
  :'retain_repo_versions',
92
+ :'manifest_signing_service',
93
93
  ])
94
94
  end
95
95
 
@@ -108,8 +108,24 @@ module PulpContainerClient
108
108
  h[k.to_sym] = v
109
109
  }
110
110
 
111
- if attributes.key?(:'manifest_signing_service')
112
- self.manifest_signing_service = attributes[:'manifest_signing_service']
111
+ if attributes.key?(:'description')
112
+ self.description = attributes[:'description']
113
+ end
114
+
115
+ if attributes.key?(:'pulp_created')
116
+ self.pulp_created = attributes[:'pulp_created']
117
+ end
118
+
119
+ if attributes.key?(:'retain_repo_versions')
120
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
121
+ end
122
+
123
+ if attributes.key?(:'prn')
124
+ self.prn = attributes[:'prn']
125
+ end
126
+
127
+ if attributes.key?(:'versions_href')
128
+ self.versions_href = attributes[:'versions_href']
113
129
  end
114
130
 
115
131
  if attributes.key?(:'pulp_last_updated')
@@ -122,20 +138,16 @@ module PulpContainerClient
122
138
  end
123
139
  end
124
140
 
125
- if attributes.key?(:'description')
126
- self.description = attributes[:'description']
127
- end
128
-
129
- if attributes.key?(:'pulp_created')
130
- self.pulp_created = attributes[:'pulp_created']
141
+ if attributes.key?(:'pulp_href')
142
+ self.pulp_href = attributes[:'pulp_href']
131
143
  end
132
144
 
133
145
  if attributes.key?(:'latest_version_href')
134
146
  self.latest_version_href = attributes[:'latest_version_href']
135
147
  end
136
148
 
137
- if attributes.key?(:'retain_repo_versions')
138
- self.retain_repo_versions = attributes[:'retain_repo_versions']
149
+ if attributes.key?(:'manifest_signing_service')
150
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
139
151
  end
140
152
 
141
153
  if attributes.key?(:'name')
@@ -143,18 +155,6 @@ module PulpContainerClient
143
155
  else
144
156
  self.name = nil
145
157
  end
146
-
147
- if attributes.key?(:'versions_href')
148
- self.versions_href = attributes[:'versions_href']
149
- end
150
-
151
- if attributes.key?(:'prn')
152
- self.prn = attributes[:'prn']
153
- end
154
-
155
- if attributes.key?(:'pulp_href')
156
- self.pulp_href = attributes[:'pulp_href']
157
- end
158
158
  end
159
159
 
160
160
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -182,17 +182,17 @@ module PulpContainerClient
182
182
  def ==(o)
183
183
  return true if self.equal?(o)
184
184
  self.class == o.class &&
185
- manifest_signing_service == o.manifest_signing_service &&
186
- pulp_last_updated == o.pulp_last_updated &&
187
- pulp_labels == o.pulp_labels &&
188
185
  description == o.description &&
189
186
  pulp_created == o.pulp_created &&
190
- latest_version_href == o.latest_version_href &&
191
187
  retain_repo_versions == o.retain_repo_versions &&
192
- name == o.name &&
193
- versions_href == o.versions_href &&
194
188
  prn == o.prn &&
195
- pulp_href == o.pulp_href
189
+ versions_href == o.versions_href &&
190
+ pulp_last_updated == o.pulp_last_updated &&
191
+ pulp_labels == o.pulp_labels &&
192
+ pulp_href == o.pulp_href &&
193
+ latest_version_href == o.latest_version_href &&
194
+ manifest_signing_service == o.manifest_signing_service &&
195
+ name == o.name
196
196
  end
197
197
 
198
198
  # @see the `==` method
@@ -204,7 +204,7 @@ module PulpContainerClient
204
204
  # Calculates hash code according to all attributes.
205
205
  # @return [Integer] Hash code
206
206
  def hash
207
- [manifest_signing_service, pulp_last_updated, pulp_labels, description, pulp_created, latest_version_href, retain_repo_versions, name, versions_href, prn, pulp_href].hash
207
+ [description, pulp_created, retain_repo_versions, prn, versions_href, pulp_last_updated, pulp_labels, pulp_href, latest_version_href, manifest_signing_service, name].hash
208
208
  end
209
209
 
210
210
  # Builds the object from hash
@@ -22,6 +22,11 @@ module PulpContainerClient
22
22
  # The URL of an external content source.
23
23
  attr_accessor :url
24
24
 
25
+ attr_accessor :pulp_labels
26
+
27
+ # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
28
+ attr_accessor :policy
29
+
25
30
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
26
31
  attr_accessor :ca_cert
27
32
 
@@ -49,17 +54,9 @@ module PulpContainerClient
49
54
  # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
50
55
  attr_accessor :password
51
56
 
52
- attr_accessor :pulp_labels
53
-
54
- # Total number of simultaneous connections. If not set then the default value will be used.
55
- attr_accessor :download_concurrency
56
-
57
57
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
58
58
  attr_accessor :max_retries
59
59
 
60
- # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
61
- attr_accessor :policy
62
-
63
60
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
64
61
  attr_accessor :total_timeout
65
62
 
@@ -75,6 +72,9 @@ module PulpContainerClient
75
72
  # Headers for aiohttp.Clientsession
76
73
  attr_accessor :headers
77
74
 
75
+ # Total number of simultaneous connections. If not set then the default value will be used.
76
+ attr_accessor :download_concurrency
77
+
78
78
  # Limits requests per second for each concurrent downloader
79
79
  attr_accessor :rate_limit
80
80
 
@@ -117,6 +117,8 @@ module PulpContainerClient
117
117
  {
118
118
  :'name' => :'name',
119
119
  :'url' => :'url',
120
+ :'pulp_labels' => :'pulp_labels',
121
+ :'policy' => :'policy',
120
122
  :'ca_cert' => :'ca_cert',
121
123
  :'client_cert' => :'client_cert',
122
124
  :'client_key' => :'client_key',
@@ -126,15 +128,13 @@ module PulpContainerClient
126
128
  :'proxy_password' => :'proxy_password',
127
129
  :'username' => :'username',
128
130
  :'password' => :'password',
129
- :'pulp_labels' => :'pulp_labels',
130
- :'download_concurrency' => :'download_concurrency',
131
131
  :'max_retries' => :'max_retries',
132
- :'policy' => :'policy',
133
132
  :'total_timeout' => :'total_timeout',
134
133
  :'connect_timeout' => :'connect_timeout',
135
134
  :'sock_connect_timeout' => :'sock_connect_timeout',
136
135
  :'sock_read_timeout' => :'sock_read_timeout',
137
136
  :'headers' => :'headers',
137
+ :'download_concurrency' => :'download_concurrency',
138
138
  :'rate_limit' => :'rate_limit',
139
139
  :'upstream_name' => :'upstream_name',
140
140
  :'include_tags' => :'include_tags',
@@ -153,6 +153,8 @@ module PulpContainerClient
153
153
  {
154
154
  :'name' => :'String',
155
155
  :'url' => :'String',
156
+ :'pulp_labels' => :'Hash<String, String>',
157
+ :'policy' => :'Policy692Enum',
156
158
  :'ca_cert' => :'String',
157
159
  :'client_cert' => :'String',
158
160
  :'client_key' => :'String',
@@ -162,15 +164,13 @@ module PulpContainerClient
162
164
  :'proxy_password' => :'String',
163
165
  :'username' => :'String',
164
166
  :'password' => :'String',
165
- :'pulp_labels' => :'Hash<String, String>',
166
- :'download_concurrency' => :'Integer',
167
167
  :'max_retries' => :'Integer',
168
- :'policy' => :'Policy692Enum',
169
168
  :'total_timeout' => :'Float',
170
169
  :'connect_timeout' => :'Float',
171
170
  :'sock_connect_timeout' => :'Float',
172
171
  :'sock_read_timeout' => :'Float',
173
172
  :'headers' => :'Array<Object>',
173
+ :'download_concurrency' => :'Integer',
174
174
  :'rate_limit' => :'Integer',
175
175
  :'upstream_name' => :'String',
176
176
  :'include_tags' => :'Array<String>',
@@ -190,12 +190,12 @@ module PulpContainerClient
190
190
  :'proxy_password',
191
191
  :'username',
192
192
  :'password',
193
- :'download_concurrency',
194
193
  :'max_retries',
195
194
  :'total_timeout',
196
195
  :'connect_timeout',
197
196
  :'sock_connect_timeout',
198
197
  :'sock_read_timeout',
198
+ :'download_concurrency',
199
199
  :'rate_limit',
200
200
  :'include_tags',
201
201
  :'exclude_tags',
@@ -229,6 +229,16 @@ module PulpContainerClient
229
229
  self.url = nil
230
230
  end
231
231
 
232
+ if attributes.key?(:'pulp_labels')
233
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
234
+ self.pulp_labels = value
235
+ end
236
+ end
237
+
238
+ if attributes.key?(:'policy')
239
+ self.policy = attributes[:'policy']
240
+ end
241
+
232
242
  if attributes.key?(:'ca_cert')
233
243
  self.ca_cert = attributes[:'ca_cert']
234
244
  end
@@ -265,24 +275,10 @@ module PulpContainerClient
265
275
  self.password = attributes[:'password']
266
276
  end
267
277
 
268
- if attributes.key?(:'pulp_labels')
269
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
270
- self.pulp_labels = value
271
- end
272
- end
273
-
274
- if attributes.key?(:'download_concurrency')
275
- self.download_concurrency = attributes[:'download_concurrency']
276
- end
277
-
278
278
  if attributes.key?(:'max_retries')
279
279
  self.max_retries = attributes[:'max_retries']
280
280
  end
281
281
 
282
- if attributes.key?(:'policy')
283
- self.policy = attributes[:'policy']
284
- end
285
-
286
282
  if attributes.key?(:'total_timeout')
287
283
  self.total_timeout = attributes[:'total_timeout']
288
284
  end
@@ -305,6 +301,10 @@ module PulpContainerClient
305
301
  end
306
302
  end
307
303
 
304
+ if attributes.key?(:'download_concurrency')
305
+ self.download_concurrency = attributes[:'download_concurrency']
306
+ end
307
+
308
308
  if attributes.key?(:'rate_limit')
309
309
  self.rate_limit = attributes[:'rate_limit']
310
310
  end
@@ -625,6 +625,8 @@ module PulpContainerClient
625
625
  self.class == o.class &&
626
626
  name == o.name &&
627
627
  url == o.url &&
628
+ pulp_labels == o.pulp_labels &&
629
+ policy == o.policy &&
628
630
  ca_cert == o.ca_cert &&
629
631
  client_cert == o.client_cert &&
630
632
  client_key == o.client_key &&
@@ -634,15 +636,13 @@ module PulpContainerClient
634
636
  proxy_password == o.proxy_password &&
635
637
  username == o.username &&
636
638
  password == o.password &&
637
- pulp_labels == o.pulp_labels &&
638
- download_concurrency == o.download_concurrency &&
639
639
  max_retries == o.max_retries &&
640
- policy == o.policy &&
641
640
  total_timeout == o.total_timeout &&
642
641
  connect_timeout == o.connect_timeout &&
643
642
  sock_connect_timeout == o.sock_connect_timeout &&
644
643
  sock_read_timeout == o.sock_read_timeout &&
645
644
  headers == o.headers &&
645
+ download_concurrency == o.download_concurrency &&
646
646
  rate_limit == o.rate_limit &&
647
647
  upstream_name == o.upstream_name &&
648
648
  include_tags == o.include_tags &&
@@ -659,7 +659,7 @@ module PulpContainerClient
659
659
  # Calculates hash code according to all attributes.
660
660
  # @return [Integer] Hash code
661
661
  def hash
662
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, upstream_name, include_tags, exclude_tags, sigstore].hash
662
+ [name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, upstream_name, include_tags, exclude_tags, sigstore].hash
663
663
  end
664
664
 
665
665
  # Builds the object from hash
@@ -33,6 +33,14 @@ module PulpContainerClient
33
33
  # The URL of an external content source.
34
34
  attr_accessor :url
35
35
 
36
+ attr_accessor :pulp_labels
37
+
38
+ # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
39
+ attr_accessor :policy
40
+
41
+ # List of hidden (write only) fields
42
+ attr_accessor :hidden_fields
43
+
36
44
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
37
45
  attr_accessor :ca_cert
38
46
 
@@ -45,17 +53,9 @@ module PulpContainerClient
45
53
  # The proxy URL. Format: scheme://host:port
46
54
  attr_accessor :proxy_url
47
55
 
48
- attr_accessor :pulp_labels
49
-
50
- # Total number of simultaneous connections. If not set then the default value will be used.
51
- attr_accessor :download_concurrency
52
-
53
56
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
54
57
  attr_accessor :max_retries
55
58
 
56
- # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
57
- attr_accessor :policy
58
-
59
59
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
60
60
  attr_accessor :total_timeout
61
61
 
@@ -71,12 +71,12 @@ module PulpContainerClient
71
71
  # Headers for aiohttp.Clientsession
72
72
  attr_accessor :headers
73
73
 
74
+ # Total number of simultaneous connections. If not set then the default value will be used.
75
+ attr_accessor :download_concurrency
76
+
74
77
  # Limits requests per second for each concurrent downloader
75
78
  attr_accessor :rate_limit
76
79
 
77
- # List of hidden (write only) fields
78
- attr_accessor :hidden_fields
79
-
80
80
  # Name of the upstream repository
81
81
  attr_accessor :upstream_name
82
82
 
@@ -120,21 +120,21 @@ module PulpContainerClient
120
120
  :'pulp_last_updated' => :'pulp_last_updated',
121
121
  :'name' => :'name',
122
122
  :'url' => :'url',
123
+ :'pulp_labels' => :'pulp_labels',
124
+ :'policy' => :'policy',
125
+ :'hidden_fields' => :'hidden_fields',
123
126
  :'ca_cert' => :'ca_cert',
124
127
  :'client_cert' => :'client_cert',
125
128
  :'tls_validation' => :'tls_validation',
126
129
  :'proxy_url' => :'proxy_url',
127
- :'pulp_labels' => :'pulp_labels',
128
- :'download_concurrency' => :'download_concurrency',
129
130
  :'max_retries' => :'max_retries',
130
- :'policy' => :'policy',
131
131
  :'total_timeout' => :'total_timeout',
132
132
  :'connect_timeout' => :'connect_timeout',
133
133
  :'sock_connect_timeout' => :'sock_connect_timeout',
134
134
  :'sock_read_timeout' => :'sock_read_timeout',
135
135
  :'headers' => :'headers',
136
+ :'download_concurrency' => :'download_concurrency',
136
137
  :'rate_limit' => :'rate_limit',
137
- :'hidden_fields' => :'hidden_fields',
138
138
  :'upstream_name' => :'upstream_name',
139
139
  :'include_tags' => :'include_tags',
140
140
  :'exclude_tags' => :'exclude_tags',
@@ -156,21 +156,21 @@ module PulpContainerClient
156
156
  :'pulp_last_updated' => :'Time',
157
157
  :'name' => :'String',
158
158
  :'url' => :'String',
159
+ :'pulp_labels' => :'Hash<String, String>',
160
+ :'policy' => :'Policy692Enum',
161
+ :'hidden_fields' => :'Array<ContainerContainerPullThroughRemoteResponseHiddenFieldsInner>',
159
162
  :'ca_cert' => :'String',
160
163
  :'client_cert' => :'String',
161
164
  :'tls_validation' => :'Boolean',
162
165
  :'proxy_url' => :'String',
163
- :'pulp_labels' => :'Hash<String, String>',
164
- :'download_concurrency' => :'Integer',
165
166
  :'max_retries' => :'Integer',
166
- :'policy' => :'Policy692Enum',
167
167
  :'total_timeout' => :'Float',
168
168
  :'connect_timeout' => :'Float',
169
169
  :'sock_connect_timeout' => :'Float',
170
170
  :'sock_read_timeout' => :'Float',
171
171
  :'headers' => :'Array<Object>',
172
+ :'download_concurrency' => :'Integer',
172
173
  :'rate_limit' => :'Integer',
173
- :'hidden_fields' => :'Array<ContainerContainerPullThroughRemoteResponseHiddenFieldsInner>',
174
174
  :'upstream_name' => :'String',
175
175
  :'include_tags' => :'Array<String>',
176
176
  :'exclude_tags' => :'Array<String>',
@@ -184,12 +184,12 @@ module PulpContainerClient
184
184
  :'ca_cert',
185
185
  :'client_cert',
186
186
  :'proxy_url',
187
- :'download_concurrency',
188
187
  :'max_retries',
189
188
  :'total_timeout',
190
189
  :'connect_timeout',
191
190
  :'sock_connect_timeout',
192
191
  :'sock_read_timeout',
192
+ :'download_concurrency',
193
193
  :'rate_limit',
194
194
  :'include_tags',
195
195
  :'exclude_tags',
@@ -239,6 +239,22 @@ module PulpContainerClient
239
239
  self.url = nil
240
240
  end
241
241
 
242
+ if attributes.key?(:'pulp_labels')
243
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
244
+ self.pulp_labels = value
245
+ end
246
+ end
247
+
248
+ if attributes.key?(:'policy')
249
+ self.policy = attributes[:'policy']
250
+ end
251
+
252
+ if attributes.key?(:'hidden_fields')
253
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
254
+ self.hidden_fields = value
255
+ end
256
+ end
257
+
242
258
  if attributes.key?(:'ca_cert')
243
259
  self.ca_cert = attributes[:'ca_cert']
244
260
  end
@@ -255,24 +271,10 @@ module PulpContainerClient
255
271
  self.proxy_url = attributes[:'proxy_url']
256
272
  end
257
273
 
258
- if attributes.key?(:'pulp_labels')
259
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
260
- self.pulp_labels = value
261
- end
262
- end
263
-
264
- if attributes.key?(:'download_concurrency')
265
- self.download_concurrency = attributes[:'download_concurrency']
266
- end
267
-
268
274
  if attributes.key?(:'max_retries')
269
275
  self.max_retries = attributes[:'max_retries']
270
276
  end
271
277
 
272
- if attributes.key?(:'policy')
273
- self.policy = attributes[:'policy']
274
- end
275
-
276
278
  if attributes.key?(:'total_timeout')
277
279
  self.total_timeout = attributes[:'total_timeout']
278
280
  end
@@ -295,14 +297,12 @@ module PulpContainerClient
295
297
  end
296
298
  end
297
299
 
298
- if attributes.key?(:'rate_limit')
299
- self.rate_limit = attributes[:'rate_limit']
300
+ if attributes.key?(:'download_concurrency')
301
+ self.download_concurrency = attributes[:'download_concurrency']
300
302
  end
301
303
 
302
- if attributes.key?(:'hidden_fields')
303
- if (value = attributes[:'hidden_fields']).is_a?(Array)
304
- self.hidden_fields = value
305
- end
304
+ if attributes.key?(:'rate_limit')
305
+ self.rate_limit = attributes[:'rate_limit']
306
306
  end
307
307
 
308
308
  if attributes.key?(:'upstream_name')
@@ -429,21 +429,21 @@ module PulpContainerClient
429
429
  pulp_last_updated == o.pulp_last_updated &&
430
430
  name == o.name &&
431
431
  url == o.url &&
432
+ pulp_labels == o.pulp_labels &&
433
+ policy == o.policy &&
434
+ hidden_fields == o.hidden_fields &&
432
435
  ca_cert == o.ca_cert &&
433
436
  client_cert == o.client_cert &&
434
437
  tls_validation == o.tls_validation &&
435
438
  proxy_url == o.proxy_url &&
436
- pulp_labels == o.pulp_labels &&
437
- download_concurrency == o.download_concurrency &&
438
439
  max_retries == o.max_retries &&
439
- policy == o.policy &&
440
440
  total_timeout == o.total_timeout &&
441
441
  connect_timeout == o.connect_timeout &&
442
442
  sock_connect_timeout == o.sock_connect_timeout &&
443
443
  sock_read_timeout == o.sock_read_timeout &&
444
444
  headers == o.headers &&
445
+ download_concurrency == o.download_concurrency &&
445
446
  rate_limit == o.rate_limit &&
446
- hidden_fields == o.hidden_fields &&
447
447
  upstream_name == o.upstream_name &&
448
448
  include_tags == o.include_tags &&
449
449
  exclude_tags == o.exclude_tags &&
@@ -459,7 +459,7 @@ module PulpContainerClient
459
459
  # Calculates hash code according to all attributes.
460
460
  # @return [Integer] Hash code
461
461
  def hash
462
- [pulp_href, prn, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, upstream_name, include_tags, exclude_tags, sigstore].hash
462
+ [pulp_href, prn, pulp_created, pulp_last_updated, name, url, pulp_labels, policy, hidden_fields, ca_cert, client_cert, tls_validation, proxy_url, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, upstream_name, include_tags, exclude_tags, sigstore].hash
463
463
  end
464
464
 
465
465
  # Builds the object from hash