pulp_container_client 2.15.6 → 2.16.0
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 +27 -36
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
- data/docs/ContentBlobsApi.md +1 -3
- data/docs/ContentManifestsApi.md +1 -3
- data/docs/ContentSignaturesApi.md +1 -11
- data/docs/ContentTagsApi.md +1 -3
- data/docs/DistributionsContainerApi.md +10 -136
- data/docs/IndexDynamicApi.md +50 -0
- data/docs/IndexStaticApi.md +50 -0
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/PulpContainerNamespacesApi.md +9 -23
- data/docs/RemotesContainerApi.md +9 -135
- data/docs/RepositoriesContainerApi.md +11 -137
- data/docs/RepositoriesContainerPushApi.md +10 -24
- data/docs/RepositoriesContainerPushVersionsApi.md +1 -3
- data/docs/RepositoriesContainerVersionsApi.md +1 -3
- data/docs/TokenApi.md +1 -1
- data/lib/pulp_container_client/api/content_blobs_api.rb +0 -3
- data/lib/pulp_container_client/api/content_manifests_api.rb +0 -3
- data/lib/pulp_container_client/api/content_signatures_api.rb +0 -15
- data/lib/pulp_container_client/api/content_tags_api.rb +0 -3
- data/lib/pulp_container_client/api/distributions_container_api.rb +0 -163
- data/lib/pulp_container_client/api/index_dynamic_api.rb +74 -0
- data/lib/pulp_container_client/api/index_static_api.rb +74 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +0 -23
- data/lib/pulp_container_client/api/remotes_container_api.rb +0 -163
- data/lib/pulp_container_client/api/repositories_container_api.rb +2 -165
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +0 -23
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +0 -3
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +0 -3
- data/lib/pulp_container_client/configuration.rb +2 -2
- data/lib/pulp_container_client/models/container_container_distribution.rb +20 -20
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +29 -29
- data/lib/pulp_container_client/models/container_container_push_repository.rb +26 -26
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +49 -49
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +26 -26
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +2 -4
- data/spec/api/content_blobs_api_spec.rb +0 -1
- data/spec/api/content_manifests_api_spec.rb +0 -1
- data/spec/api/content_signatures_api_spec.rb +0 -5
- data/spec/api/content_tags_api_spec.rb +0 -1
- data/spec/api/distributions_container_api_spec.rb +0 -35
- data/spec/{models/set_label_spec.rb → api/index_dynamic_api_spec.rb} +11 -13
- data/spec/{models/unset_label_spec.rb → api/index_static_api_spec.rb} +12 -8
- data/spec/api/pulp_container_namespaces_api_spec.rb +0 -9
- data/spec/api/remotes_container_api_spec.rb +0 -35
- data/spec/api/repositories_container_api_spec.rb +1 -36
- data/spec/api/repositories_container_push_api_spec.rb +0 -9
- data/spec/api/repositories_container_push_versions_api_spec.rb +0 -1
- data/spec/api/repositories_container_versions_api_spec.rb +0 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +4 -4
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +57 -65
- data/docs/SetLabel.md +0 -19
- data/docs/SetLabelResponse.md +0 -19
- data/docs/UnsetLabel.md +0 -17
- data/docs/UnsetLabelResponse.md +0 -19
- data/lib/pulp_container_client/models/set_label.rb +0 -252
- data/lib/pulp_container_client/models/set_label_response.rb +0 -243
- data/lib/pulp_container_client/models/unset_label.rb +0 -242
- data/lib/pulp_container_client/models/unset_label_response.rb +0 -242
- data/spec/models/set_label_response_spec.rb +0 -47
- data/spec/models/unset_label_response_spec.rb +0 -47
@@ -15,24 +15,24 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
20
20
|
|
21
21
|
# Whether this distribution should be shown in the content app.
|
22
22
|
attr_accessor :hidden
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :pulp_labels
|
25
25
|
|
26
26
|
# The latest RepositoryVersion for this Repository will be served.
|
27
27
|
attr_accessor :repository
|
28
28
|
|
29
|
-
attr_accessor :
|
29
|
+
attr_accessor :pulp_href
|
30
30
|
|
31
31
|
# An optional content-guard. If none is specified, a default one will be used.
|
32
32
|
attr_accessor :content_guard
|
33
33
|
|
34
|
-
#
|
35
|
-
attr_accessor :
|
34
|
+
# 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
|
+
attr_accessor :base_path
|
36
36
|
|
37
37
|
# A unique name. Ex, `rawhide` and `stable`.
|
38
38
|
attr_accessor :name
|
@@ -55,13 +55,13 @@ module PulpContainerClient
|
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
56
|
def self.attribute_map
|
57
57
|
{
|
58
|
-
:'
|
58
|
+
:'pulp_created' => :'pulp_created',
|
59
59
|
:'hidden' => :'hidden',
|
60
|
-
:'pulp_href' => :'pulp_href',
|
61
|
-
:'repository' => :'repository',
|
62
60
|
:'pulp_labels' => :'pulp_labels',
|
61
|
+
:'repository' => :'repository',
|
62
|
+
:'pulp_href' => :'pulp_href',
|
63
63
|
:'content_guard' => :'content_guard',
|
64
|
-
:'
|
64
|
+
:'base_path' => :'base_path',
|
65
65
|
:'name' => :'name',
|
66
66
|
:'repository_version' => :'repository_version',
|
67
67
|
:'registry_path' => :'registry_path',
|
@@ -74,13 +74,13 @@ module PulpContainerClient
|
|
74
74
|
# Attribute type mapping.
|
75
75
|
def self.openapi_types
|
76
76
|
{
|
77
|
-
:'
|
77
|
+
:'pulp_created' => :'DateTime',
|
78
78
|
:'hidden' => :'Boolean',
|
79
|
-
:'pulp_href' => :'String',
|
80
|
-
:'repository' => :'String',
|
81
79
|
:'pulp_labels' => :'Hash<String, String>',
|
80
|
+
:'repository' => :'String',
|
81
|
+
:'pulp_href' => :'String',
|
82
82
|
:'content_guard' => :'String',
|
83
|
-
:'
|
83
|
+
:'base_path' => :'String',
|
84
84
|
:'name' => :'String',
|
85
85
|
:'repository_version' => :'String',
|
86
86
|
:'registry_path' => :'String',
|
@@ -114,8 +114,8 @@ module PulpContainerClient
|
|
114
114
|
h[k.to_sym] = v
|
115
115
|
}
|
116
116
|
|
117
|
-
if attributes.key?(:'
|
118
|
-
self.
|
117
|
+
if attributes.key?(:'pulp_created')
|
118
|
+
self.pulp_created = attributes[:'pulp_created']
|
119
119
|
end
|
120
120
|
|
121
121
|
if attributes.key?(:'hidden')
|
@@ -124,26 +124,26 @@ module PulpContainerClient
|
|
124
124
|
self.hidden = false
|
125
125
|
end
|
126
126
|
|
127
|
-
if attributes.key?(:'
|
128
|
-
|
127
|
+
if attributes.key?(:'pulp_labels')
|
128
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
129
|
+
self.pulp_labels = value
|
130
|
+
end
|
129
131
|
end
|
130
132
|
|
131
133
|
if attributes.key?(:'repository')
|
132
134
|
self.repository = attributes[:'repository']
|
133
135
|
end
|
134
136
|
|
135
|
-
if attributes.key?(:'
|
136
|
-
|
137
|
-
self.pulp_labels = value
|
138
|
-
end
|
137
|
+
if attributes.key?(:'pulp_href')
|
138
|
+
self.pulp_href = attributes[:'pulp_href']
|
139
139
|
end
|
140
140
|
|
141
141
|
if attributes.key?(:'content_guard')
|
142
142
|
self.content_guard = attributes[:'content_guard']
|
143
143
|
end
|
144
144
|
|
145
|
-
if attributes.key?(:'
|
146
|
-
self.
|
145
|
+
if attributes.key?(:'base_path')
|
146
|
+
self.base_path = attributes[:'base_path']
|
147
147
|
end
|
148
148
|
|
149
149
|
if attributes.key?(:'name')
|
@@ -199,13 +199,13 @@ module PulpContainerClient
|
|
199
199
|
def ==(o)
|
200
200
|
return true if self.equal?(o)
|
201
201
|
self.class == o.class &&
|
202
|
-
|
202
|
+
pulp_created == o.pulp_created &&
|
203
203
|
hidden == o.hidden &&
|
204
|
-
pulp_href == o.pulp_href &&
|
205
|
-
repository == o.repository &&
|
206
204
|
pulp_labels == o.pulp_labels &&
|
205
|
+
repository == o.repository &&
|
206
|
+
pulp_href == o.pulp_href &&
|
207
207
|
content_guard == o.content_guard &&
|
208
|
-
|
208
|
+
base_path == o.base_path &&
|
209
209
|
name == o.name &&
|
210
210
|
repository_version == o.repository_version &&
|
211
211
|
registry_path == o.registry_path &&
|
@@ -223,7 +223,7 @@ module PulpContainerClient
|
|
223
223
|
# Calculates hash code according to all attributes.
|
224
224
|
# @return [Integer] Hash code
|
225
225
|
def hash
|
226
|
-
[
|
226
|
+
[pulp_created, hidden, pulp_labels, repository, pulp_href, content_guard, base_path, name, repository_version, registry_path, namespace, private, description].hash
|
227
227
|
end
|
228
228
|
|
229
229
|
# Builds the object from hash
|
@@ -15,48 +15,48 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
|
+
# A reference to an associated signing service.
|
19
|
+
attr_accessor :manifest_signing_service
|
20
|
+
|
21
|
+
attr_accessor :pulp_labels
|
22
|
+
|
18
23
|
# Retain X versions of the repository. Default is null which retains all versions.
|
19
24
|
attr_accessor :retain_repo_versions
|
20
25
|
|
21
26
|
# An optional description.
|
22
27
|
attr_accessor :description
|
23
28
|
|
24
|
-
attr_accessor :pulp_labels
|
25
|
-
|
26
29
|
# A unique name for this repository.
|
27
30
|
attr_accessor :name
|
28
31
|
|
29
|
-
# A reference to an associated signing service.
|
30
|
-
attr_accessor :manifest_signing_service
|
31
|
-
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
35
37
|
:'retain_repo_versions' => :'retain_repo_versions',
|
36
38
|
:'description' => :'description',
|
37
|
-
:'
|
38
|
-
:'name' => :'name',
|
39
|
-
:'manifest_signing_service' => :'manifest_signing_service'
|
39
|
+
:'name' => :'name'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
+
:'manifest_signing_service' => :'String',
|
47
|
+
:'pulp_labels' => :'Hash<String, String>',
|
46
48
|
:'retain_repo_versions' => :'Integer',
|
47
49
|
:'description' => :'String',
|
48
|
-
:'
|
49
|
-
:'name' => :'String',
|
50
|
-
:'manifest_signing_service' => :'String'
|
50
|
+
:'name' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
+
:'manifest_signing_service',
|
57
58
|
:'retain_repo_versions',
|
58
59
|
:'description',
|
59
|
-
:'manifest_signing_service'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,12 +75,8 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
80
|
-
end
|
81
|
-
|
82
|
-
if attributes.key?(:'description')
|
83
|
-
self.description = attributes[:'description']
|
78
|
+
if attributes.key?(:'manifest_signing_service')
|
79
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
84
80
|
end
|
85
81
|
|
86
82
|
if attributes.key?(:'pulp_labels')
|
@@ -89,12 +85,16 @@ module PulpContainerClient
|
|
89
85
|
end
|
90
86
|
end
|
91
87
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
88
|
+
if attributes.key?(:'retain_repo_versions')
|
89
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
94
90
|
end
|
95
91
|
|
96
|
-
if attributes.key?(:'
|
97
|
-
self.
|
92
|
+
if attributes.key?(:'description')
|
93
|
+
self.description = attributes[:'description']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'name')
|
97
|
+
self.name = attributes[:'name']
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -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
|
+
manifest_signing_service == o.manifest_signing_service &&
|
174
|
+
pulp_labels == o.pulp_labels &&
|
173
175
|
retain_repo_versions == o.retain_repo_versions &&
|
174
176
|
description == o.description &&
|
175
|
-
|
176
|
-
name == o.name &&
|
177
|
-
manifest_signing_service == o.manifest_signing_service
|
177
|
+
name == o.name
|
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, pulp_labels, retain_repo_versions, description, name].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -15,7 +15,13 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
20
|
+
|
21
|
+
# A reference to an associated signing service.
|
22
|
+
attr_accessor :manifest_signing_service
|
23
|
+
|
24
|
+
attr_accessor :pulp_labels
|
19
25
|
|
20
26
|
# Retain X versions of the repository. Default is null which retains all versions.
|
21
27
|
attr_accessor :retain_repo_versions
|
@@ -23,57 +29,51 @@ module PulpContainerClient
|
|
23
29
|
# An optional description.
|
24
30
|
attr_accessor :description
|
25
31
|
|
26
|
-
attr_accessor :
|
27
|
-
|
28
|
-
# A unique name for this repository.
|
29
|
-
attr_accessor :name
|
32
|
+
attr_accessor :latest_version_href
|
30
33
|
|
31
34
|
attr_accessor :versions_href
|
32
35
|
|
33
|
-
|
34
|
-
attr_accessor :manifest_signing_service
|
35
|
-
|
36
|
-
# Timestamp of creation.
|
37
|
-
attr_accessor :pulp_created
|
36
|
+
attr_accessor :pulp_href
|
38
37
|
|
39
|
-
|
38
|
+
# A unique name for this repository.
|
39
|
+
attr_accessor :name
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'
|
44
|
+
:'pulp_created' => :'pulp_created',
|
45
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
46
|
+
:'pulp_labels' => :'pulp_labels',
|
45
47
|
:'retain_repo_versions' => :'retain_repo_versions',
|
46
48
|
:'description' => :'description',
|
47
|
-
:'
|
48
|
-
:'name' => :'name',
|
49
|
+
:'latest_version_href' => :'latest_version_href',
|
49
50
|
:'versions_href' => :'versions_href',
|
50
|
-
:'
|
51
|
-
:'
|
52
|
-
:'latest_version_href' => :'latest_version_href'
|
51
|
+
:'pulp_href' => :'pulp_href',
|
52
|
+
:'name' => :'name'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
-
:'
|
59
|
+
:'pulp_created' => :'DateTime',
|
60
|
+
:'manifest_signing_service' => :'String',
|
61
|
+
:'pulp_labels' => :'Hash<String, String>',
|
60
62
|
:'retain_repo_versions' => :'Integer',
|
61
63
|
:'description' => :'String',
|
62
|
-
:'
|
63
|
-
:'name' => :'String',
|
64
|
+
:'latest_version_href' => :'String',
|
64
65
|
:'versions_href' => :'String',
|
65
|
-
:'
|
66
|
-
:'
|
67
|
-
:'latest_version_href' => :'String'
|
66
|
+
:'pulp_href' => :'String',
|
67
|
+
:'name' => :'String'
|
68
68
|
}
|
69
69
|
end
|
70
70
|
|
71
71
|
# List of attributes with nullable: true
|
72
72
|
def self.openapi_nullable
|
73
73
|
Set.new([
|
74
|
+
:'manifest_signing_service',
|
74
75
|
:'retain_repo_versions',
|
75
76
|
:'description',
|
76
|
-
:'manifest_signing_service',
|
77
77
|
])
|
78
78
|
end
|
79
79
|
|
@@ -92,16 +92,12 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.key?(:'retain_repo_versions')
|
100
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
95
|
+
if attributes.key?(:'pulp_created')
|
96
|
+
self.pulp_created = attributes[:'pulp_created']
|
101
97
|
end
|
102
98
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
99
|
+
if attributes.key?(:'manifest_signing_service')
|
100
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
105
101
|
end
|
106
102
|
|
107
103
|
if attributes.key?(:'pulp_labels')
|
@@ -110,24 +106,28 @@ module PulpContainerClient
|
|
110
106
|
end
|
111
107
|
end
|
112
108
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
109
|
+
if attributes.key?(:'retain_repo_versions')
|
110
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
115
111
|
end
|
116
112
|
|
117
|
-
if attributes.key?(:'
|
118
|
-
self.
|
113
|
+
if attributes.key?(:'description')
|
114
|
+
self.description = attributes[:'description']
|
119
115
|
end
|
120
116
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
117
|
+
if attributes.key?(:'latest_version_href')
|
118
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
123
119
|
end
|
124
120
|
|
125
|
-
if attributes.key?(:'
|
126
|
-
self.
|
121
|
+
if attributes.key?(:'versions_href')
|
122
|
+
self.versions_href = attributes[:'versions_href']
|
127
123
|
end
|
128
124
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
self.
|
125
|
+
if attributes.key?(:'pulp_href')
|
126
|
+
self.pulp_href = attributes[:'pulp_href']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'name')
|
130
|
+
self.name = attributes[:'name']
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
@@ -169,15 +169,15 @@ module PulpContainerClient
|
|
169
169
|
def ==(o)
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
|
-
|
172
|
+
pulp_created == o.pulp_created &&
|
173
|
+
manifest_signing_service == o.manifest_signing_service &&
|
174
|
+
pulp_labels == o.pulp_labels &&
|
173
175
|
retain_repo_versions == o.retain_repo_versions &&
|
174
176
|
description == o.description &&
|
175
|
-
|
176
|
-
name == o.name &&
|
177
|
+
latest_version_href == o.latest_version_href &&
|
177
178
|
versions_href == o.versions_href &&
|
178
|
-
|
179
|
-
|
180
|
-
latest_version_href == o.latest_version_href
|
179
|
+
pulp_href == o.pulp_href &&
|
180
|
+
name == o.name
|
181
181
|
end
|
182
182
|
|
183
183
|
# @see the `==` method
|
@@ -189,7 +189,7 @@ module PulpContainerClient
|
|
189
189
|
# Calculates hash code according to all attributes.
|
190
190
|
# @return [Integer] Hash code
|
191
191
|
def hash
|
192
|
-
[
|
192
|
+
[pulp_created, manifest_signing_service, pulp_labels, retain_repo_versions, description, latest_version_href, versions_href, pulp_href, name].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
|
-
attr_accessor :base_path
|
20
|
-
|
21
18
|
# Whether this distribution should be shown in the content app.
|
22
19
|
attr_accessor :hidden
|
23
20
|
|
21
|
+
attr_accessor :pulp_labels
|
22
|
+
|
24
23
|
# The latest RepositoryVersion for this Repository will be served.
|
25
24
|
attr_accessor :repository
|
26
25
|
|
27
|
-
attr_accessor :pulp_labels
|
28
|
-
|
29
26
|
# An optional content-guard. If none is specified, a default one will be used.
|
30
27
|
attr_accessor :content_guard
|
31
28
|
|
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\")
|
30
|
+
attr_accessor :base_path
|
31
|
+
|
32
32
|
# A unique name. Ex, `rawhide` and `stable`.
|
33
33
|
attr_accessor :name
|
34
34
|
|
@@ -44,11 +44,11 @@ module PulpContainerClient
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
|
-
:'base_path' => :'base_path',
|
48
47
|
:'hidden' => :'hidden',
|
49
|
-
:'repository' => :'repository',
|
50
48
|
:'pulp_labels' => :'pulp_labels',
|
49
|
+
:'repository' => :'repository',
|
51
50
|
:'content_guard' => :'content_guard',
|
51
|
+
:'base_path' => :'base_path',
|
52
52
|
:'name' => :'name',
|
53
53
|
:'repository_version' => :'repository_version',
|
54
54
|
:'private' => :'private',
|
@@ -59,11 +59,11 @@ module PulpContainerClient
|
|
59
59
|
# Attribute type mapping.
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
|
-
:'base_path' => :'String',
|
63
62
|
:'hidden' => :'Boolean',
|
64
|
-
:'repository' => :'String',
|
65
63
|
:'pulp_labels' => :'Hash<String, String>',
|
64
|
+
:'repository' => :'String',
|
66
65
|
:'content_guard' => :'String',
|
66
|
+
:'base_path' => :'String',
|
67
67
|
:'name' => :'String',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
@@ -95,30 +95,30 @@ module PulpContainerClient
|
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
97
97
|
|
98
|
-
if attributes.key?(:'base_path')
|
99
|
-
self.base_path = attributes[:'base_path']
|
100
|
-
end
|
101
|
-
|
102
98
|
if attributes.key?(:'hidden')
|
103
99
|
self.hidden = attributes[:'hidden']
|
104
100
|
else
|
105
101
|
self.hidden = false
|
106
102
|
end
|
107
103
|
|
108
|
-
if attributes.key?(:'repository')
|
109
|
-
self.repository = attributes[:'repository']
|
110
|
-
end
|
111
|
-
|
112
104
|
if attributes.key?(:'pulp_labels')
|
113
105
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
114
106
|
self.pulp_labels = value
|
115
107
|
end
|
116
108
|
end
|
117
109
|
|
110
|
+
if attributes.key?(:'repository')
|
111
|
+
self.repository = attributes[:'repository']
|
112
|
+
end
|
113
|
+
|
118
114
|
if attributes.key?(:'content_guard')
|
119
115
|
self.content_guard = attributes[:'content_guard']
|
120
116
|
end
|
121
117
|
|
118
|
+
if attributes.key?(:'base_path')
|
119
|
+
self.base_path = attributes[:'base_path']
|
120
|
+
end
|
121
|
+
|
122
122
|
if attributes.key?(:'name')
|
123
123
|
self.name = attributes[:'name']
|
124
124
|
end
|
@@ -199,11 +199,11 @@ module PulpContainerClient
|
|
199
199
|
def ==(o)
|
200
200
|
return true if self.equal?(o)
|
201
201
|
self.class == o.class &&
|
202
|
-
base_path == o.base_path &&
|
203
202
|
hidden == o.hidden &&
|
204
|
-
repository == o.repository &&
|
205
203
|
pulp_labels == o.pulp_labels &&
|
204
|
+
repository == o.repository &&
|
206
205
|
content_guard == o.content_guard &&
|
206
|
+
base_path == o.base_path &&
|
207
207
|
name == o.name &&
|
208
208
|
repository_version == o.repository_version &&
|
209
209
|
private == o.private &&
|
@@ -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
|
+
[hidden, pulp_labels, repository, content_guard, base_path, name, repository_version, private, description].hash
|
223
223
|
end
|
224
224
|
|
225
225
|
# Builds the object from hash
|
@@ -15,48 +15,48 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
18
|
+
# A reference to an associated signing service.
|
19
|
+
attr_accessor :manifest_signing_service
|
20
|
+
|
21
|
+
attr_accessor :pulp_labels
|
22
|
+
|
18
23
|
# Retain X versions of the repository. Default is null which retains all versions.
|
19
24
|
attr_accessor :retain_repo_versions
|
20
25
|
|
21
26
|
# An optional description.
|
22
27
|
attr_accessor :description
|
23
28
|
|
24
|
-
attr_accessor :pulp_labels
|
25
|
-
|
26
29
|
# A unique name for this repository.
|
27
30
|
attr_accessor :name
|
28
31
|
|
29
|
-
# A reference to an associated signing service.
|
30
|
-
attr_accessor :manifest_signing_service
|
31
|
-
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
35
37
|
:'retain_repo_versions' => :'retain_repo_versions',
|
36
38
|
:'description' => :'description',
|
37
|
-
:'
|
38
|
-
:'name' => :'name',
|
39
|
-
:'manifest_signing_service' => :'manifest_signing_service'
|
39
|
+
:'name' => :'name'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
+
:'manifest_signing_service' => :'String',
|
47
|
+
:'pulp_labels' => :'Hash<String, String>',
|
46
48
|
:'retain_repo_versions' => :'Integer',
|
47
49
|
:'description' => :'String',
|
48
|
-
:'
|
49
|
-
:'name' => :'String',
|
50
|
-
:'manifest_signing_service' => :'String'
|
50
|
+
:'name' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
+
:'manifest_signing_service',
|
57
58
|
:'retain_repo_versions',
|
58
59
|
:'description',
|
59
|
-
:'manifest_signing_service'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,12 +75,8 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
80
|
-
end
|
81
|
-
|
82
|
-
if attributes.key?(:'description')
|
83
|
-
self.description = attributes[:'description']
|
78
|
+
if attributes.key?(:'manifest_signing_service')
|
79
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
84
80
|
end
|
85
81
|
|
86
82
|
if attributes.key?(:'pulp_labels')
|
@@ -89,12 +85,16 @@ module PulpContainerClient
|
|
89
85
|
end
|
90
86
|
end
|
91
87
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
88
|
+
if attributes.key?(:'retain_repo_versions')
|
89
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
94
90
|
end
|
95
91
|
|
96
|
-
if attributes.key?(:'
|
97
|
-
self.
|
92
|
+
if attributes.key?(:'description')
|
93
|
+
self.description = attributes[:'description']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'name')
|
97
|
+
self.name = attributes[:'name']
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -161,11 +161,11 @@ module PulpContainerClient
|
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
+
manifest_signing_service == o.manifest_signing_service &&
|
165
|
+
pulp_labels == o.pulp_labels &&
|
164
166
|
retain_repo_versions == o.retain_repo_versions &&
|
165
167
|
description == o.description &&
|
166
|
-
|
167
|
-
name == o.name &&
|
168
|
-
manifest_signing_service == o.manifest_signing_service
|
168
|
+
name == o.name
|
169
169
|
end
|
170
170
|
|
171
171
|
# @see the `==` method
|
@@ -177,7 +177,7 @@ module PulpContainerClient
|
|
177
177
|
# Calculates hash code according to all attributes.
|
178
178
|
# @return [Integer] Hash code
|
179
179
|
def hash
|
180
|
-
[
|
180
|
+
[manifest_signing_service, pulp_labels, retain_repo_versions, description, name].hash
|
181
181
|
end
|
182
182
|
|
183
183
|
# Builds the object from hash
|