pulp_container_client 2.20.4 → 2.21.1
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.
- checksums.yaml +4 -4
- data/README.md +11 -10
- data/docs/ContainerBlobResponse.md +2 -0
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +16 -12
- data/docs/ContainerContainerNamespaceResponse.md +2 -0
- data/docs/ContainerContainerPullThroughDistribution.md +7 -7
- data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -12
- data/docs/ContainerContainerPullThroughRemote.md +6 -2
- data/docs/ContainerContainerPullThroughRemoteResponse.md +8 -2
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -13
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +3 -1
- data/docs/ContainerContainerRepositoryResponse.md +2 -0
- data/docs/ContainerManifestResponse.md +2 -0
- data/docs/ContainerManifestSignatureResponse.md +2 -0
- data/docs/ContainerTagResponse.md +2 -0
- data/docs/ContentBlobsApi.md +10 -8
- data/docs/ContentManifestsApi.md +10 -8
- data/docs/ContentSignaturesApi.md +10 -8
- data/docs/ContentTagsApi.md +10 -8
- data/docs/DistributionsContainerApi.md +4 -2
- data/docs/DistributionsPullThroughApi.md +4 -2
- data/docs/OCIBuildImage.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPullThroughRemote.md +6 -2
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/docs/PatchedcontainerContainerRemote.md +1 -1
- data/docs/{Policy762Enum.md → Policy692Enum.md} +2 -2
- data/docs/{Policy8e2Enum.md → Policy7e0Enum.md} +2 -2
- data/docs/PulpContainerNamespacesApi.md +4 -2
- data/docs/RemotesContainerApi.md +4 -2
- data/docs/RemotesPullThroughApi.md +4 -2
- data/docs/RepositoriesContainerApi.md +10 -8
- data/docs/RepositoriesContainerPushApi.md +8 -6
- data/docs/RepositoriesContainerPushVersionsApi.md +8 -6
- data/docs/RepositoriesContainerVersionsApi.md +8 -6
- data/docs/RepositoryVersionResponse.md +2 -0
- data/lib/pulp_container_client/api/content_blobs_api.rb +11 -8
- data/lib/pulp_container_client/api/content_manifests_api.rb +11 -8
- data/lib/pulp_container_client/api/content_signatures_api.rb +11 -8
- data/lib/pulp_container_client/api/content_tags_api.rb +11 -8
- data/lib/pulp_container_client/api/distributions_container_api.rb +5 -2
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +5 -2
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +5 -2
- data/lib/pulp_container_client/api/remotes_container_api.rb +5 -2
- data/lib/pulp_container_client/api/remotes_pull_through_api.rb +5 -2
- data/lib/pulp_container_client/api/repositories_container_api.rb +11 -8
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +9 -6
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +10 -7
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +10 -7
- data/lib/pulp_container_client/models/container_blob_response.rb +11 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +53 -53
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +74 -54
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +11 -1
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +53 -53
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +74 -54
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +32 -6
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +41 -5
- data/lib/pulp_container_client/models/container_container_push_repository.rb +46 -46
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +60 -50
- data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
- data/lib/pulp_container_client/models/container_container_remote_response.rb +12 -2
- data/lib/pulp_container_client/models/container_container_repository_response.rb +11 -1
- data/lib/pulp_container_client/models/container_manifest_response.rb +11 -1
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +11 -1
- data/lib/pulp_container_client/models/container_tag_response.rb +11 -1
- data/lib/pulp_container_client/models/oci_build_image.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +44 -44
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +44 -44
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +32 -6
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +46 -46
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +1 -1
- data/lib/pulp_container_client/models/{policy762_enum.rb → policy692_enum.rb} +3 -3
- data/lib/pulp_container_client/models/{policy8e2_enum.rb → policy7e0_enum.rb} +3 -3
- data/lib/pulp_container_client/models/repository_version_response.rb +12 -2
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +2 -2
- data/spec/api/content_blobs_api_spec.rb +5 -4
- data/spec/api/content_manifests_api_spec.rb +5 -4
- data/spec/api/content_signatures_api_spec.rb +5 -4
- data/spec/api/content_tags_api_spec.rb +5 -4
- data/spec/api/distributions_container_api_spec.rb +2 -1
- data/spec/api/distributions_pull_through_api_spec.rb +2 -1
- data/spec/api/pulp_container_namespaces_api_spec.rb +2 -1
- data/spec/api/remotes_container_api_spec.rb +2 -1
- data/spec/api/remotes_pull_through_api_spec.rb +2 -1
- data/spec/api/repositories_container_api_spec.rb +5 -4
- data/spec/api/repositories_container_push_api_spec.rb +4 -3
- data/spec/api/repositories_container_push_versions_api_spec.rb +4 -3
- data/spec/api/repositories_container_versions_api_spec.rb +4 -3
- data/spec/models/container_blob_response_spec.rb +6 -0
- data/spec/models/container_container_distribution_response_spec.rb +20 -8
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_namespace_response_spec.rb +6 -0
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +20 -8
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_remote_response_spec.rb +18 -0
- data/spec/models/container_container_pull_through_remote_spec.rb +12 -0
- data/spec/models/container_container_push_repository_response_spec.rb +14 -8
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/container_container_remote_response_spec.rb +6 -0
- data/spec/models/container_container_repository_response_spec.rb +6 -0
- data/spec/models/container_manifest_response_spec.rb +6 -0
- data/spec/models/container_manifest_signature_response_spec.rb +6 -0
- data/spec/models/container_tag_response_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_pull_through_remote_spec.rb +12 -0
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- data/spec/models/{policy762_enum_spec.rb → policy692_enum_spec.rb} +6 -6
- data/spec/models/{policy8e2_enum_spec.rb → policy7e0_enum_spec.rb} +6 -6
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +9 -9
|
@@ -15,22 +15,22 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class PatchedcontainerContainerDistribution
|
|
18
|
+
attr_accessor :pulp_labels
|
|
19
|
+
|
|
20
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
21
|
+
attr_accessor :content_guard
|
|
22
|
+
|
|
18
23
|
# Whether this distribution should be shown in the content app.
|
|
19
24
|
attr_accessor :hidden
|
|
20
25
|
|
|
21
26
|
# The latest RepositoryVersion for this Repository will be served.
|
|
22
27
|
attr_accessor :repository
|
|
23
28
|
|
|
24
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
25
|
-
attr_accessor :base_path
|
|
26
|
-
|
|
27
|
-
attr_accessor :pulp_labels
|
|
28
|
-
|
|
29
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
30
30
|
attr_accessor :name
|
|
31
31
|
|
|
32
|
-
#
|
|
33
|
-
attr_accessor :
|
|
32
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
33
|
+
attr_accessor :base_path
|
|
34
34
|
|
|
35
35
|
# RepositoryVersion to be served
|
|
36
36
|
attr_accessor :repository_version
|
|
@@ -44,12 +44,12 @@ module PulpContainerClient
|
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
|
+
:'pulp_labels' => :'pulp_labels',
|
|
48
|
+
:'content_guard' => :'content_guard',
|
|
47
49
|
:'hidden' => :'hidden',
|
|
48
50
|
:'repository' => :'repository',
|
|
49
|
-
:'base_path' => :'base_path',
|
|
50
|
-
:'pulp_labels' => :'pulp_labels',
|
|
51
51
|
:'name' => :'name',
|
|
52
|
-
:'
|
|
52
|
+
:'base_path' => :'base_path',
|
|
53
53
|
:'repository_version' => :'repository_version',
|
|
54
54
|
:'private' => :'private',
|
|
55
55
|
:'description' => :'description'
|
|
@@ -59,12 +59,12 @@ module PulpContainerClient
|
|
|
59
59
|
# Attribute type mapping.
|
|
60
60
|
def self.openapi_types
|
|
61
61
|
{
|
|
62
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
63
|
+
:'content_guard' => :'String',
|
|
62
64
|
:'hidden' => :'Boolean',
|
|
63
65
|
:'repository' => :'String',
|
|
64
|
-
:'base_path' => :'String',
|
|
65
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
66
66
|
:'name' => :'String',
|
|
67
|
-
:'
|
|
67
|
+
:'base_path' => :'String',
|
|
68
68
|
:'repository_version' => :'String',
|
|
69
69
|
:'private' => :'Boolean',
|
|
70
70
|
:'description' => :'String'
|
|
@@ -95,6 +95,16 @@ module PulpContainerClient
|
|
|
95
95
|
h[k.to_sym] = v
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
if attributes.key?(:'pulp_labels')
|
|
99
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
100
|
+
self.pulp_labels = value
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'content_guard')
|
|
105
|
+
self.content_guard = attributes[:'content_guard']
|
|
106
|
+
end
|
|
107
|
+
|
|
98
108
|
if attributes.key?(:'hidden')
|
|
99
109
|
self.hidden = attributes[:'hidden']
|
|
100
110
|
else
|
|
@@ -105,22 +115,12 @@ module PulpContainerClient
|
|
|
105
115
|
self.repository = attributes[:'repository']
|
|
106
116
|
end
|
|
107
117
|
|
|
108
|
-
if attributes.key?(:'base_path')
|
|
109
|
-
self.base_path = attributes[:'base_path']
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
if attributes.key?(:'pulp_labels')
|
|
113
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
114
|
-
self.pulp_labels = value
|
|
115
|
-
end
|
|
116
|
-
end
|
|
117
|
-
|
|
118
118
|
if attributes.key?(:'name')
|
|
119
119
|
self.name = attributes[:'name']
|
|
120
120
|
end
|
|
121
121
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
122
|
+
if attributes.key?(:'base_path')
|
|
123
|
+
self.base_path = attributes[:'base_path']
|
|
124
124
|
end
|
|
125
125
|
|
|
126
126
|
if attributes.key?(:'repository_version')
|
|
@@ -140,14 +140,14 @@ module PulpContainerClient
|
|
|
140
140
|
# @return Array for valid properties with the reasons
|
|
141
141
|
def list_invalid_properties
|
|
142
142
|
invalid_properties = Array.new
|
|
143
|
-
if !@base_path.nil? && @base_path.to_s.length < 1
|
|
144
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
145
|
-
end
|
|
146
|
-
|
|
147
143
|
if !@name.nil? && @name.to_s.length < 1
|
|
148
144
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
149
145
|
end
|
|
150
146
|
|
|
147
|
+
if !@base_path.nil? && @base_path.to_s.length < 1
|
|
148
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
149
|
+
end
|
|
150
|
+
|
|
151
151
|
if !@description.nil? && @description.to_s.length < 1
|
|
152
152
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
153
153
|
end
|
|
@@ -158,22 +158,12 @@ module PulpContainerClient
|
|
|
158
158
|
# Check to see if the all the properties in the model are valid
|
|
159
159
|
# @return true if the model is valid
|
|
160
160
|
def valid?
|
|
161
|
-
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
|
162
161
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
162
|
+
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
|
163
163
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
164
164
|
true
|
|
165
165
|
end
|
|
166
166
|
|
|
167
|
-
# Custom attribute writer method with validation
|
|
168
|
-
# @param [Object] base_path Value to be assigned
|
|
169
|
-
def base_path=(base_path)
|
|
170
|
-
if !base_path.nil? && base_path.to_s.length < 1
|
|
171
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
@base_path = base_path
|
|
175
|
-
end
|
|
176
|
-
|
|
177
167
|
# Custom attribute writer method with validation
|
|
178
168
|
# @param [Object] name Value to be assigned
|
|
179
169
|
def name=(name)
|
|
@@ -184,6 +174,16 @@ module PulpContainerClient
|
|
|
184
174
|
@name = name
|
|
185
175
|
end
|
|
186
176
|
|
|
177
|
+
# Custom attribute writer method with validation
|
|
178
|
+
# @param [Object] base_path Value to be assigned
|
|
179
|
+
def base_path=(base_path)
|
|
180
|
+
if !base_path.nil? && base_path.to_s.length < 1
|
|
181
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
@base_path = base_path
|
|
185
|
+
end
|
|
186
|
+
|
|
187
187
|
# Custom attribute writer method with validation
|
|
188
188
|
# @param [Object] description Value to be assigned
|
|
189
189
|
def description=(description)
|
|
@@ -199,12 +199,12 @@ module PulpContainerClient
|
|
|
199
199
|
def ==(o)
|
|
200
200
|
return true if self.equal?(o)
|
|
201
201
|
self.class == o.class &&
|
|
202
|
+
pulp_labels == o.pulp_labels &&
|
|
203
|
+
content_guard == o.content_guard &&
|
|
202
204
|
hidden == o.hidden &&
|
|
203
205
|
repository == o.repository &&
|
|
204
|
-
base_path == o.base_path &&
|
|
205
|
-
pulp_labels == o.pulp_labels &&
|
|
206
206
|
name == o.name &&
|
|
207
|
-
|
|
207
|
+
base_path == o.base_path &&
|
|
208
208
|
repository_version == o.repository_version &&
|
|
209
209
|
private == o.private &&
|
|
210
210
|
description == o.description
|
|
@@ -219,7 +219,7 @@ module PulpContainerClient
|
|
|
219
219
|
# Calculates hash code according to all attributes.
|
|
220
220
|
# @return [Integer] Hash code
|
|
221
221
|
def hash
|
|
222
|
-
[
|
|
222
|
+
[pulp_labels, content_guard, hidden, repository, name, base_path, repository_version, private, description].hash
|
|
223
223
|
end
|
|
224
224
|
|
|
225
225
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
|
@@ -15,22 +15,22 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
17
17
|
class PatchedcontainerContainerPullThroughDistribution
|
|
18
|
+
attr_accessor :pulp_labels
|
|
19
|
+
|
|
20
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
21
|
+
attr_accessor :content_guard
|
|
22
|
+
|
|
18
23
|
# Whether this distribution should be shown in the content app.
|
|
19
24
|
attr_accessor :hidden
|
|
20
25
|
|
|
21
26
|
# The latest RepositoryVersion for this Repository will be served.
|
|
22
27
|
attr_accessor :repository
|
|
23
28
|
|
|
24
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
25
|
-
attr_accessor :base_path
|
|
26
|
-
|
|
27
|
-
attr_accessor :pulp_labels
|
|
28
|
-
|
|
29
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
30
30
|
attr_accessor :name
|
|
31
31
|
|
|
32
|
-
#
|
|
33
|
-
attr_accessor :
|
|
32
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
33
|
+
attr_accessor :base_path
|
|
34
34
|
|
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
36
36
|
attr_accessor :remote
|
|
@@ -47,12 +47,12 @@ module PulpContainerClient
|
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
48
|
def self.attribute_map
|
|
49
49
|
{
|
|
50
|
+
:'pulp_labels' => :'pulp_labels',
|
|
51
|
+
:'content_guard' => :'content_guard',
|
|
50
52
|
:'hidden' => :'hidden',
|
|
51
53
|
:'repository' => :'repository',
|
|
52
|
-
:'base_path' => :'base_path',
|
|
53
|
-
:'pulp_labels' => :'pulp_labels',
|
|
54
54
|
:'name' => :'name',
|
|
55
|
-
:'
|
|
55
|
+
:'base_path' => :'base_path',
|
|
56
56
|
:'remote' => :'remote',
|
|
57
57
|
:'distributions' => :'distributions',
|
|
58
58
|
:'private' => :'private',
|
|
@@ -63,12 +63,12 @@ module PulpContainerClient
|
|
|
63
63
|
# Attribute type mapping.
|
|
64
64
|
def self.openapi_types
|
|
65
65
|
{
|
|
66
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
67
|
+
:'content_guard' => :'String',
|
|
66
68
|
:'hidden' => :'Boolean',
|
|
67
69
|
:'repository' => :'String',
|
|
68
|
-
:'base_path' => :'String',
|
|
69
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
70
70
|
:'name' => :'String',
|
|
71
|
-
:'
|
|
71
|
+
:'base_path' => :'String',
|
|
72
72
|
:'remote' => :'String',
|
|
73
73
|
:'distributions' => :'Array<String>',
|
|
74
74
|
:'private' => :'Boolean',
|
|
@@ -99,6 +99,16 @@ module PulpContainerClient
|
|
|
99
99
|
h[k.to_sym] = v
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
if attributes.key?(:'pulp_labels')
|
|
103
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
104
|
+
self.pulp_labels = value
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'content_guard')
|
|
109
|
+
self.content_guard = attributes[:'content_guard']
|
|
110
|
+
end
|
|
111
|
+
|
|
102
112
|
if attributes.key?(:'hidden')
|
|
103
113
|
self.hidden = attributes[:'hidden']
|
|
104
114
|
else
|
|
@@ -109,22 +119,12 @@ module PulpContainerClient
|
|
|
109
119
|
self.repository = attributes[:'repository']
|
|
110
120
|
end
|
|
111
121
|
|
|
112
|
-
if attributes.key?(:'base_path')
|
|
113
|
-
self.base_path = attributes[:'base_path']
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
if attributes.key?(:'pulp_labels')
|
|
117
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
118
|
-
self.pulp_labels = value
|
|
119
|
-
end
|
|
120
|
-
end
|
|
121
|
-
|
|
122
122
|
if attributes.key?(:'name')
|
|
123
123
|
self.name = attributes[:'name']
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
-
if attributes.key?(:'
|
|
127
|
-
self.
|
|
126
|
+
if attributes.key?(:'base_path')
|
|
127
|
+
self.base_path = attributes[:'base_path']
|
|
128
128
|
end
|
|
129
129
|
|
|
130
130
|
if attributes.key?(:'remote')
|
|
@@ -150,14 +150,14 @@ module PulpContainerClient
|
|
|
150
150
|
# @return Array for valid properties with the reasons
|
|
151
151
|
def list_invalid_properties
|
|
152
152
|
invalid_properties = Array.new
|
|
153
|
-
if !@base_path.nil? && @base_path.to_s.length < 1
|
|
154
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
155
|
-
end
|
|
156
|
-
|
|
157
153
|
if !@name.nil? && @name.to_s.length < 1
|
|
158
154
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
159
155
|
end
|
|
160
156
|
|
|
157
|
+
if !@base_path.nil? && @base_path.to_s.length < 1
|
|
158
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
159
|
+
end
|
|
160
|
+
|
|
161
161
|
if !@description.nil? && @description.to_s.length < 1
|
|
162
162
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
163
163
|
end
|
|
@@ -168,22 +168,12 @@ module PulpContainerClient
|
|
|
168
168
|
# Check to see if the all the properties in the model are valid
|
|
169
169
|
# @return true if the model is valid
|
|
170
170
|
def valid?
|
|
171
|
-
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
|
172
171
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
172
|
+
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
|
173
173
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
174
174
|
true
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
-
# Custom attribute writer method with validation
|
|
178
|
-
# @param [Object] base_path Value to be assigned
|
|
179
|
-
def base_path=(base_path)
|
|
180
|
-
if !base_path.nil? && base_path.to_s.length < 1
|
|
181
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
@base_path = base_path
|
|
185
|
-
end
|
|
186
|
-
|
|
187
177
|
# Custom attribute writer method with validation
|
|
188
178
|
# @param [Object] name Value to be assigned
|
|
189
179
|
def name=(name)
|
|
@@ -194,6 +184,16 @@ module PulpContainerClient
|
|
|
194
184
|
@name = name
|
|
195
185
|
end
|
|
196
186
|
|
|
187
|
+
# Custom attribute writer method with validation
|
|
188
|
+
# @param [Object] base_path Value to be assigned
|
|
189
|
+
def base_path=(base_path)
|
|
190
|
+
if !base_path.nil? && base_path.to_s.length < 1
|
|
191
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
@base_path = base_path
|
|
195
|
+
end
|
|
196
|
+
|
|
197
197
|
# Custom attribute writer method with validation
|
|
198
198
|
# @param [Object] description Value to be assigned
|
|
199
199
|
def description=(description)
|
|
@@ -209,12 +209,12 @@ module PulpContainerClient
|
|
|
209
209
|
def ==(o)
|
|
210
210
|
return true if self.equal?(o)
|
|
211
211
|
self.class == o.class &&
|
|
212
|
+
pulp_labels == o.pulp_labels &&
|
|
213
|
+
content_guard == o.content_guard &&
|
|
212
214
|
hidden == o.hidden &&
|
|
213
215
|
repository == o.repository &&
|
|
214
|
-
base_path == o.base_path &&
|
|
215
|
-
pulp_labels == o.pulp_labels &&
|
|
216
216
|
name == o.name &&
|
|
217
|
-
|
|
217
|
+
base_path == o.base_path &&
|
|
218
218
|
remote == o.remote &&
|
|
219
219
|
distributions == o.distributions &&
|
|
220
220
|
private == o.private &&
|
|
@@ -230,7 +230,7 @@ module PulpContainerClient
|
|
|
230
230
|
# Calculates hash code according to all attributes.
|
|
231
231
|
# @return [Integer] Hash code
|
|
232
232
|
def hash
|
|
233
|
-
[
|
|
233
|
+
[pulp_labels, content_guard, hidden, repository, name, base_path, remote, distributions, private, description].hash
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# Builds the object from hash
|
|
@@ -76,6 +76,12 @@ module PulpContainerClient
|
|
|
76
76
|
# Limits requests per second for each concurrent downloader
|
|
77
77
|
attr_accessor :rate_limit
|
|
78
78
|
|
|
79
|
+
# A list of remotes to include during pull-through caching. Wildcards *, ? are recognized. 'includes' is evaluated before 'excludes'.
|
|
80
|
+
attr_accessor :includes
|
|
81
|
+
|
|
82
|
+
# A list of remotes to exclude during pull-through caching. Wildcards *, ? are recognized. 'excludes' is evaluated after 'includes'.
|
|
83
|
+
attr_accessor :excludes
|
|
84
|
+
|
|
79
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
80
86
|
def self.attribute_map
|
|
81
87
|
{
|
|
@@ -99,7 +105,9 @@ module PulpContainerClient
|
|
|
99
105
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
100
106
|
:'sock_read_timeout' => :'sock_read_timeout',
|
|
101
107
|
:'headers' => :'headers',
|
|
102
|
-
:'rate_limit' => :'rate_limit'
|
|
108
|
+
:'rate_limit' => :'rate_limit',
|
|
109
|
+
:'includes' => :'includes',
|
|
110
|
+
:'excludes' => :'excludes'
|
|
103
111
|
}
|
|
104
112
|
end
|
|
105
113
|
|
|
@@ -120,13 +128,15 @@ module PulpContainerClient
|
|
|
120
128
|
:'pulp_labels' => :'Hash<String, String>',
|
|
121
129
|
:'download_concurrency' => :'Integer',
|
|
122
130
|
:'max_retries' => :'Integer',
|
|
123
|
-
:'policy' => :'
|
|
131
|
+
:'policy' => :'Policy7e0Enum',
|
|
124
132
|
:'total_timeout' => :'Float',
|
|
125
133
|
:'connect_timeout' => :'Float',
|
|
126
134
|
:'sock_connect_timeout' => :'Float',
|
|
127
135
|
:'sock_read_timeout' => :'Float',
|
|
128
136
|
:'headers' => :'Array<Object>',
|
|
129
|
-
:'rate_limit' => :'Integer'
|
|
137
|
+
:'rate_limit' => :'Integer',
|
|
138
|
+
:'includes' => :'Array<String>',
|
|
139
|
+
:'excludes' => :'Array<String>'
|
|
130
140
|
}
|
|
131
141
|
end
|
|
132
142
|
|
|
@@ -147,7 +157,9 @@ module PulpContainerClient
|
|
|
147
157
|
:'connect_timeout',
|
|
148
158
|
:'sock_connect_timeout',
|
|
149
159
|
:'sock_read_timeout',
|
|
150
|
-
:'rate_limit'
|
|
160
|
+
:'rate_limit',
|
|
161
|
+
:'includes',
|
|
162
|
+
:'excludes'
|
|
151
163
|
])
|
|
152
164
|
end
|
|
153
165
|
|
|
@@ -253,6 +265,18 @@ module PulpContainerClient
|
|
|
253
265
|
if attributes.key?(:'rate_limit')
|
|
254
266
|
self.rate_limit = attributes[:'rate_limit']
|
|
255
267
|
end
|
|
268
|
+
|
|
269
|
+
if attributes.key?(:'includes')
|
|
270
|
+
if (value = attributes[:'includes']).is_a?(Array)
|
|
271
|
+
self.includes = value
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
if attributes.key?(:'excludes')
|
|
276
|
+
if (value = attributes[:'excludes']).is_a?(Array)
|
|
277
|
+
self.excludes = value
|
|
278
|
+
end
|
|
279
|
+
end
|
|
256
280
|
end
|
|
257
281
|
|
|
258
282
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -518,7 +542,9 @@ module PulpContainerClient
|
|
|
518
542
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
519
543
|
sock_read_timeout == o.sock_read_timeout &&
|
|
520
544
|
headers == o.headers &&
|
|
521
|
-
rate_limit == o.rate_limit
|
|
545
|
+
rate_limit == o.rate_limit &&
|
|
546
|
+
includes == o.includes &&
|
|
547
|
+
excludes == o.excludes
|
|
522
548
|
end
|
|
523
549
|
|
|
524
550
|
# @see the `==` method
|
|
@@ -530,7 +556,7 @@ module PulpContainerClient
|
|
|
530
556
|
# Calculates hash code according to all attributes.
|
|
531
557
|
# @return [Integer] Hash code
|
|
532
558
|
def hash
|
|
533
|
-
[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].hash
|
|
559
|
+
[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, includes, excludes].hash
|
|
534
560
|
end
|
|
535
561
|
|
|
536
562
|
# Builds the object from hash
|
|
@@ -15,39 +15,39 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class PatchedcontainerContainerPushRepository
|
|
18
|
-
|
|
19
|
-
attr_accessor :name
|
|
18
|
+
attr_accessor :pulp_labels
|
|
20
19
|
|
|
21
20
|
# A reference to an associated signing service.
|
|
22
21
|
attr_accessor :manifest_signing_service
|
|
23
22
|
|
|
24
|
-
|
|
23
|
+
# An optional description.
|
|
24
|
+
attr_accessor :description
|
|
25
|
+
|
|
26
|
+
# A unique name for this repository.
|
|
27
|
+
attr_accessor :name
|
|
25
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
|
-
:'name' => :'name',
|
|
36
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
|
37
35
|
:'pulp_labels' => :'pulp_labels',
|
|
38
|
-
:'
|
|
39
|
-
:'description' => :'description'
|
|
36
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
37
|
+
:'description' => :'description',
|
|
38
|
+
:'name' => :'name',
|
|
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
|
-
:'name' => :'String',
|
|
47
|
-
:'manifest_signing_service' => :'String',
|
|
48
46
|
:'pulp_labels' => :'Hash<String, String>',
|
|
49
|
-
:'
|
|
50
|
-
:'description' => :'String'
|
|
47
|
+
:'manifest_signing_service' => :'String',
|
|
48
|
+
:'description' => :'String',
|
|
49
|
+
:'name' => :'String',
|
|
50
|
+
:'retain_repo_versions' => :'Integer'
|
|
51
51
|
}
|
|
52
52
|
end
|
|
53
53
|
|
|
@@ -55,8 +55,8 @@ module PulpContainerClient
|
|
|
55
55
|
def self.openapi_nullable
|
|
56
56
|
Set.new([
|
|
57
57
|
:'manifest_signing_service',
|
|
58
|
-
:'
|
|
59
|
-
:'
|
|
58
|
+
:'description',
|
|
59
|
+
:'retain_repo_versions'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -75,33 +75,37 @@ module PulpContainerClient
|
|
|
75
75
|
h[k.to_sym] = v
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
if attributes.key?(:'name')
|
|
79
|
-
self.name = attributes[:'name']
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
if attributes.key?(:'manifest_signing_service')
|
|
83
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
84
|
-
end
|
|
85
|
-
|
|
86
78
|
if attributes.key?(:'pulp_labels')
|
|
87
79
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
88
80
|
self.pulp_labels = value
|
|
89
81
|
end
|
|
90
82
|
end
|
|
91
83
|
|
|
92
|
-
if attributes.key?(:'
|
|
93
|
-
self.
|
|
84
|
+
if attributes.key?(:'manifest_signing_service')
|
|
85
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
94
86
|
end
|
|
95
87
|
|
|
96
88
|
if attributes.key?(:'description')
|
|
97
89
|
self.description = attributes[:'description']
|
|
98
90
|
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'name')
|
|
93
|
+
self.name = attributes[:'name']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'retain_repo_versions')
|
|
97
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
98
|
+
end
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
102
102
|
# @return Array for valid properties with the reasons
|
|
103
103
|
def list_invalid_properties
|
|
104
104
|
invalid_properties = Array.new
|
|
105
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
106
|
+
invalid_properties.push('invalid value for "description", the character length must be great 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 "retain_repo_versions", must be greater than or equal to 1.')
|
|
111
115
|
end
|
|
112
116
|
|
|
113
|
-
if !@description.nil? && @description.to_s.length < 1
|
|
114
|
-
invalid_properties.push('invalid value for "description", the character length must be great 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 !@description.nil? && @description.to_s.length < 1
|
|
123
124
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
124
125
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
125
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
126
126
|
true
|
|
127
127
|
end
|
|
128
128
|
|
|
129
|
+
# Custom attribute writer method with validation
|
|
130
|
+
# @param [Object] description Value to be assigned
|
|
131
|
+
def description=(description)
|
|
132
|
+
if !description.nil? && description.to_s.length < 1
|
|
133
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
@description = description
|
|
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
|
@retain_repo_versions = retain_repo_versions
|
|
147
157
|
end
|
|
148
158
|
|
|
149
|
-
# Custom attribute writer method with validation
|
|
150
|
-
# @param [Object] description Value to be assigned
|
|
151
|
-
def description=(description)
|
|
152
|
-
if !description.nil? && description.to_s.length < 1
|
|
153
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
@description = description
|
|
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
|
-
name == o.name &&
|
|
165
|
-
manifest_signing_service == o.manifest_signing_service &&
|
|
166
164
|
pulp_labels == o.pulp_labels &&
|
|
167
|
-
|
|
168
|
-
description == o.description
|
|
165
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
166
|
+
description == o.description &&
|
|
167
|
+
name == o.name &&
|
|
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
|
+
[pulp_labels, manifest_signing_service, description, name, retain_repo_versions].hash
|
|
181
181
|
end
|
|
182
182
|
|
|
183
183
|
# Builds the object from hash
|
|
@@ -137,7 +137,7 @@ module PulpContainerClient
|
|
|
137
137
|
:'pulp_labels' => :'Hash<String, String>',
|
|
138
138
|
:'download_concurrency' => :'Integer',
|
|
139
139
|
:'max_retries' => :'Integer',
|
|
140
|
-
:'policy' => :'
|
|
140
|
+
:'policy' => :'Policy692Enum',
|
|
141
141
|
:'total_timeout' => :'Float',
|
|
142
142
|
:'connect_timeout' => :'Float',
|
|
143
143
|
:'sock_connect_timeout' => :'Float',
|
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpContainerClient
|
|
16
|
-
class
|
|
16
|
+
class Policy692Enum
|
|
17
17
|
IMMEDIATE = "immediate".freeze
|
|
18
18
|
ON_DEMAND = "on_demand".freeze
|
|
19
19
|
STREAMED = "streamed".freeze
|
|
@@ -29,8 +29,8 @@ module PulpContainerClient
|
|
|
29
29
|
# @param [String] The enum value in the form of the string
|
|
30
30
|
# @return [String] The enum value
|
|
31
31
|
def build_from_hash(value)
|
|
32
|
-
constantValues =
|
|
33
|
-
raise "Invalid ENUM value #{value} for class #
|
|
32
|
+
constantValues = Policy692Enum.constants.select { |c| Policy692Enum::const_get(c) == value }
|
|
33
|
+
raise "Invalid ENUM value #{value} for class #Policy692Enum" if constantValues.empty?
|
|
34
34
|
value
|
|
35
35
|
end
|
|
36
36
|
end
|