pulp_container_client 2.19.7 → 2.19.8
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 +7 -7
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPullThroughDistribution.md +7 -7
- data/docs/ContainerContainerPullThroughDistributionResponse.md +9 -9
- data/docs/ContainerContainerPullThroughRemote.md +1 -1
- data/docs/ContainerContainerPullThroughRemoteResponse.md +1 -1
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +1 -1
- data/docs/ContainerManifestResponse.md +2 -2
- 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 +7 -7
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPullThroughRemote.md +1 -1
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- 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 +29 -29
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +38 -38
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +29 -29
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +38 -38
- 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 +38 -38
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +46 -46
- 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/container_manifest_response.rb +2 -2
- data/lib/pulp_container_client/models/oci_build_image.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +29 -29
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +29 -29
- 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 +38 -38
- 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 +8 -8
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- 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 +5 -5
- 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,30 +15,30 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class ContainerContainerDistributionResponse
|
|
18
|
+
attr_accessor :pulp_href
|
|
19
|
+
|
|
18
20
|
# 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.
|
|
19
21
|
attr_accessor :pulp_last_updated
|
|
20
22
|
|
|
21
|
-
attr_accessor :pulp_labels
|
|
22
|
-
|
|
23
23
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
24
24
|
attr_accessor :content_guard
|
|
25
25
|
|
|
26
|
-
attr_accessor :pulp_href
|
|
27
|
-
|
|
28
26
|
# Timestamp of creation.
|
|
29
27
|
attr_accessor :pulp_created
|
|
30
28
|
|
|
31
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
32
|
-
attr_accessor :repository
|
|
33
|
-
|
|
34
29
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
35
30
|
attr_accessor :base_path
|
|
36
31
|
|
|
32
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
33
|
+
attr_accessor :name
|
|
34
|
+
|
|
37
35
|
# Whether this distribution should be shown in the content app.
|
|
38
36
|
attr_accessor :hidden
|
|
39
37
|
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
attr_accessor :pulp_labels
|
|
39
|
+
|
|
40
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
41
|
+
attr_accessor :repository
|
|
42
42
|
|
|
43
43
|
# RepositoryVersion to be served
|
|
44
44
|
attr_accessor :repository_version
|
|
@@ -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
|
+
:'pulp_href' => :'pulp_href',
|
|
64
65
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
65
|
-
:'pulp_labels' => :'pulp_labels',
|
|
66
66
|
:'content_guard' => :'content_guard',
|
|
67
|
-
:'pulp_href' => :'pulp_href',
|
|
68
67
|
:'pulp_created' => :'pulp_created',
|
|
69
|
-
:'repository' => :'repository',
|
|
70
68
|
:'base_path' => :'base_path',
|
|
71
|
-
:'hidden' => :'hidden',
|
|
72
69
|
:'name' => :'name',
|
|
70
|
+
:'hidden' => :'hidden',
|
|
71
|
+
:'pulp_labels' => :'pulp_labels',
|
|
72
|
+
:'repository' => :'repository',
|
|
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
|
+
:'pulp_href' => :'String',
|
|
85
86
|
:'pulp_last_updated' => :'DateTime',
|
|
86
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
87
87
|
:'content_guard' => :'String',
|
|
88
|
-
:'pulp_href' => :'String',
|
|
89
88
|
:'pulp_created' => :'DateTime',
|
|
90
|
-
:'repository' => :'String',
|
|
91
89
|
:'base_path' => :'String',
|
|
92
|
-
:'hidden' => :'Boolean',
|
|
93
90
|
:'name' => :'String',
|
|
91
|
+
:'hidden' => :'Boolean',
|
|
92
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
93
|
+
:'repository' => :'String',
|
|
94
94
|
:'repository_version' => :'String',
|
|
95
95
|
:'registry_path' => :'String',
|
|
96
96
|
:'remote' => :'String',
|
|
@@ -124,44 +124,44 @@ module PulpContainerClient
|
|
|
124
124
|
h[k.to_sym] = v
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
if attributes.key?(:'
|
|
128
|
-
self.
|
|
127
|
+
if attributes.key?(:'pulp_href')
|
|
128
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
|
|
133
|
-
self.pulp_labels = value
|
|
134
|
-
end
|
|
131
|
+
if attributes.key?(:'pulp_last_updated')
|
|
132
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
135
133
|
end
|
|
136
134
|
|
|
137
135
|
if attributes.key?(:'content_guard')
|
|
138
136
|
self.content_guard = attributes[:'content_guard']
|
|
139
137
|
end
|
|
140
138
|
|
|
141
|
-
if attributes.key?(:'pulp_href')
|
|
142
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
143
|
-
end
|
|
144
|
-
|
|
145
139
|
if attributes.key?(:'pulp_created')
|
|
146
140
|
self.pulp_created = attributes[:'pulp_created']
|
|
147
141
|
end
|
|
148
142
|
|
|
149
|
-
if attributes.key?(:'repository')
|
|
150
|
-
self.repository = attributes[:'repository']
|
|
151
|
-
end
|
|
152
|
-
|
|
153
143
|
if attributes.key?(:'base_path')
|
|
154
144
|
self.base_path = attributes[:'base_path']
|
|
155
145
|
end
|
|
156
146
|
|
|
147
|
+
if attributes.key?(:'name')
|
|
148
|
+
self.name = attributes[:'name']
|
|
149
|
+
end
|
|
150
|
+
|
|
157
151
|
if attributes.key?(:'hidden')
|
|
158
152
|
self.hidden = attributes[:'hidden']
|
|
159
153
|
else
|
|
160
154
|
self.hidden = false
|
|
161
155
|
end
|
|
162
156
|
|
|
163
|
-
if attributes.key?(:'
|
|
164
|
-
|
|
157
|
+
if attributes.key?(:'pulp_labels')
|
|
158
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
159
|
+
self.pulp_labels = value
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
if attributes.key?(:'repository')
|
|
164
|
+
self.repository = attributes[:'repository']
|
|
165
165
|
end
|
|
166
166
|
|
|
167
167
|
if attributes.key?(:'repository_version')
|
|
@@ -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
|
+
pulp_href == o.pulp_href &&
|
|
220
221
|
pulp_last_updated == o.pulp_last_updated &&
|
|
221
|
-
pulp_labels == o.pulp_labels &&
|
|
222
222
|
content_guard == o.content_guard &&
|
|
223
|
-
pulp_href == o.pulp_href &&
|
|
224
223
|
pulp_created == o.pulp_created &&
|
|
225
|
-
repository == o.repository &&
|
|
226
224
|
base_path == o.base_path &&
|
|
227
|
-
hidden == o.hidden &&
|
|
228
225
|
name == o.name &&
|
|
226
|
+
hidden == o.hidden &&
|
|
227
|
+
pulp_labels == o.pulp_labels &&
|
|
228
|
+
repository == o.repository &&
|
|
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
|
+
[pulp_href, pulp_last_updated, content_guard, pulp_created, base_path, name, hidden, pulp_labels, repository, repository_version, registry_path, remote, namespace, private, description].hash
|
|
247
247
|
end
|
|
248
248
|
|
|
249
249
|
# Builds the object from hash
|
|
@@ -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 ContainerContainerPullThroughDistribution
|
|
18
|
-
attr_accessor :pulp_labels
|
|
19
|
-
|
|
20
18
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
21
19
|
attr_accessor :content_guard
|
|
22
20
|
|
|
23
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
24
|
-
attr_accessor :repository
|
|
25
|
-
|
|
26
21
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
27
22
|
attr_accessor :base_path
|
|
28
23
|
|
|
24
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
25
|
+
attr_accessor :name
|
|
26
|
+
|
|
29
27
|
# Whether this distribution should be shown in the content app.
|
|
30
28
|
attr_accessor :hidden
|
|
31
29
|
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
attr_accessor :pulp_labels
|
|
31
|
+
|
|
32
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
33
|
+
attr_accessor :repository
|
|
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
50
|
:'content_guard' => :'content_guard',
|
|
52
|
-
:'repository' => :'repository',
|
|
53
51
|
:'base_path' => :'base_path',
|
|
54
|
-
:'hidden' => :'hidden',
|
|
55
52
|
:'name' => :'name',
|
|
53
|
+
:'hidden' => :'hidden',
|
|
54
|
+
:'pulp_labels' => :'pulp_labels',
|
|
55
|
+
:'repository' => :'repository',
|
|
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
66
|
:'content_guard' => :'String',
|
|
68
|
-
:'repository' => :'String',
|
|
69
67
|
:'base_path' => :'String',
|
|
70
|
-
:'hidden' => :'Boolean',
|
|
71
68
|
:'name' => :'String',
|
|
69
|
+
:'hidden' => :'Boolean',
|
|
70
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
71
|
+
:'repository' => :'String',
|
|
72
72
|
:'remote' => :'String',
|
|
73
73
|
:'distributions' => :'Array<String>',
|
|
74
74
|
:'private' => :'Boolean',
|
|
@@ -99,32 +99,32 @@ 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
102
|
if attributes.key?(:'content_guard')
|
|
109
103
|
self.content_guard = attributes[:'content_guard']
|
|
110
104
|
end
|
|
111
105
|
|
|
112
|
-
if attributes.key?(:'repository')
|
|
113
|
-
self.repository = attributes[:'repository']
|
|
114
|
-
end
|
|
115
|
-
|
|
116
106
|
if attributes.key?(:'base_path')
|
|
117
107
|
self.base_path = attributes[:'base_path']
|
|
118
108
|
end
|
|
119
109
|
|
|
110
|
+
if attributes.key?(:'name')
|
|
111
|
+
self.name = attributes[:'name']
|
|
112
|
+
end
|
|
113
|
+
|
|
120
114
|
if attributes.key?(:'hidden')
|
|
121
115
|
self.hidden = attributes[:'hidden']
|
|
122
116
|
else
|
|
123
117
|
self.hidden = false
|
|
124
118
|
end
|
|
125
119
|
|
|
126
|
-
if attributes.key?(:'
|
|
127
|
-
|
|
120
|
+
if attributes.key?(:'pulp_labels')
|
|
121
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
122
|
+
self.pulp_labels = value
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'repository')
|
|
127
|
+
self.repository = attributes[:'repository']
|
|
128
128
|
end
|
|
129
129
|
|
|
130
130
|
if attributes.key?(:'remote')
|
|
@@ -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
|
-
pulp_labels == o.pulp_labels &&
|
|
236
235
|
content_guard == o.content_guard &&
|
|
237
|
-
repository == o.repository &&
|
|
238
236
|
base_path == o.base_path &&
|
|
239
|
-
hidden == o.hidden &&
|
|
240
237
|
name == o.name &&
|
|
238
|
+
hidden == o.hidden &&
|
|
239
|
+
pulp_labels == o.pulp_labels &&
|
|
240
|
+
repository == o.repository &&
|
|
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
|
-
[
|
|
256
|
+
[content_guard, base_path, name, hidden, pulp_labels, repository, 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,30 +15,30 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
17
17
|
class ContainerContainerPullThroughDistributionResponse
|
|
18
|
+
attr_accessor :pulp_href
|
|
19
|
+
|
|
18
20
|
# 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.
|
|
19
21
|
attr_accessor :pulp_last_updated
|
|
20
22
|
|
|
21
|
-
attr_accessor :pulp_labels
|
|
22
|
-
|
|
23
23
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
24
24
|
attr_accessor :content_guard
|
|
25
25
|
|
|
26
|
-
attr_accessor :pulp_href
|
|
27
|
-
|
|
28
26
|
# Timestamp of creation.
|
|
29
27
|
attr_accessor :pulp_created
|
|
30
28
|
|
|
31
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
32
|
-
attr_accessor :repository
|
|
33
|
-
|
|
34
29
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
35
30
|
attr_accessor :base_path
|
|
36
31
|
|
|
32
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
33
|
+
attr_accessor :name
|
|
34
|
+
|
|
37
35
|
# Whether this distribution should be shown in the content app.
|
|
38
36
|
attr_accessor :hidden
|
|
39
37
|
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
attr_accessor :pulp_labels
|
|
39
|
+
|
|
40
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
41
|
+
attr_accessor :repository
|
|
42
42
|
|
|
43
43
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
44
44
|
attr_accessor :remote
|
|
@@ -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
|
+
:'pulp_href' => :'pulp_href',
|
|
61
62
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
62
|
-
:'pulp_labels' => :'pulp_labels',
|
|
63
63
|
:'content_guard' => :'content_guard',
|
|
64
|
-
:'pulp_href' => :'pulp_href',
|
|
65
64
|
:'pulp_created' => :'pulp_created',
|
|
66
|
-
:'repository' => :'repository',
|
|
67
65
|
:'base_path' => :'base_path',
|
|
68
|
-
:'hidden' => :'hidden',
|
|
69
66
|
:'name' => :'name',
|
|
67
|
+
:'hidden' => :'hidden',
|
|
68
|
+
:'pulp_labels' => :'pulp_labels',
|
|
69
|
+
:'repository' => :'repository',
|
|
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
|
+
:'pulp_href' => :'String',
|
|
81
82
|
:'pulp_last_updated' => :'DateTime',
|
|
82
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
83
83
|
:'content_guard' => :'String',
|
|
84
|
-
:'pulp_href' => :'String',
|
|
85
84
|
:'pulp_created' => :'DateTime',
|
|
86
|
-
:'repository' => :'String',
|
|
87
85
|
:'base_path' => :'String',
|
|
88
|
-
:'hidden' => :'Boolean',
|
|
89
86
|
:'name' => :'String',
|
|
87
|
+
:'hidden' => :'Boolean',
|
|
88
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
89
|
+
:'repository' => :'String',
|
|
90
90
|
:'remote' => :'String',
|
|
91
91
|
:'distributions' => :'Array<String>',
|
|
92
92
|
:'namespace' => :'String',
|
|
@@ -118,44 +118,44 @@ module PulpContainerClient
|
|
|
118
118
|
h[k.to_sym] = v
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
if attributes.key?(:'
|
|
122
|
-
self.
|
|
121
|
+
if attributes.key?(:'pulp_href')
|
|
122
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
-
if attributes.key?(:'
|
|
126
|
-
|
|
127
|
-
self.pulp_labels = value
|
|
128
|
-
end
|
|
125
|
+
if attributes.key?(:'pulp_last_updated')
|
|
126
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
129
127
|
end
|
|
130
128
|
|
|
131
129
|
if attributes.key?(:'content_guard')
|
|
132
130
|
self.content_guard = attributes[:'content_guard']
|
|
133
131
|
end
|
|
134
132
|
|
|
135
|
-
if attributes.key?(:'pulp_href')
|
|
136
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
137
|
-
end
|
|
138
|
-
|
|
139
133
|
if attributes.key?(:'pulp_created')
|
|
140
134
|
self.pulp_created = attributes[:'pulp_created']
|
|
141
135
|
end
|
|
142
136
|
|
|
143
|
-
if attributes.key?(:'repository')
|
|
144
|
-
self.repository = attributes[:'repository']
|
|
145
|
-
end
|
|
146
|
-
|
|
147
137
|
if attributes.key?(:'base_path')
|
|
148
138
|
self.base_path = attributes[:'base_path']
|
|
149
139
|
end
|
|
150
140
|
|
|
141
|
+
if attributes.key?(:'name')
|
|
142
|
+
self.name = attributes[:'name']
|
|
143
|
+
end
|
|
144
|
+
|
|
151
145
|
if attributes.key?(:'hidden')
|
|
152
146
|
self.hidden = attributes[:'hidden']
|
|
153
147
|
else
|
|
154
148
|
self.hidden = false
|
|
155
149
|
end
|
|
156
150
|
|
|
157
|
-
if attributes.key?(:'
|
|
158
|
-
|
|
151
|
+
if attributes.key?(:'pulp_labels')
|
|
152
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
153
|
+
self.pulp_labels = value
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'repository')
|
|
158
|
+
self.repository = attributes[:'repository']
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
if attributes.key?(:'remote')
|
|
@@ -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
|
+
pulp_href == o.pulp_href &&
|
|
217
218
|
pulp_last_updated == o.pulp_last_updated &&
|
|
218
|
-
pulp_labels == o.pulp_labels &&
|
|
219
219
|
content_guard == o.content_guard &&
|
|
220
|
-
pulp_href == o.pulp_href &&
|
|
221
220
|
pulp_created == o.pulp_created &&
|
|
222
|
-
repository == o.repository &&
|
|
223
221
|
base_path == o.base_path &&
|
|
224
|
-
hidden == o.hidden &&
|
|
225
222
|
name == o.name &&
|
|
223
|
+
hidden == o.hidden &&
|
|
224
|
+
pulp_labels == o.pulp_labels &&
|
|
225
|
+
repository == o.repository &&
|
|
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
|
+
[pulp_href, pulp_last_updated, content_guard, pulp_created, base_path, name, hidden, pulp_labels, repository, 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,39 +15,39 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepository
|
|
18
|
+
# A unique name for this repository.
|
|
19
|
+
attr_accessor :name
|
|
20
|
+
|
|
18
21
|
attr_accessor :pulp_labels
|
|
19
22
|
|
|
20
23
|
# An optional description.
|
|
21
24
|
attr_accessor :description
|
|
22
25
|
|
|
23
|
-
#
|
|
24
|
-
attr_accessor :
|
|
26
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
27
|
+
attr_accessor :retain_repo_versions
|
|
25
28
|
|
|
26
29
|
# A reference to an associated signing service.
|
|
27
30
|
attr_accessor :manifest_signing_service
|
|
28
31
|
|
|
29
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
|
30
|
-
attr_accessor :retain_repo_versions
|
|
31
|
-
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
|
+
:'name' => :'name',
|
|
35
36
|
:'pulp_labels' => :'pulp_labels',
|
|
36
37
|
:'description' => :'description',
|
|
37
|
-
:'
|
|
38
|
-
:'manifest_signing_service' => :'manifest_signing_service'
|
|
39
|
-
:'retain_repo_versions' => :'retain_repo_versions'
|
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
39
|
+
:'manifest_signing_service' => :'manifest_signing_service'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
# Attribute type mapping.
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
|
+
:'name' => :'String',
|
|
46
47
|
:'pulp_labels' => :'Hash<String, String>',
|
|
47
48
|
:'description' => :'String',
|
|
48
|
-
:'
|
|
49
|
-
:'manifest_signing_service' => :'String'
|
|
50
|
-
:'retain_repo_versions' => :'Integer'
|
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
|
50
|
+
:'manifest_signing_service' => :'String'
|
|
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
|
:'description',
|
|
58
|
-
:'
|
|
59
|
-
:'
|
|
58
|
+
:'retain_repo_versions',
|
|
59
|
+
:'manifest_signing_service'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -75,6 +75,10 @@ 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
|
+
|
|
78
82
|
if attributes.key?(:'pulp_labels')
|
|
79
83
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
80
84
|
self.pulp_labels = value
|
|
@@ -85,27 +89,19 @@ module PulpContainerClient
|
|
|
85
89
|
self.description = attributes[:'description']
|
|
86
90
|
end
|
|
87
91
|
|
|
88
|
-
if attributes.key?(:'
|
|
89
|
-
self.
|
|
92
|
+
if attributes.key?(:'retain_repo_versions')
|
|
93
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
90
94
|
end
|
|
91
95
|
|
|
92
96
|
if attributes.key?(:'manifest_signing_service')
|
|
93
97
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
94
98
|
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
|
-
|
|
109
105
|
if @name.nil?
|
|
110
106
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
111
107
|
end
|
|
@@ -114,6 +110,10 @@ module PulpContainerClient
|
|
|
114
110
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
115
111
|
end
|
|
116
112
|
|
|
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,23 +124,13 @@ 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
|
|
128
127
|
return false if @name.nil?
|
|
129
128
|
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
|
-
|
|
144
134
|
# Custom attribute writer method with validation
|
|
145
135
|
# @param [Object] name Value to be assigned
|
|
146
136
|
def name=(name)
|
|
@@ -155,6 +145,16 @@ module PulpContainerClient
|
|
|
155
145
|
@name = name
|
|
156
146
|
end
|
|
157
147
|
|
|
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 &&
|
|
173
174
|
pulp_labels == o.pulp_labels &&
|
|
174
175
|
description == o.description &&
|
|
175
|
-
|
|
176
|
-
manifest_signing_service == o.manifest_signing_service
|
|
177
|
-
retain_repo_versions == o.retain_repo_versions
|
|
176
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
177
|
+
manifest_signing_service == o.manifest_signing_service
|
|
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
|
-
[pulp_labels, description,
|
|
189
|
+
[name, pulp_labels, description, retain_repo_versions, manifest_signing_service].hash
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
# Builds the object from hash
|