pulp_container_client 2.20.6 → 2.20.7
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 +7 -6
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPullThroughDistribution.md +5 -5
- data/docs/ContainerContainerPullThroughDistributionResponse.md +9 -9
- data/docs/ContainerContainerPullThroughRemote.md +1 -1
- data/docs/ContainerContainerPullThroughRemoteResponse.md +1 -1
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +1 -1
- data/docs/ContentBlobsApi.md +4 -0
- data/docs/ContentManifestsApi.md +4 -0
- data/docs/ContentSignaturesApi.md +4 -0
- data/docs/ContentTagsApi.md +4 -0
- data/docs/DistributionsContainerApi.md +56 -16
- data/docs/DistributionsPullThroughApi.md +56 -16
- data/docs/OCIBuildImage.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPullThroughRemote.md +1 -1
- 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 +32 -8
- data/docs/RemotesContainerApi.md +56 -16
- data/docs/RemotesPullThroughApi.md +56 -16
- data/docs/RepositoriesContainerApi.md +108 -34
- data/docs/RepositoriesContainerPushApi.md +62 -18
- data/docs/RepositoriesContainerPushVersionsApi.md +16 -4
- data/docs/RepositoriesContainerVersionsApi.md +16 -4
- data/docs/TokenApi.md +13 -3
- data/lib/pulp_container_client/api/content_blobs_api.rb +6 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +6 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +6 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +6 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +36 -0
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +36 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +36 -0
- data/lib/pulp_container_client/api/remotes_pull_through_api.rb +36 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +65 -2
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +39 -0
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +12 -0
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +12 -0
- data/lib/pulp_container_client/api/token_api.rb +9 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +22 -22
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +42 -42
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +22 -22
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +42 -42
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +1 -1
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_push_repository.rb +44 -44
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +49 -49
- 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/oci_build_image.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +22 -22
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +22 -22
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +44 -44
- 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/version.rb +1 -1
- data/lib/pulp_container_client.rb +2 -2
- data/spec/api/content_blobs_api_spec.rb +2 -0
- data/spec/api/content_manifests_api_spec.rb +2 -0
- data/spec/api/content_signatures_api_spec.rb +2 -0
- data/spec/api/content_tags_api_spec.rb +2 -0
- data/spec/api/distributions_container_api_spec.rb +12 -0
- data/spec/api/distributions_pull_through_api_spec.rb +12 -0
- data/spec/api/pulp_container_namespaces_api_spec.rb +8 -0
- data/spec/api/remotes_container_api_spec.rb +12 -0
- data/spec/api/remotes_pull_through_api_spec.rb +12 -0
- data/spec/api/repositories_container_api_spec.rb +22 -1
- data/spec/api/repositories_container_push_api_spec.rb +13 -0
- data/spec/api/repositories_container_push_versions_api_spec.rb +4 -0
- data/spec/api/repositories_container_versions_api_spec.rb +4 -0
- data/spec/api/token_api_spec.rb +3 -0
- data/spec/models/container_container_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +10 -10
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- 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
- metadata +67 -67
|
@@ -15,31 +15,31 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class ContainerContainerDistributionResponse
|
|
18
|
+
# Whether this distribution should be shown in the content app.
|
|
19
|
+
attr_accessor :hidden
|
|
20
|
+
|
|
18
21
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
22
|
attr_accessor :content_guard
|
|
20
23
|
|
|
21
|
-
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
22
|
-
attr_accessor :pulp_last_updated
|
|
23
|
-
|
|
24
24
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
25
25
|
attr_accessor :name
|
|
26
26
|
|
|
27
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
28
|
+
attr_accessor :pulp_last_updated
|
|
29
|
+
|
|
27
30
|
# The latest RepositoryVersion for this Repository will be served.
|
|
28
31
|
attr_accessor :repository
|
|
29
32
|
|
|
30
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
31
|
-
attr_accessor :base_path
|
|
32
|
-
|
|
33
|
-
# Whether this distribution should be shown in the content app.
|
|
34
|
-
attr_accessor :hidden
|
|
35
|
-
|
|
36
33
|
# Timestamp of creation.
|
|
37
34
|
attr_accessor :pulp_created
|
|
38
35
|
|
|
39
|
-
attr_accessor :pulp_href
|
|
40
|
-
|
|
41
36
|
attr_accessor :pulp_labels
|
|
42
37
|
|
|
38
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
39
|
+
attr_accessor :base_path
|
|
40
|
+
|
|
41
|
+
attr_accessor :pulp_href
|
|
42
|
+
|
|
43
43
|
# RepositoryVersion to be served
|
|
44
44
|
attr_accessor :repository_version
|
|
45
45
|
|
|
@@ -61,15 +61,15 @@ module PulpContainerClient
|
|
|
61
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
62
62
|
def self.attribute_map
|
|
63
63
|
{
|
|
64
|
+
:'hidden' => :'hidden',
|
|
64
65
|
:'content_guard' => :'content_guard',
|
|
65
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
66
66
|
:'name' => :'name',
|
|
67
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
67
68
|
:'repository' => :'repository',
|
|
68
|
-
:'base_path' => :'base_path',
|
|
69
|
-
:'hidden' => :'hidden',
|
|
70
69
|
:'pulp_created' => :'pulp_created',
|
|
71
|
-
:'pulp_href' => :'pulp_href',
|
|
72
70
|
:'pulp_labels' => :'pulp_labels',
|
|
71
|
+
:'base_path' => :'base_path',
|
|
72
|
+
:'pulp_href' => :'pulp_href',
|
|
73
73
|
:'repository_version' => :'repository_version',
|
|
74
74
|
:'registry_path' => :'registry_path',
|
|
75
75
|
:'remote' => :'remote',
|
|
@@ -82,15 +82,15 @@ module PulpContainerClient
|
|
|
82
82
|
# Attribute type mapping.
|
|
83
83
|
def self.openapi_types
|
|
84
84
|
{
|
|
85
|
+
:'hidden' => :'Boolean',
|
|
85
86
|
:'content_guard' => :'String',
|
|
86
|
-
:'pulp_last_updated' => :'DateTime',
|
|
87
87
|
:'name' => :'String',
|
|
88
|
+
:'pulp_last_updated' => :'DateTime',
|
|
88
89
|
:'repository' => :'String',
|
|
89
|
-
:'base_path' => :'String',
|
|
90
|
-
:'hidden' => :'Boolean',
|
|
91
90
|
:'pulp_created' => :'DateTime',
|
|
92
|
-
:'pulp_href' => :'String',
|
|
93
91
|
:'pulp_labels' => :'Hash<String, String>',
|
|
92
|
+
:'base_path' => :'String',
|
|
93
|
+
:'pulp_href' => :'String',
|
|
94
94
|
:'repository_version' => :'String',
|
|
95
95
|
:'registry_path' => :'String',
|
|
96
96
|
:'remote' => :'String',
|
|
@@ -124,46 +124,46 @@ module PulpContainerClient
|
|
|
124
124
|
h[k.to_sym] = v
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
if attributes.key?(:'
|
|
128
|
-
self.
|
|
127
|
+
if attributes.key?(:'hidden')
|
|
128
|
+
self.hidden = attributes[:'hidden']
|
|
129
|
+
else
|
|
130
|
+
self.hidden = false
|
|
129
131
|
end
|
|
130
132
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
self.
|
|
133
|
+
if attributes.key?(:'content_guard')
|
|
134
|
+
self.content_guard = attributes[:'content_guard']
|
|
133
135
|
end
|
|
134
136
|
|
|
135
137
|
if attributes.key?(:'name')
|
|
136
138
|
self.name = attributes[:'name']
|
|
137
139
|
end
|
|
138
140
|
|
|
139
|
-
if attributes.key?(:'
|
|
140
|
-
self.
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
if attributes.key?(:'base_path')
|
|
144
|
-
self.base_path = attributes[:'base_path']
|
|
141
|
+
if attributes.key?(:'pulp_last_updated')
|
|
142
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
145
143
|
end
|
|
146
144
|
|
|
147
|
-
if attributes.key?(:'
|
|
148
|
-
self.
|
|
149
|
-
else
|
|
150
|
-
self.hidden = false
|
|
145
|
+
if attributes.key?(:'repository')
|
|
146
|
+
self.repository = attributes[:'repository']
|
|
151
147
|
end
|
|
152
148
|
|
|
153
149
|
if attributes.key?(:'pulp_created')
|
|
154
150
|
self.pulp_created = attributes[:'pulp_created']
|
|
155
151
|
end
|
|
156
152
|
|
|
157
|
-
if attributes.key?(:'pulp_href')
|
|
158
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
159
|
-
end
|
|
160
|
-
|
|
161
153
|
if attributes.key?(:'pulp_labels')
|
|
162
154
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
163
155
|
self.pulp_labels = value
|
|
164
156
|
end
|
|
165
157
|
end
|
|
166
158
|
|
|
159
|
+
if attributes.key?(:'base_path')
|
|
160
|
+
self.base_path = attributes[:'base_path']
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
if attributes.key?(:'pulp_href')
|
|
164
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
165
|
+
end
|
|
166
|
+
|
|
167
167
|
if attributes.key?(:'repository_version')
|
|
168
168
|
self.repository_version = attributes[:'repository_version']
|
|
169
169
|
end
|
|
@@ -217,15 +217,15 @@ module PulpContainerClient
|
|
|
217
217
|
def ==(o)
|
|
218
218
|
return true if self.equal?(o)
|
|
219
219
|
self.class == o.class &&
|
|
220
|
+
hidden == o.hidden &&
|
|
220
221
|
content_guard == o.content_guard &&
|
|
221
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
222
222
|
name == o.name &&
|
|
223
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
223
224
|
repository == o.repository &&
|
|
224
|
-
base_path == o.base_path &&
|
|
225
|
-
hidden == o.hidden &&
|
|
226
225
|
pulp_created == o.pulp_created &&
|
|
227
|
-
pulp_href == o.pulp_href &&
|
|
228
226
|
pulp_labels == o.pulp_labels &&
|
|
227
|
+
base_path == o.base_path &&
|
|
228
|
+
pulp_href == o.pulp_href &&
|
|
229
229
|
repository_version == o.repository_version &&
|
|
230
230
|
registry_path == o.registry_path &&
|
|
231
231
|
remote == o.remote &&
|
|
@@ -243,7 +243,7 @@ module PulpContainerClient
|
|
|
243
243
|
# Calculates hash code according to all attributes.
|
|
244
244
|
# @return [Integer] Hash code
|
|
245
245
|
def hash
|
|
246
|
-
[
|
|
246
|
+
[hidden, content_guard, name, pulp_last_updated, repository, pulp_created, pulp_labels, base_path, pulp_href, repository_version, registry_path, remote, namespace, private, description].hash
|
|
247
247
|
end
|
|
248
248
|
|
|
249
249
|
# Builds the object from hash
|
|
@@ -15,6 +15,9 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
17
17
|
class ContainerContainerPullThroughDistribution
|
|
18
|
+
# Whether this distribution should be shown in the content app.
|
|
19
|
+
attr_accessor :hidden
|
|
20
|
+
|
|
18
21
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
22
|
attr_accessor :content_guard
|
|
20
23
|
|
|
@@ -24,14 +27,11 @@ module PulpContainerClient
|
|
|
24
27
|
# The latest RepositoryVersion for this Repository will be served.
|
|
25
28
|
attr_accessor :repository
|
|
26
29
|
|
|
30
|
+
attr_accessor :pulp_labels
|
|
31
|
+
|
|
27
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\")
|
|
28
33
|
attr_accessor :base_path
|
|
29
34
|
|
|
30
|
-
# Whether this distribution should be shown in the content app.
|
|
31
|
-
attr_accessor :hidden
|
|
32
|
-
|
|
33
|
-
attr_accessor :pulp_labels
|
|
34
|
-
|
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
36
36
|
attr_accessor :remote
|
|
37
37
|
|
|
@@ -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
|
+
:'hidden' => :'hidden',
|
|
50
51
|
:'content_guard' => :'content_guard',
|
|
51
52
|
:'name' => :'name',
|
|
52
53
|
:'repository' => :'repository',
|
|
53
|
-
:'base_path' => :'base_path',
|
|
54
|
-
:'hidden' => :'hidden',
|
|
55
54
|
:'pulp_labels' => :'pulp_labels',
|
|
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
|
+
:'hidden' => :'Boolean',
|
|
66
67
|
:'content_guard' => :'String',
|
|
67
68
|
:'name' => :'String',
|
|
68
69
|
:'repository' => :'String',
|
|
69
|
-
:'base_path' => :'String',
|
|
70
|
-
:'hidden' => :'Boolean',
|
|
71
70
|
:'pulp_labels' => :'Hash<String, String>',
|
|
71
|
+
:'base_path' => :'String',
|
|
72
72
|
:'remote' => :'String',
|
|
73
73
|
:'distributions' => :'Array<String>',
|
|
74
74
|
:'private' => :'Boolean',
|
|
@@ -99,6 +99,12 @@ module PulpContainerClient
|
|
|
99
99
|
h[k.to_sym] = v
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
if attributes.key?(:'hidden')
|
|
103
|
+
self.hidden = attributes[:'hidden']
|
|
104
|
+
else
|
|
105
|
+
self.hidden = false
|
|
106
|
+
end
|
|
107
|
+
|
|
102
108
|
if attributes.key?(:'content_guard')
|
|
103
109
|
self.content_guard = attributes[:'content_guard']
|
|
104
110
|
end
|
|
@@ -111,22 +117,16 @@ module PulpContainerClient
|
|
|
111
117
|
self.repository = attributes[:'repository']
|
|
112
118
|
end
|
|
113
119
|
|
|
114
|
-
if attributes.key?(:'base_path')
|
|
115
|
-
self.base_path = attributes[:'base_path']
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
if attributes.key?(:'hidden')
|
|
119
|
-
self.hidden = attributes[:'hidden']
|
|
120
|
-
else
|
|
121
|
-
self.hidden = false
|
|
122
|
-
end
|
|
123
|
-
|
|
124
120
|
if attributes.key?(:'pulp_labels')
|
|
125
121
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
126
122
|
self.pulp_labels = value
|
|
127
123
|
end
|
|
128
124
|
end
|
|
129
125
|
|
|
126
|
+
if attributes.key?(:'base_path')
|
|
127
|
+
self.base_path = attributes[:'base_path']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
130
|
if attributes.key?(:'remote')
|
|
131
131
|
self.remote = attributes[:'remote']
|
|
132
132
|
end
|
|
@@ -232,12 +232,12 @@ module PulpContainerClient
|
|
|
232
232
|
def ==(o)
|
|
233
233
|
return true if self.equal?(o)
|
|
234
234
|
self.class == o.class &&
|
|
235
|
+
hidden == o.hidden &&
|
|
235
236
|
content_guard == o.content_guard &&
|
|
236
237
|
name == o.name &&
|
|
237
238
|
repository == o.repository &&
|
|
238
|
-
base_path == o.base_path &&
|
|
239
|
-
hidden == o.hidden &&
|
|
240
239
|
pulp_labels == o.pulp_labels &&
|
|
240
|
+
base_path == o.base_path &&
|
|
241
241
|
remote == o.remote &&
|
|
242
242
|
distributions == o.distributions &&
|
|
243
243
|
private == o.private &&
|
|
@@ -253,7 +253,7 @@ module PulpContainerClient
|
|
|
253
253
|
# Calculates hash code according to all attributes.
|
|
254
254
|
# @return [Integer] Hash code
|
|
255
255
|
def hash
|
|
256
|
-
[content_guard, name, repository,
|
|
256
|
+
[hidden, content_guard, name, repository, pulp_labels, base_path, remote, distributions, private, description].hash
|
|
257
257
|
end
|
|
258
258
|
|
|
259
259
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
|
@@ -15,31 +15,31 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
17
17
|
class ContainerContainerPullThroughDistributionResponse
|
|
18
|
+
# Whether this distribution should be shown in the content app.
|
|
19
|
+
attr_accessor :hidden
|
|
20
|
+
|
|
18
21
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
22
|
attr_accessor :content_guard
|
|
20
23
|
|
|
21
|
-
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
22
|
-
attr_accessor :pulp_last_updated
|
|
23
|
-
|
|
24
24
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
25
25
|
attr_accessor :name
|
|
26
26
|
|
|
27
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
28
|
+
attr_accessor :pulp_last_updated
|
|
29
|
+
|
|
27
30
|
# The latest RepositoryVersion for this Repository will be served.
|
|
28
31
|
attr_accessor :repository
|
|
29
32
|
|
|
30
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
31
|
-
attr_accessor :base_path
|
|
32
|
-
|
|
33
|
-
# Whether this distribution should be shown in the content app.
|
|
34
|
-
attr_accessor :hidden
|
|
35
|
-
|
|
36
33
|
# Timestamp of creation.
|
|
37
34
|
attr_accessor :pulp_created
|
|
38
35
|
|
|
39
|
-
attr_accessor :pulp_href
|
|
40
|
-
|
|
41
36
|
attr_accessor :pulp_labels
|
|
42
37
|
|
|
38
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
39
|
+
attr_accessor :base_path
|
|
40
|
+
|
|
41
|
+
attr_accessor :pulp_href
|
|
42
|
+
|
|
43
43
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
44
44
|
attr_accessor :remote
|
|
45
45
|
|
|
@@ -58,15 +58,15 @@ module PulpContainerClient
|
|
|
58
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
59
59
|
def self.attribute_map
|
|
60
60
|
{
|
|
61
|
+
:'hidden' => :'hidden',
|
|
61
62
|
:'content_guard' => :'content_guard',
|
|
62
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
63
63
|
:'name' => :'name',
|
|
64
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
64
65
|
:'repository' => :'repository',
|
|
65
|
-
:'base_path' => :'base_path',
|
|
66
|
-
:'hidden' => :'hidden',
|
|
67
66
|
:'pulp_created' => :'pulp_created',
|
|
68
|
-
:'pulp_href' => :'pulp_href',
|
|
69
67
|
:'pulp_labels' => :'pulp_labels',
|
|
68
|
+
:'base_path' => :'base_path',
|
|
69
|
+
:'pulp_href' => :'pulp_href',
|
|
70
70
|
:'remote' => :'remote',
|
|
71
71
|
:'distributions' => :'distributions',
|
|
72
72
|
:'namespace' => :'namespace',
|
|
@@ -78,15 +78,15 @@ module PulpContainerClient
|
|
|
78
78
|
# Attribute type mapping.
|
|
79
79
|
def self.openapi_types
|
|
80
80
|
{
|
|
81
|
+
:'hidden' => :'Boolean',
|
|
81
82
|
:'content_guard' => :'String',
|
|
82
|
-
:'pulp_last_updated' => :'DateTime',
|
|
83
83
|
:'name' => :'String',
|
|
84
|
+
:'pulp_last_updated' => :'DateTime',
|
|
84
85
|
:'repository' => :'String',
|
|
85
|
-
:'base_path' => :'String',
|
|
86
|
-
:'hidden' => :'Boolean',
|
|
87
86
|
:'pulp_created' => :'DateTime',
|
|
88
|
-
:'pulp_href' => :'String',
|
|
89
87
|
:'pulp_labels' => :'Hash<String, String>',
|
|
88
|
+
:'base_path' => :'String',
|
|
89
|
+
:'pulp_href' => :'String',
|
|
90
90
|
:'remote' => :'String',
|
|
91
91
|
:'distributions' => :'Array<String>',
|
|
92
92
|
:'namespace' => :'String',
|
|
@@ -118,46 +118,46 @@ module PulpContainerClient
|
|
|
118
118
|
h[k.to_sym] = v
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
if attributes.key?(:'
|
|
122
|
-
self.
|
|
121
|
+
if attributes.key?(:'hidden')
|
|
122
|
+
self.hidden = attributes[:'hidden']
|
|
123
|
+
else
|
|
124
|
+
self.hidden = false
|
|
123
125
|
end
|
|
124
126
|
|
|
125
|
-
if attributes.key?(:'
|
|
126
|
-
self.
|
|
127
|
+
if attributes.key?(:'content_guard')
|
|
128
|
+
self.content_guard = attributes[:'content_guard']
|
|
127
129
|
end
|
|
128
130
|
|
|
129
131
|
if attributes.key?(:'name')
|
|
130
132
|
self.name = attributes[:'name']
|
|
131
133
|
end
|
|
132
134
|
|
|
133
|
-
if attributes.key?(:'
|
|
134
|
-
self.
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
if attributes.key?(:'base_path')
|
|
138
|
-
self.base_path = attributes[:'base_path']
|
|
135
|
+
if attributes.key?(:'pulp_last_updated')
|
|
136
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
139
137
|
end
|
|
140
138
|
|
|
141
|
-
if attributes.key?(:'
|
|
142
|
-
self.
|
|
143
|
-
else
|
|
144
|
-
self.hidden = false
|
|
139
|
+
if attributes.key?(:'repository')
|
|
140
|
+
self.repository = attributes[:'repository']
|
|
145
141
|
end
|
|
146
142
|
|
|
147
143
|
if attributes.key?(:'pulp_created')
|
|
148
144
|
self.pulp_created = attributes[:'pulp_created']
|
|
149
145
|
end
|
|
150
146
|
|
|
151
|
-
if attributes.key?(:'pulp_href')
|
|
152
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
153
|
-
end
|
|
154
|
-
|
|
155
147
|
if attributes.key?(:'pulp_labels')
|
|
156
148
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
157
149
|
self.pulp_labels = value
|
|
158
150
|
end
|
|
159
151
|
end
|
|
160
152
|
|
|
153
|
+
if attributes.key?(:'base_path')
|
|
154
|
+
self.base_path = attributes[:'base_path']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'pulp_href')
|
|
158
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
161
|
if attributes.key?(:'remote')
|
|
162
162
|
self.remote = attributes[:'remote']
|
|
163
163
|
end
|
|
@@ -214,15 +214,15 @@ module PulpContainerClient
|
|
|
214
214
|
def ==(o)
|
|
215
215
|
return true if self.equal?(o)
|
|
216
216
|
self.class == o.class &&
|
|
217
|
+
hidden == o.hidden &&
|
|
217
218
|
content_guard == o.content_guard &&
|
|
218
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
219
219
|
name == o.name &&
|
|
220
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
220
221
|
repository == o.repository &&
|
|
221
|
-
base_path == o.base_path &&
|
|
222
|
-
hidden == o.hidden &&
|
|
223
222
|
pulp_created == o.pulp_created &&
|
|
224
|
-
pulp_href == o.pulp_href &&
|
|
225
223
|
pulp_labels == o.pulp_labels &&
|
|
224
|
+
base_path == o.base_path &&
|
|
225
|
+
pulp_href == o.pulp_href &&
|
|
226
226
|
remote == o.remote &&
|
|
227
227
|
distributions == o.distributions &&
|
|
228
228
|
namespace == o.namespace &&
|
|
@@ -239,7 +239,7 @@ module PulpContainerClient
|
|
|
239
239
|
# Calculates hash code according to all attributes.
|
|
240
240
|
# @return [Integer] Hash code
|
|
241
241
|
def hash
|
|
242
|
-
[
|
|
242
|
+
[hidden, content_guard, name, pulp_last_updated, repository, pulp_created, pulp_labels, base_path, pulp_href, remote, distributions, namespace, private, description].hash
|
|
243
243
|
end
|
|
244
244
|
|
|
245
245
|
# Builds the object from hash
|
|
@@ -120,7 +120,7 @@ module PulpContainerClient
|
|
|
120
120
|
:'pulp_labels' => :'Hash<String, String>',
|
|
121
121
|
:'download_concurrency' => :'Integer',
|
|
122
122
|
:'max_retries' => :'Integer',
|
|
123
|
-
:'policy' => :'
|
|
123
|
+
:'policy' => :'Policy7e0Enum',
|
|
124
124
|
:'total_timeout' => :'Float',
|
|
125
125
|
:'connect_timeout' => :'Float',
|
|
126
126
|
:'sock_connect_timeout' => :'Float',
|
|
@@ -113,7 +113,7 @@ module PulpContainerClient
|
|
|
113
113
|
:'pulp_labels' => :'Hash<String, String>',
|
|
114
114
|
:'download_concurrency' => :'Integer',
|
|
115
115
|
:'max_retries' => :'Integer',
|
|
116
|
-
:'policy' => :'
|
|
116
|
+
:'policy' => :'Policy7e0Enum',
|
|
117
117
|
:'total_timeout' => :'Float',
|
|
118
118
|
:'connect_timeout' => :'Float',
|
|
119
119
|
:'sock_connect_timeout' => :'Float',
|
|
@@ -15,48 +15,48 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepository
|
|
18
|
-
# A
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# A reference to an associated signing service.
|
|
19
|
+
attr_accessor :manifest_signing_service
|
|
20
20
|
|
|
21
21
|
# An optional description.
|
|
22
22
|
attr_accessor :description
|
|
23
23
|
|
|
24
|
-
# A
|
|
25
|
-
attr_accessor :
|
|
24
|
+
# A unique name for this repository.
|
|
25
|
+
attr_accessor :name
|
|
26
|
+
|
|
27
|
+
attr_accessor :pulp_labels
|
|
26
28
|
|
|
27
29
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
30
|
attr_accessor :retain_repo_versions
|
|
29
31
|
|
|
30
|
-
attr_accessor :pulp_labels
|
|
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
|
-
:'description' => :'description',
|
|
37
35
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
38
|
-
:'
|
|
39
|
-
:'
|
|
36
|
+
:'description' => :'description',
|
|
37
|
+
:'name' => :'name',
|
|
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
|
-
:'name' => :'String',
|
|
47
|
-
:'description' => :'String',
|
|
48
46
|
:'manifest_signing_service' => :'String',
|
|
49
|
-
:'
|
|
50
|
-
:'
|
|
47
|
+
:'description' => :'String',
|
|
48
|
+
:'name' => :'String',
|
|
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',
|
|
58
57
|
:'manifest_signing_service',
|
|
59
|
-
:'
|
|
58
|
+
:'description',
|
|
59
|
+
:'retain_repo_versions'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -75,20 +75,16 @@ 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?(:'description')
|
|
83
83
|
self.description = attributes[:'description']
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
-
if attributes.key?(:'
|
|
87
|
-
self.
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
if attributes.key?(:'retain_repo_versions')
|
|
91
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
86
|
+
if attributes.key?(:'name')
|
|
87
|
+
self.name = attributes[:'name']
|
|
92
88
|
end
|
|
93
89
|
|
|
94
90
|
if attributes.key?(:'pulp_labels')
|
|
@@ -96,12 +92,20 @@ module PulpContainerClient
|
|
|
96
92
|
self.pulp_labels = value
|
|
97
93
|
end
|
|
98
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?
|
|
106
110
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
107
111
|
end
|
|
@@ -110,10 +114,6 @@ module PulpContainerClient
|
|
|
110
114
|
invalid_properties.push('invalid value for "name", the character length must be great 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
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
118
118
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
119
119
|
end
|
|
@@ -124,13 +124,23 @@ module PulpContainerClient
|
|
|
124
124
|
# Check to see if the all the properties in the model are valid
|
|
125
125
|
# @return true if the model is valid
|
|
126
126
|
def valid?
|
|
127
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
127
128
|
return false if @name.nil?
|
|
128
129
|
return false if @name.to_s.length < 1
|
|
129
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
130
130
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
131
131
|
true
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
+
# Custom attribute writer method with validation
|
|
135
|
+
# @param [Object] description Value to be assigned
|
|
136
|
+
def description=(description)
|
|
137
|
+
if !description.nil? && description.to_s.length < 1
|
|
138
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
@description = description
|
|
142
|
+
end
|
|
143
|
+
|
|
134
144
|
# Custom attribute writer method with validation
|
|
135
145
|
# @param [Object] name Value to be assigned
|
|
136
146
|
def name=(name)
|
|
@@ -145,16 +155,6 @@ module PulpContainerClient
|
|
|
145
155
|
@name = name
|
|
146
156
|
end
|
|
147
157
|
|
|
148
|
-
# Custom attribute writer method with validation
|
|
149
|
-
# @param [Object] description Value to be assigned
|
|
150
|
-
def description=(description)
|
|
151
|
-
if !description.nil? && description.to_s.length < 1
|
|
152
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
@description = description
|
|
156
|
-
end
|
|
157
|
-
|
|
158
158
|
# Custom attribute writer method with validation
|
|
159
159
|
# @param [Object] retain_repo_versions Value to be assigned
|
|
160
160
|
def retain_repo_versions=(retain_repo_versions)
|
|
@@ -170,11 +170,11 @@ module PulpContainerClient
|
|
|
170
170
|
def ==(o)
|
|
171
171
|
return true if self.equal?(o)
|
|
172
172
|
self.class == o.class &&
|
|
173
|
-
name == o.name &&
|
|
174
|
-
description == o.description &&
|
|
175
173
|
manifest_signing_service == o.manifest_signing_service &&
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
description == o.description &&
|
|
175
|
+
name == o.name &&
|
|
176
|
+
pulp_labels == o.pulp_labels &&
|
|
177
|
+
retain_repo_versions == o.retain_repo_versions
|
|
178
178
|
end
|
|
179
179
|
|
|
180
180
|
# @see the `==` method
|
|
@@ -186,7 +186,7 @@ module PulpContainerClient
|
|
|
186
186
|
# Calculates hash code according to all attributes.
|
|
187
187
|
# @return [Integer] Hash code
|
|
188
188
|
def hash
|
|
189
|
-
[
|
|
189
|
+
[manifest_signing_service, description, name, pulp_labels, retain_repo_versions].hash
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
# Builds the object from hash
|