pulp_container_client 2.14.4 → 2.14.6
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 +6 -6
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
- 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 +6 -6
- 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 +48 -48
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +37 -37
- 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 +54 -54
- 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 +39 -39
- 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 +4 -4
- 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 +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +47 -47
@@ -15,65 +15,65 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
|
19
|
-
|
18
|
+
attr_accessor :latest_version_href
|
19
|
+
|
20
|
+
# Timestamp of creation.
|
21
|
+
attr_accessor :pulp_created
|
22
|
+
|
23
|
+
# A reference to an associated signing service.
|
24
|
+
attr_accessor :manifest_signing_service
|
20
25
|
|
21
26
|
attr_accessor :pulp_labels
|
22
27
|
|
23
|
-
|
24
|
-
attr_accessor :description
|
28
|
+
attr_accessor :versions_href
|
25
29
|
|
26
30
|
# Retain X versions of the repository. Default is null which retains all versions.
|
27
31
|
attr_accessor :retain_repo_versions
|
28
32
|
|
29
33
|
attr_accessor :pulp_href
|
30
34
|
|
31
|
-
|
32
|
-
|
33
|
-
attr_accessor :latest_version_href
|
34
|
-
|
35
|
-
# Timestamp of creation.
|
36
|
-
attr_accessor :pulp_created
|
35
|
+
# A unique name for this repository.
|
36
|
+
attr_accessor :name
|
37
37
|
|
38
|
-
#
|
39
|
-
attr_accessor :
|
38
|
+
# An optional description.
|
39
|
+
attr_accessor :description
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'
|
44
|
+
:'latest_version_href' => :'latest_version_href',
|
45
|
+
:'pulp_created' => :'pulp_created',
|
46
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
45
47
|
:'pulp_labels' => :'pulp_labels',
|
46
|
-
:'
|
48
|
+
:'versions_href' => :'versions_href',
|
47
49
|
:'retain_repo_versions' => :'retain_repo_versions',
|
48
50
|
:'pulp_href' => :'pulp_href',
|
49
|
-
:'
|
50
|
-
:'
|
51
|
-
:'pulp_created' => :'pulp_created',
|
52
|
-
:'manifest_signing_service' => :'manifest_signing_service'
|
51
|
+
:'name' => :'name',
|
52
|
+
:'description' => :'description'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
-
:'
|
59
|
+
:'latest_version_href' => :'String',
|
60
|
+
:'pulp_created' => :'DateTime',
|
61
|
+
:'manifest_signing_service' => :'String',
|
60
62
|
:'pulp_labels' => :'Hash<String, String>',
|
61
|
-
:'
|
63
|
+
:'versions_href' => :'String',
|
62
64
|
:'retain_repo_versions' => :'Integer',
|
63
65
|
:'pulp_href' => :'String',
|
64
|
-
:'
|
65
|
-
:'
|
66
|
-
:'pulp_created' => :'DateTime',
|
67
|
-
:'manifest_signing_service' => :'String'
|
66
|
+
:'name' => :'String',
|
67
|
+
:'description' => :'String'
|
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
|
-
:'
|
74
|
+
:'manifest_signing_service',
|
75
75
|
:'retain_repo_versions',
|
76
|
-
:'
|
76
|
+
:'description'
|
77
77
|
])
|
78
78
|
end
|
79
79
|
|
@@ -92,8 +92,16 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
95
|
+
if attributes.key?(:'latest_version_href')
|
96
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'pulp_created')
|
100
|
+
self.pulp_created = attributes[:'pulp_created']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'manifest_signing_service')
|
104
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
97
105
|
end
|
98
106
|
|
99
107
|
if attributes.key?(:'pulp_labels')
|
@@ -102,8 +110,8 @@ module PulpContainerClient
|
|
102
110
|
end
|
103
111
|
end
|
104
112
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
113
|
+
if attributes.key?(:'versions_href')
|
114
|
+
self.versions_href = attributes[:'versions_href']
|
107
115
|
end
|
108
116
|
|
109
117
|
if attributes.key?(:'retain_repo_versions')
|
@@ -114,20 +122,12 @@ module PulpContainerClient
|
|
114
122
|
self.pulp_href = attributes[:'pulp_href']
|
115
123
|
end
|
116
124
|
|
117
|
-
if attributes.key?(:'
|
118
|
-
self.
|
119
|
-
end
|
120
|
-
|
121
|
-
if attributes.key?(:'latest_version_href')
|
122
|
-
self.latest_version_href = attributes[:'latest_version_href']
|
123
|
-
end
|
124
|
-
|
125
|
-
if attributes.key?(:'pulp_created')
|
126
|
-
self.pulp_created = attributes[:'pulp_created']
|
125
|
+
if attributes.key?(:'name')
|
126
|
+
self.name = attributes[:'name']
|
127
127
|
end
|
128
128
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
self.
|
129
|
+
if attributes.key?(:'description')
|
130
|
+
self.description = attributes[:'description']
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
@@ -135,22 +135,22 @@ module PulpContainerClient
|
|
135
135
|
# @return Array for valid properties with the reasons
|
136
136
|
def list_invalid_properties
|
137
137
|
invalid_properties = Array.new
|
138
|
-
if @name.nil?
|
139
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
140
|
-
end
|
141
|
-
|
142
138
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
143
139
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
144
140
|
end
|
145
141
|
|
142
|
+
if @name.nil?
|
143
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
144
|
+
end
|
145
|
+
|
146
146
|
invalid_properties
|
147
147
|
end
|
148
148
|
|
149
149
|
# Check to see if the all the properties in the model are valid
|
150
150
|
# @return true if the model is valid
|
151
151
|
def valid?
|
152
|
-
return false if @name.nil?
|
153
152
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
153
|
+
return false if @name.nil?
|
154
154
|
true
|
155
155
|
end
|
156
156
|
|
@@ -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
|
-
|
172
|
+
latest_version_href == o.latest_version_href &&
|
173
|
+
pulp_created == o.pulp_created &&
|
174
|
+
manifest_signing_service == o.manifest_signing_service &&
|
173
175
|
pulp_labels == o.pulp_labels &&
|
174
|
-
|
176
|
+
versions_href == o.versions_href &&
|
175
177
|
retain_repo_versions == o.retain_repo_versions &&
|
176
178
|
pulp_href == o.pulp_href &&
|
177
|
-
|
178
|
-
|
179
|
-
pulp_created == o.pulp_created &&
|
180
|
-
manifest_signing_service == o.manifest_signing_service
|
179
|
+
name == o.name &&
|
180
|
+
description == o.description
|
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
|
+
[latest_version_href, pulp_created, manifest_signing_service, pulp_labels, versions_href, retain_repo_versions, pulp_href, name, description].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
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
19
|
+
attr_accessor :content_guard
|
20
|
+
|
21
|
+
attr_accessor :pulp_labels
|
20
22
|
|
21
23
|
# The latest RepositoryVersion for this Repository will be served.
|
22
24
|
attr_accessor :repository
|
23
25
|
|
24
|
-
attr_accessor :pulp_labels
|
25
|
-
|
26
26
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
27
27
|
attr_accessor :base_path
|
28
28
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
29
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
30
|
+
attr_accessor :name
|
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
|
-
:'
|
45
|
-
:'repository' => :'repository',
|
44
|
+
:'content_guard' => :'content_guard',
|
46
45
|
:'pulp_labels' => :'pulp_labels',
|
46
|
+
:'repository' => :'repository',
|
47
47
|
:'base_path' => :'base_path',
|
48
|
-
:'
|
48
|
+
:'name' => :'name',
|
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
|
-
:'
|
59
|
-
:'repository' => :'String',
|
58
|
+
:'content_guard' => :'String',
|
60
59
|
:'pulp_labels' => :'Hash<String, String>',
|
60
|
+
:'repository' => :'String',
|
61
61
|
:'base_path' => :'String',
|
62
|
-
:'
|
62
|
+
:'name' => :'String',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
@@ -90,12 +90,8 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
95
|
-
end
|
96
|
-
|
97
|
-
if attributes.key?(:'repository')
|
98
|
-
self.repository = attributes[:'repository']
|
93
|
+
if attributes.key?(:'content_guard')
|
94
|
+
self.content_guard = attributes[:'content_guard']
|
99
95
|
end
|
100
96
|
|
101
97
|
if attributes.key?(:'pulp_labels')
|
@@ -104,12 +100,16 @@ module PulpContainerClient
|
|
104
100
|
end
|
105
101
|
end
|
106
102
|
|
103
|
+
if attributes.key?(:'repository')
|
104
|
+
self.repository = attributes[:'repository']
|
105
|
+
end
|
106
|
+
|
107
107
|
if attributes.key?(:'base_path')
|
108
108
|
self.base_path = attributes[:'base_path']
|
109
109
|
end
|
110
110
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
111
|
+
if attributes.key?(:'name')
|
112
|
+
self.name = attributes[:'name']
|
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 !@name.nil? && @name.to_s.length < 1
|
133
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
134
|
-
end
|
135
|
-
|
136
132
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
137
133
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
138
134
|
end
|
139
135
|
|
136
|
+
if !@name.nil? && @name.to_s.length < 1
|
137
|
+
invalid_properties.push('invalid value for "name", 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 !@name.nil? && @name.to_s.length < 1
|
151
150
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
151
|
+
return false if !@name.nil? && @name.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] name Value to be assigned
|
158
|
-
def name=(name)
|
159
|
-
if !name.nil? && name.to_s.length < 1
|
160
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
161
|
-
end
|
162
|
-
|
163
|
-
@name = name
|
164
|
-
end
|
165
|
-
|
166
156
|
# Custom attribute writer method with validation
|
167
157
|
# @param [Object] base_path Value to be assigned
|
168
158
|
def base_path=(base_path)
|
@@ -173,6 +163,16 @@ module PulpContainerClient
|
|
173
163
|
@base_path = base_path
|
174
164
|
end
|
175
165
|
|
166
|
+
# Custom attribute writer method with validation
|
167
|
+
# @param [Object] name Value to be assigned
|
168
|
+
def name=(name)
|
169
|
+
if !name.nil? && name.to_s.length < 1
|
170
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
171
|
+
end
|
172
|
+
|
173
|
+
@name = name
|
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
|
-
|
192
|
-
repository == o.repository &&
|
191
|
+
content_guard == o.content_guard &&
|
193
192
|
pulp_labels == o.pulp_labels &&
|
193
|
+
repository == o.repository &&
|
194
194
|
base_path == o.base_path &&
|
195
|
-
|
195
|
+
name == o.name &&
|
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
|
-
[
|
210
|
+
[content_guard, pulp_labels, repository, base_path, name, 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
|
-
# A
|
19
|
-
attr_accessor :
|
18
|
+
# A reference to an associated signing service.
|
19
|
+
attr_accessor :manifest_signing_service
|
20
20
|
|
21
21
|
attr_accessor :pulp_labels
|
22
22
|
|
23
|
-
# An optional description.
|
24
|
-
attr_accessor :description
|
25
|
-
|
26
23
|
# Retain X versions of the repository. Default is null which retains all versions.
|
27
24
|
attr_accessor :retain_repo_versions
|
28
25
|
|
29
|
-
# A
|
30
|
-
attr_accessor :
|
26
|
+
# A unique name for this repository.
|
27
|
+
attr_accessor :name
|
28
|
+
|
29
|
+
# An optional description.
|
30
|
+
attr_accessor :description
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'
|
35
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
36
36
|
:'pulp_labels' => :'pulp_labels',
|
37
|
-
:'description' => :'description',
|
38
37
|
:'retain_repo_versions' => :'retain_repo_versions',
|
39
|
-
:'
|
38
|
+
:'name' => :'name',
|
39
|
+
:'description' => :'description'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'
|
46
|
+
:'manifest_signing_service' => :'String',
|
47
47
|
:'pulp_labels' => :'Hash<String, String>',
|
48
|
-
:'description' => :'String',
|
49
48
|
:'retain_repo_versions' => :'Integer',
|
50
|
-
:'
|
49
|
+
:'name' => :'String',
|
50
|
+
:'description' => :'String'
|
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
|
-
:'
|
57
|
+
:'manifest_signing_service',
|
58
58
|
:'retain_repo_versions',
|
59
|
-
:'
|
59
|
+
:'description'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,8 +75,8 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
78
|
+
if attributes.key?(:'manifest_signing_service')
|
79
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
80
80
|
end
|
81
81
|
|
82
82
|
if attributes.key?(:'pulp_labels')
|
@@ -85,16 +85,16 @@ module PulpContainerClient
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
-
if attributes.key?(:'description')
|
89
|
-
self.description = attributes[:'description']
|
90
|
-
end
|
91
|
-
|
92
88
|
if attributes.key?(:'retain_repo_versions')
|
93
89
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
94
90
|
end
|
95
91
|
|
96
|
-
if attributes.key?(:'
|
97
|
-
self.
|
92
|
+
if attributes.key?(:'name')
|
93
|
+
self.name = attributes[:'name']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'description')
|
97
|
+
self.description = attributes[:'description']
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -102,6 +102,10 @@ module PulpContainerClient
|
|
102
102
|
# @return Array for valid properties with the reasons
|
103
103
|
def list_invalid_properties
|
104
104
|
invalid_properties = Array.new
|
105
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
106
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
107
|
+
end
|
108
|
+
|
105
109
|
if !@name.nil? && @name.to_s.length < 1
|
106
110
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
107
111
|
end
|
@@ -110,22 +114,28 @@ module PulpContainerClient
|
|
110
114
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
111
115
|
end
|
112
116
|
|
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
|
|
120
120
|
# Check to see if the all the properties in the model are valid
|
121
121
|
# @return true if the model is valid
|
122
122
|
def valid?
|
123
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
123
124
|
return false if !@name.nil? && @name.to_s.length < 1
|
124
125
|
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
|
|
129
|
+
# Custom attribute writer method with validation
|
130
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
131
|
+
def retain_repo_versions=(retain_repo_versions)
|
132
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
133
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
134
|
+
end
|
135
|
+
|
136
|
+
@retain_repo_versions = retain_repo_versions
|
137
|
+
end
|
138
|
+
|
129
139
|
# Custom attribute writer method with validation
|
130
140
|
# @param [Object] name Value to be assigned
|
131
141
|
def name=(name)
|
@@ -146,26 +156,16 @@ module PulpContainerClient
|
|
146
156
|
@description = description
|
147
157
|
end
|
148
158
|
|
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
|
-
|
164
|
+
manifest_signing_service == o.manifest_signing_service &&
|
165
165
|
pulp_labels == o.pulp_labels &&
|
166
|
-
description == o.description &&
|
167
166
|
retain_repo_versions == o.retain_repo_versions &&
|
168
|
-
|
167
|
+
name == o.name &&
|
168
|
+
description == o.description
|
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
|
+
[manifest_signing_service, pulp_labels, retain_repo_versions, name, description].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
|