pulp_container_client 2.14.5 → 2.14.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -5
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +1 -1
- data/docs/ContentBlobsApi.md +6 -2
- data/docs/ContentManifestsApi.md +8 -4
- data/docs/ContentSignaturesApi.md +6 -2
- data/docs/ContentTagsApi.md +8 -4
- data/docs/DistributionsContainerApi.md +6 -2
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/PatchedcontainerContainerRemote.md +1 -1
- data/docs/PulpContainerNamespacesApi.md +6 -2
- data/docs/RemotesContainerApi.md +6 -2
- data/docs/RepositoriesContainerApi.md +6 -2
- data/docs/RepositoriesContainerPushApi.md +6 -2
- data/docs/RepositoriesContainerPushVersionsApi.md +4 -2
- data/docs/RepositoriesContainerVersionsApi.md +4 -2
- data/lib/pulp_container_client/api/content_blobs_api.rb +8 -2
- data/lib/pulp_container_client/api/content_manifests_api.rb +10 -4
- data/lib/pulp_container_client/api/content_signatures_api.rb +8 -2
- data/lib/pulp_container_client/api/content_tags_api.rb +10 -4
- data/lib/pulp_container_client/api/distributions_container_api.rb +8 -2
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +8 -2
- data/lib/pulp_container_client/api/remotes_container_api.rb +8 -2
- data/lib/pulp_container_client/api/repositories_container_api.rb +8 -2
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +8 -2
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +5 -2
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +5 -2
- data/lib/pulp_container_client/models/container_container_distribution.rb +49 -49
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +38 -38
- data/lib/pulp_container_client/models/container_container_push_repository.rb +42 -42
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +41 -41
- data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
- data/lib/pulp_container_client/models/container_container_remote_response.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +40 -40
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +1 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +3 -1
- data/spec/api/content_manifests_api_spec.rb +4 -2
- data/spec/api/content_signatures_api_spec.rb +3 -1
- data/spec/api/content_tags_api_spec.rb +4 -2
- data/spec/api/distributions_container_api_spec.rb +3 -1
- data/spec/api/pulp_container_namespaces_api_spec.rb +3 -1
- data/spec/api/remotes_container_api_spec.rb +3 -1
- data/spec/api/repositories_container_api_spec.rb +3 -1
- data/spec/api/repositories_container_push_api_spec.rb +3 -1
- data/spec/api/repositories_container_push_versions_api_spec.rb +2 -1
- data/spec/api/repositories_container_versions_api_spec.rb +2 -1
- data/spec/models/container_container_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +49 -49
@@ -15,65 +15,65 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
attr_accessor :pulp_labels
|
19
|
-
|
20
18
|
# A unique name for this repository.
|
21
19
|
attr_accessor :name
|
22
20
|
|
23
|
-
|
21
|
+
# An optional description.
|
22
|
+
attr_accessor :description
|
24
23
|
|
25
24
|
# A reference to an associated signing service.
|
26
25
|
attr_accessor :manifest_signing_service
|
27
26
|
|
27
|
+
attr_accessor :pulp_href
|
28
|
+
|
29
|
+
attr_accessor :versions_href
|
30
|
+
|
31
|
+
attr_accessor :pulp_labels
|
32
|
+
|
28
33
|
# Retain X versions of the repository. Default is null which retains all versions.
|
29
34
|
attr_accessor :retain_repo_versions
|
30
35
|
|
31
36
|
attr_accessor :latest_version_href
|
32
37
|
|
33
|
-
attr_accessor :pulp_href
|
34
|
-
|
35
38
|
# Timestamp of creation.
|
36
39
|
attr_accessor :pulp_created
|
37
40
|
|
38
|
-
# An optional description.
|
39
|
-
attr_accessor :description
|
40
|
-
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'pulp_labels' => :'pulp_labels',
|
45
44
|
:'name' => :'name',
|
46
|
-
:'
|
45
|
+
:'description' => :'description',
|
47
46
|
:'manifest_signing_service' => :'manifest_signing_service',
|
47
|
+
:'pulp_href' => :'pulp_href',
|
48
|
+
:'versions_href' => :'versions_href',
|
49
|
+
:'pulp_labels' => :'pulp_labels',
|
48
50
|
:'retain_repo_versions' => :'retain_repo_versions',
|
49
51
|
:'latest_version_href' => :'latest_version_href',
|
50
|
-
:'
|
51
|
-
:'pulp_created' => :'pulp_created',
|
52
|
-
:'description' => :'description'
|
52
|
+
:'pulp_created' => :'pulp_created'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
-
:'pulp_labels' => :'Hash<String, String>',
|
60
59
|
:'name' => :'String',
|
61
|
-
:'
|
60
|
+
:'description' => :'String',
|
62
61
|
:'manifest_signing_service' => :'String',
|
62
|
+
:'pulp_href' => :'String',
|
63
|
+
:'versions_href' => :'String',
|
64
|
+
:'pulp_labels' => :'Hash<String, String>',
|
63
65
|
:'retain_repo_versions' => :'Integer',
|
64
66
|
:'latest_version_href' => :'String',
|
65
|
-
:'
|
66
|
-
:'pulp_created' => :'DateTime',
|
67
|
-
:'description' => :'String'
|
67
|
+
:'pulp_created' => :'DateTime'
|
68
68
|
}
|
69
69
|
end
|
70
70
|
|
71
71
|
# List of attributes with nullable: true
|
72
72
|
def self.openapi_nullable
|
73
73
|
Set.new([
|
74
|
+
:'description',
|
74
75
|
:'manifest_signing_service',
|
75
76
|
:'retain_repo_versions',
|
76
|
-
:'description'
|
77
77
|
])
|
78
78
|
end
|
79
79
|
|
@@ -92,24 +92,32 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'pulp_labels')
|
96
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
97
|
-
self.pulp_labels = value
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
95
|
if attributes.key?(:'name')
|
102
96
|
self.name = attributes[:'name']
|
103
97
|
end
|
104
98
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
99
|
+
if attributes.key?(:'description')
|
100
|
+
self.description = attributes[:'description']
|
107
101
|
end
|
108
102
|
|
109
103
|
if attributes.key?(:'manifest_signing_service')
|
110
104
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
111
105
|
end
|
112
106
|
|
107
|
+
if attributes.key?(:'pulp_href')
|
108
|
+
self.pulp_href = attributes[:'pulp_href']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'versions_href')
|
112
|
+
self.versions_href = attributes[:'versions_href']
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.key?(:'pulp_labels')
|
116
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
117
|
+
self.pulp_labels = value
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
113
121
|
if attributes.key?(:'retain_repo_versions')
|
114
122
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
115
123
|
end
|
@@ -118,17 +126,9 @@ module PulpContainerClient
|
|
118
126
|
self.latest_version_href = attributes[:'latest_version_href']
|
119
127
|
end
|
120
128
|
|
121
|
-
if attributes.key?(:'pulp_href')
|
122
|
-
self.pulp_href = attributes[:'pulp_href']
|
123
|
-
end
|
124
|
-
|
125
129
|
if attributes.key?(:'pulp_created')
|
126
130
|
self.pulp_created = attributes[:'pulp_created']
|
127
131
|
end
|
128
|
-
|
129
|
-
if attributes.key?(:'description')
|
130
|
-
self.description = attributes[:'description']
|
131
|
-
end
|
132
132
|
end
|
133
133
|
|
134
134
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -169,15 +169,15 @@ module PulpContainerClient
|
|
169
169
|
def ==(o)
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
|
-
pulp_labels == o.pulp_labels &&
|
173
172
|
name == o.name &&
|
174
|
-
|
173
|
+
description == o.description &&
|
175
174
|
manifest_signing_service == o.manifest_signing_service &&
|
175
|
+
pulp_href == o.pulp_href &&
|
176
|
+
versions_href == o.versions_href &&
|
177
|
+
pulp_labels == o.pulp_labels &&
|
176
178
|
retain_repo_versions == o.retain_repo_versions &&
|
177
179
|
latest_version_href == o.latest_version_href &&
|
178
|
-
|
179
|
-
pulp_created == o.pulp_created &&
|
180
|
-
description == o.description
|
180
|
+
pulp_created == o.pulp_created
|
181
181
|
end
|
182
182
|
|
183
183
|
# @see the `==` method
|
@@ -189,7 +189,7 @@ module PulpContainerClient
|
|
189
189
|
# Calculates hash code according to all attributes.
|
190
190
|
# @return [Integer] Hash code
|
191
191
|
def hash
|
192
|
-
[
|
192
|
+
[name, description, manifest_signing_service, pulp_href, versions_href, pulp_labels, retain_repo_versions, latest_version_href, pulp_created].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|
@@ -56,7 +56,7 @@ module PulpContainerClient
|
|
56
56
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
57
|
attr_accessor :max_retries
|
58
58
|
|
59
|
-
# 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.
|
59
|
+
# 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.
|
60
60
|
attr_accessor :policy
|
61
61
|
|
62
62
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
@@ -49,7 +49,7 @@ module PulpContainerClient
|
|
49
49
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
50
50
|
attr_accessor :max_retries
|
51
51
|
|
52
|
-
# 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.
|
52
|
+
# 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.
|
53
53
|
attr_accessor :policy
|
54
54
|
|
55
55
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
@@ -15,19 +15,19 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
19
|
+
attr_accessor :name
|
20
|
+
|
18
21
|
# 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
22
|
attr_accessor :base_path
|
20
23
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
24
|
+
# The latest RepositoryVersion for this Repository will be served.
|
25
|
+
attr_accessor :repository
|
23
26
|
|
24
27
|
attr_accessor :pulp_labels
|
25
28
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
28
|
-
|
29
|
-
# The latest RepositoryVersion for this Repository will be served.
|
30
|
-
attr_accessor :repository
|
29
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
30
|
+
attr_accessor :content_guard
|
31
31
|
|
32
32
|
# RepositoryVersion to be served
|
33
33
|
attr_accessor :repository_version
|
@@ -41,11 +41,11 @@ 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
|
-
:'content_guard' => :'content_guard',
|
46
|
-
:'pulp_labels' => :'pulp_labels',
|
47
44
|
:'name' => :'name',
|
45
|
+
:'base_path' => :'base_path',
|
48
46
|
:'repository' => :'repository',
|
47
|
+
:'pulp_labels' => :'pulp_labels',
|
48
|
+
:'content_guard' => :'content_guard',
|
49
49
|
:'repository_version' => :'repository_version',
|
50
50
|
:'private' => :'private',
|
51
51
|
:'description' => :'description'
|
@@ -55,11 +55,11 @@ module PulpContainerClient
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
-
:'base_path' => :'String',
|
59
|
-
:'content_guard' => :'String',
|
60
|
-
:'pulp_labels' => :'Hash<String, String>',
|
61
58
|
:'name' => :'String',
|
59
|
+
:'base_path' => :'String',
|
62
60
|
:'repository' => :'String',
|
61
|
+
:'pulp_labels' => :'Hash<String, String>',
|
62
|
+
:'content_guard' => :'String',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
@@ -90,12 +90,16 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
+
if attributes.key?(:'name')
|
94
|
+
self.name = attributes[:'name']
|
95
|
+
end
|
96
|
+
|
93
97
|
if attributes.key?(:'base_path')
|
94
98
|
self.base_path = attributes[:'base_path']
|
95
99
|
end
|
96
100
|
|
97
|
-
if attributes.key?(:'
|
98
|
-
self.
|
101
|
+
if attributes.key?(:'repository')
|
102
|
+
self.repository = attributes[:'repository']
|
99
103
|
end
|
100
104
|
|
101
105
|
if attributes.key?(:'pulp_labels')
|
@@ -104,12 +108,8 @@ module PulpContainerClient
|
|
104
108
|
end
|
105
109
|
end
|
106
110
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
self.
|
109
|
-
end
|
110
|
-
|
111
|
-
if attributes.key?(:'repository')
|
112
|
-
self.repository = attributes[:'repository']
|
111
|
+
if attributes.key?(:'content_guard')
|
112
|
+
self.content_guard = attributes[:'content_guard']
|
113
113
|
end
|
114
114
|
|
115
115
|
if attributes.key?(:'repository_version')
|
@@ -129,14 +129,14 @@ module PulpContainerClient
|
|
129
129
|
# @return Array for valid properties with the reasons
|
130
130
|
def list_invalid_properties
|
131
131
|
invalid_properties = Array.new
|
132
|
-
if !@base_path.nil? && @base_path.to_s.length < 1
|
133
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
134
|
-
end
|
135
|
-
|
136
132
|
if !@name.nil? && @name.to_s.length < 1
|
137
133
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
138
134
|
end
|
139
135
|
|
136
|
+
if !@base_path.nil? && @base_path.to_s.length < 1
|
137
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
138
|
+
end
|
139
|
+
|
140
140
|
if !@description.nil? && @description.to_s.length < 1
|
141
141
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
142
142
|
end
|
@@ -147,22 +147,12 @@ module PulpContainerClient
|
|
147
147
|
# Check to see if the all the properties in the model are valid
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
|
-
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
151
150
|
return false if !@name.nil? && @name.to_s.length < 1
|
151
|
+
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
152
152
|
return false if !@description.nil? && @description.to_s.length < 1
|
153
153
|
true
|
154
154
|
end
|
155
155
|
|
156
|
-
# Custom attribute writer method with validation
|
157
|
-
# @param [Object] base_path Value to be assigned
|
158
|
-
def base_path=(base_path)
|
159
|
-
if !base_path.nil? && base_path.to_s.length < 1
|
160
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
161
|
-
end
|
162
|
-
|
163
|
-
@base_path = base_path
|
164
|
-
end
|
165
|
-
|
166
156
|
# Custom attribute writer method with validation
|
167
157
|
# @param [Object] name Value to be assigned
|
168
158
|
def name=(name)
|
@@ -173,6 +163,16 @@ module PulpContainerClient
|
|
173
163
|
@name = name
|
174
164
|
end
|
175
165
|
|
166
|
+
# Custom attribute writer method with validation
|
167
|
+
# @param [Object] base_path Value to be assigned
|
168
|
+
def base_path=(base_path)
|
169
|
+
if !base_path.nil? && base_path.to_s.length < 1
|
170
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
171
|
+
end
|
172
|
+
|
173
|
+
@base_path = base_path
|
174
|
+
end
|
175
|
+
|
176
176
|
# Custom attribute writer method with validation
|
177
177
|
# @param [Object] description Value to be assigned
|
178
178
|
def description=(description)
|
@@ -188,11 +188,11 @@ module PulpContainerClient
|
|
188
188
|
def ==(o)
|
189
189
|
return true if self.equal?(o)
|
190
190
|
self.class == o.class &&
|
191
|
-
base_path == o.base_path &&
|
192
|
-
content_guard == o.content_guard &&
|
193
|
-
pulp_labels == o.pulp_labels &&
|
194
191
|
name == o.name &&
|
192
|
+
base_path == o.base_path &&
|
195
193
|
repository == o.repository &&
|
194
|
+
pulp_labels == o.pulp_labels &&
|
195
|
+
content_guard == o.content_guard &&
|
196
196
|
repository_version == o.repository_version &&
|
197
197
|
private == o.private &&
|
198
198
|
description == o.description
|
@@ -207,7 +207,7 @@ module PulpContainerClient
|
|
207
207
|
# Calculates hash code according to all attributes.
|
208
208
|
# @return [Integer] Hash code
|
209
209
|
def hash
|
210
|
-
[base_path,
|
210
|
+
[name, base_path, repository, pulp_labels, content_guard, repository_version, private, description].hash
|
211
211
|
end
|
212
212
|
|
213
213
|
# Builds the object from hash
|
@@ -15,48 +15,48 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
18
|
-
attr_accessor :pulp_labels
|
19
|
-
|
20
18
|
# A unique name for this repository.
|
21
19
|
attr_accessor :name
|
22
20
|
|
21
|
+
# An optional description.
|
22
|
+
attr_accessor :description
|
23
|
+
|
23
24
|
# A reference to an associated signing service.
|
24
25
|
attr_accessor :manifest_signing_service
|
25
26
|
|
27
|
+
attr_accessor :pulp_labels
|
28
|
+
|
26
29
|
# Retain X versions of the repository. Default is null which retains all versions.
|
27
30
|
attr_accessor :retain_repo_versions
|
28
31
|
|
29
|
-
# An optional description.
|
30
|
-
attr_accessor :description
|
31
|
-
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'pulp_labels' => :'pulp_labels',
|
36
35
|
:'name' => :'name',
|
36
|
+
:'description' => :'description',
|
37
37
|
:'manifest_signing_service' => :'manifest_signing_service',
|
38
|
-
:'
|
39
|
-
:'
|
38
|
+
:'pulp_labels' => :'pulp_labels',
|
39
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'pulp_labels' => :'Hash<String, String>',
|
47
46
|
:'name' => :'String',
|
47
|
+
:'description' => :'String',
|
48
48
|
:'manifest_signing_service' => :'String',
|
49
|
-
:'
|
50
|
-
:'
|
49
|
+
:'pulp_labels' => :'Hash<String, String>',
|
50
|
+
:'retain_repo_versions' => :'Integer'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
+
:'description',
|
57
58
|
:'manifest_signing_service',
|
58
|
-
:'retain_repo_versions'
|
59
|
-
:'description'
|
59
|
+
:'retain_repo_versions'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,26 +75,26 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'pulp_labels')
|
79
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
80
|
-
self.pulp_labels = value
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
78
|
if attributes.key?(:'name')
|
85
79
|
self.name = attributes[:'name']
|
86
80
|
end
|
87
81
|
|
82
|
+
if attributes.key?(:'description')
|
83
|
+
self.description = attributes[:'description']
|
84
|
+
end
|
85
|
+
|
88
86
|
if attributes.key?(:'manifest_signing_service')
|
89
87
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
90
88
|
end
|
91
89
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
|
90
|
+
if attributes.key?(:'pulp_labels')
|
91
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
92
|
+
self.pulp_labels = value
|
93
|
+
end
|
94
94
|
end
|
95
95
|
|
96
|
-
if attributes.key?(:'
|
97
|
-
self.
|
96
|
+
if attributes.key?(:'retain_repo_versions')
|
97
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -106,14 +106,14 @@ module PulpContainerClient
|
|
106
106
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
107
107
|
end
|
108
108
|
|
109
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
110
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
111
|
-
end
|
112
|
-
|
113
109
|
if !@description.nil? && @description.to_s.length < 1
|
114
110
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
115
111
|
end
|
116
112
|
|
113
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
114
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
115
|
+
end
|
116
|
+
|
117
117
|
invalid_properties
|
118
118
|
end
|
119
119
|
|
@@ -121,8 +121,8 @@ module PulpContainerClient
|
|
121
121
|
# @return true if the model is valid
|
122
122
|
def valid?
|
123
123
|
return false if !@name.nil? && @name.to_s.length < 1
|
124
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
125
124
|
return false if !@description.nil? && @description.to_s.length < 1
|
125
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
126
126
|
true
|
127
127
|
end
|
128
128
|
|
@@ -136,16 +136,6 @@ module PulpContainerClient
|
|
136
136
|
@name = name
|
137
137
|
end
|
138
138
|
|
139
|
-
# Custom attribute writer method with validation
|
140
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
141
|
-
def retain_repo_versions=(retain_repo_versions)
|
142
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
143
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
144
|
-
end
|
145
|
-
|
146
|
-
@retain_repo_versions = retain_repo_versions
|
147
|
-
end
|
148
|
-
|
149
139
|
# Custom attribute writer method with validation
|
150
140
|
# @param [Object] description Value to be assigned
|
151
141
|
def description=(description)
|
@@ -156,16 +146,26 @@ module PulpContainerClient
|
|
156
146
|
@description = description
|
157
147
|
end
|
158
148
|
|
149
|
+
# Custom attribute writer method with validation
|
150
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
151
|
+
def retain_repo_versions=(retain_repo_versions)
|
152
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
153
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
154
|
+
end
|
155
|
+
|
156
|
+
@retain_repo_versions = retain_repo_versions
|
157
|
+
end
|
158
|
+
|
159
159
|
# Checks equality by comparing each attribute.
|
160
160
|
# @param [Object] Object to be compared
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
-
pulp_labels == o.pulp_labels &&
|
165
164
|
name == o.name &&
|
165
|
+
description == o.description &&
|
166
166
|
manifest_signing_service == o.manifest_signing_service &&
|
167
|
-
|
168
|
-
|
167
|
+
pulp_labels == o.pulp_labels &&
|
168
|
+
retain_repo_versions == o.retain_repo_versions
|
169
169
|
end
|
170
170
|
|
171
171
|
# @see the `==` method
|
@@ -177,7 +177,7 @@ module PulpContainerClient
|
|
177
177
|
# Calculates hash code according to all attributes.
|
178
178
|
# @return [Integer] Hash code
|
179
179
|
def hash
|
180
|
-
[
|
180
|
+
[name, description, manifest_signing_service, pulp_labels, retain_repo_versions].hash
|
181
181
|
end
|
182
182
|
|
183
183
|
# Builds the object from hash
|
@@ -56,7 +56,7 @@ module PulpContainerClient
|
|
56
56
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
57
|
attr_accessor :max_retries
|
58
58
|
|
59
|
-
# 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.
|
59
|
+
# 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.
|
60
60
|
attr_accessor :policy
|
61
61
|
|
62
62
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
@@ -40,7 +40,9 @@ describe 'ContentBlobsApi' do
|
|
40
40
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
41
41
|
# @option opts [Integer] :limit Number of results to return per page.
|
42
42
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
43
|
-
# @option opts [Array<String>] :ordering Ordering
|
43
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
44
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
45
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
44
46
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
45
47
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
46
48
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -39,9 +39,11 @@ describe 'ContentManifestsApi' do
|
|
39
39
|
# @option opts [String] :digest Filter results where digest matches value
|
40
40
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
41
41
|
# @option opts [Integer] :limit Number of results to return per page.
|
42
|
-
# @option opts [Array<String>] :media_type
|
42
|
+
# @option opts [Array<String>] :media_type * `application/vnd.docker.distribution.manifest.v1+json` - application/vnd.docker.distribution.manifest.v1+json * `application/vnd.docker.distribution.manifest.v2+json` - application/vnd.docker.distribution.manifest.v2+json * `application/vnd.docker.distribution.manifest.list.v2+json` - application/vnd.docker.distribution.manifest.list.v2+json * `application/vnd.oci.image.manifest.v1+json` - application/vnd.oci.image.manifest.v1+json * `application/vnd.oci.image.index.v1+json` - application/vnd.oci.image.index.v1+json * `application/vnd.docker.distribution.manifest.v1+json` - application/vnd.docker.distribution.manifest.v1+json * `application/vnd.docker.distribution.manifest.v2+json` - application/vnd.docker.distribution.manifest.v2+json * `application/vnd.docker.distribution.manifest.list.v2+json` - application/vnd.docker.distribution.manifest.list.v2+json * `application/vnd.oci.image.manifest.v1+json` - application/vnd.oci.image.manifest.v1+json * `application/vnd.oci.image.index.v1+json` - application/vnd.oci.image.index.v1+json
|
43
43
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
44
|
-
# @option opts [Array<String>] :ordering Ordering
|
44
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `digest` - Digest * `-digest` - Digest (descending) * `schema_version` - Schema version * `-schema_version` - Schema version (descending) * `media_type` - Media type * `-media_type` - Media type (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
45
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
46
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
45
47
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
46
48
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
47
49
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -48,7 +48,9 @@ describe 'ContentSignaturesApi' do
|
|
48
48
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
49
49
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
50
50
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
51
|
-
# @option opts [Array<String>] :ordering Ordering
|
51
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `digest` - Digest * `-digest` - Digest (descending) * `type` - Type * `-type` - Type (descending) * `key_id` - Key id * `-key_id` - Key id (descending) * `timestamp` - Timestamp * `-timestamp` - Timestamp (descending) * `creator` - Creator * `-creator` - Creator (descending) * `data` - Data * `-data` - Data (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
52
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
53
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
52
54
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
53
55
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
54
56
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -38,11 +38,13 @@ describe 'ContentTagsApi' do
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @option opts [Array<String>] :digest Multiple values may be separated by commas.
|
40
40
|
# @option opts [Integer] :limit Number of results to return per page.
|
41
|
-
# @option opts [Array<String>] :media_type
|
41
|
+
# @option opts [Array<String>] :media_type * `application/vnd.docker.distribution.manifest.v1+json` - application/vnd.docker.distribution.manifest.v1+json * `application/vnd.docker.distribution.manifest.v2+json` - application/vnd.docker.distribution.manifest.v2+json * `application/vnd.docker.distribution.manifest.list.v2+json` - application/vnd.docker.distribution.manifest.list.v2+json * `application/vnd.oci.image.manifest.v1+json` - application/vnd.oci.image.manifest.v1+json * `application/vnd.oci.image.index.v1+json` - application/vnd.oci.image.index.v1+json * `application/vnd.docker.distribution.manifest.v1+json` - application/vnd.docker.distribution.manifest.v1+json * `application/vnd.docker.distribution.manifest.v2+json` - application/vnd.docker.distribution.manifest.v2+json * `application/vnd.docker.distribution.manifest.list.v2+json` - application/vnd.docker.distribution.manifest.list.v2+json * `application/vnd.oci.image.manifest.v1+json` - application/vnd.oci.image.manifest.v1+json * `application/vnd.oci.image.index.v1+json` - application/vnd.oci.image.index.v1+json
|
42
42
|
# @option opts [String] :name Filter results where name matches value
|
43
43
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
44
44
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
45
|
-
# @option opts [Array<String>] :ordering Ordering
|
45
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
46
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
47
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
46
48
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
47
49
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
48
50
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -84,7 +84,9 @@ describe 'DistributionsContainerApi' do
|
|
84
84
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
85
85
|
# @option opts [String] :namespace__name
|
86
86
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
87
|
-
# @option opts [Array<String>] :ordering Ordering
|
87
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
88
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
89
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
88
90
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
89
91
|
# @option opts [String] :repository Filter results where repository matches value
|
90
92
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|