pulp_container_client 2.28.1 → 2.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -6
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/ContainerContainerDistributionResponse.md +20 -20
- data/docs/ContainerContainerPullThroughDistribution.md +9 -9
- data/docs/ContainerContainerPullThroughDistributionResponse.md +20 -20
- data/docs/ContainerContainerPushRepository.md +8 -8
- data/docs/ContainerContainerPushRepositoryResponse.md +16 -16
- data/docs/ContainerRepositorySyncURL.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/DistributionsPullThroughApi.md +10 -10
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +9 -9
- data/docs/PatchedcontainerContainerPushRepository.md +8 -8
- data/docs/RepositoriesContainerApi.md +3 -3
- data/docs/RepositoriesContainerPushApi.md +75 -0
- 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_pull_through_api.rb +4 -8
- data/lib/pulp_container_client/api/repositories_container_api.rb +6 -6
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +66 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +42 -42
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +82 -82
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +43 -43
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +82 -82
- data/lib/pulp_container_client/models/container_container_push_repository.rb +68 -68
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +83 -83
- data/lib/pulp_container_client/models/container_repository_sync_url.rb +1 -1
- data/lib/pulp_container_client/models/nested_role.rb +1 -1
- data/lib/pulp_container_client/models/nested_role_response.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +40 -40
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +41 -41
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +66 -66
- data/lib/pulp_container_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_container_client/version.rb +1 -1
- 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_pull_through_api_spec.rb +2 -4
- data/spec/api/repositories_container_api_spec.rb +3 -3
- data/spec/api/repositories_container_push_api_spec.rb +13 -0
- data/spec/models/container_container_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +60 -60
|
@@ -16,24 +16,19 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepositoryResponse
|
|
19
|
-
|
|
20
|
-
attr_accessor :manifest_signing_service
|
|
19
|
+
attr_accessor :versions_href
|
|
21
20
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
21
|
+
# A unique name for this repository.
|
|
22
|
+
attr_accessor :name
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
# A reference to an associated signing service.
|
|
25
|
+
attr_accessor :manifest_signing_service
|
|
26
26
|
|
|
27
27
|
attr_accessor :pulp_href
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
attr_accessor :retain_checkpoints
|
|
31
|
-
|
|
32
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
|
33
|
-
attr_accessor :retain_repo_versions
|
|
29
|
+
attr_accessor :latest_version_href
|
|
34
30
|
|
|
35
|
-
|
|
36
|
-
attr_accessor :prn
|
|
31
|
+
attr_accessor :pulp_labels
|
|
37
32
|
|
|
38
33
|
# An optional description.
|
|
39
34
|
attr_accessor :description
|
|
@@ -41,28 +36,33 @@ module PulpContainerClient
|
|
|
41
36
|
# Timestamp of creation.
|
|
42
37
|
attr_accessor :pulp_created
|
|
43
38
|
|
|
44
|
-
|
|
39
|
+
# The Pulp Resource Name (PRN).
|
|
40
|
+
attr_accessor :prn
|
|
45
41
|
|
|
46
|
-
#
|
|
47
|
-
attr_accessor :
|
|
42
|
+
# 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.
|
|
43
|
+
attr_accessor :pulp_last_updated
|
|
48
44
|
|
|
49
|
-
|
|
45
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
46
|
+
attr_accessor :retain_repo_versions
|
|
47
|
+
|
|
48
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
49
|
+
attr_accessor :retain_checkpoints
|
|
50
50
|
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
52
|
def self.attribute_map
|
|
53
53
|
{
|
|
54
|
+
:'versions_href' => :'versions_href',
|
|
55
|
+
:'name' => :'name',
|
|
54
56
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
55
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
56
|
-
:'latest_version_href' => :'latest_version_href',
|
|
57
57
|
:'pulp_href' => :'pulp_href',
|
|
58
|
-
:'
|
|
59
|
-
:'
|
|
60
|
-
:'prn' => :'prn',
|
|
58
|
+
:'latest_version_href' => :'latest_version_href',
|
|
59
|
+
:'pulp_labels' => :'pulp_labels',
|
|
61
60
|
:'description' => :'description',
|
|
62
61
|
:'pulp_created' => :'pulp_created',
|
|
63
|
-
:'
|
|
64
|
-
:'
|
|
65
|
-
:'
|
|
62
|
+
:'prn' => :'prn',
|
|
63
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
64
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
65
|
+
:'retain_checkpoints' => :'retain_checkpoints'
|
|
66
66
|
}
|
|
67
67
|
end
|
|
68
68
|
|
|
@@ -74,18 +74,18 @@ module PulpContainerClient
|
|
|
74
74
|
# Attribute type mapping.
|
|
75
75
|
def self.openapi_types
|
|
76
76
|
{
|
|
77
|
+
:'versions_href' => :'String',
|
|
78
|
+
:'name' => :'String',
|
|
77
79
|
:'manifest_signing_service' => :'String',
|
|
78
|
-
:'pulp_last_updated' => :'Time',
|
|
79
|
-
:'latest_version_href' => :'String',
|
|
80
80
|
:'pulp_href' => :'String',
|
|
81
|
-
:'
|
|
82
|
-
:'
|
|
83
|
-
:'prn' => :'String',
|
|
81
|
+
:'latest_version_href' => :'String',
|
|
82
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
84
83
|
:'description' => :'String',
|
|
85
84
|
:'pulp_created' => :'Time',
|
|
86
|
-
:'
|
|
87
|
-
:'
|
|
88
|
-
:'
|
|
85
|
+
:'prn' => :'String',
|
|
86
|
+
:'pulp_last_updated' => :'Time',
|
|
87
|
+
:'retain_repo_versions' => :'Integer',
|
|
88
|
+
:'retain_checkpoints' => :'Integer'
|
|
89
89
|
}
|
|
90
90
|
end
|
|
91
91
|
|
|
@@ -93,9 +93,9 @@ module PulpContainerClient
|
|
|
93
93
|
def self.openapi_nullable
|
|
94
94
|
Set.new([
|
|
95
95
|
:'manifest_signing_service',
|
|
96
|
-
:'retain_checkpoints',
|
|
97
|
-
:'retain_repo_versions',
|
|
98
96
|
:'description',
|
|
97
|
+
:'retain_repo_versions',
|
|
98
|
+
:'retain_checkpoints'
|
|
99
99
|
])
|
|
100
100
|
end
|
|
101
101
|
|
|
@@ -114,32 +114,32 @@ module PulpContainerClient
|
|
|
114
114
|
h[k.to_sym] = v
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
if attributes.key?(:'
|
|
118
|
-
self.
|
|
117
|
+
if attributes.key?(:'versions_href')
|
|
118
|
+
self.versions_href = attributes[:'versions_href']
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
-
if attributes.key?(:'
|
|
122
|
-
self.
|
|
121
|
+
if attributes.key?(:'name')
|
|
122
|
+
self.name = attributes[:'name']
|
|
123
|
+
else
|
|
124
|
+
self.name = nil
|
|
123
125
|
end
|
|
124
126
|
|
|
125
|
-
if attributes.key?(:'
|
|
126
|
-
self.
|
|
127
|
+
if attributes.key?(:'manifest_signing_service')
|
|
128
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
127
129
|
end
|
|
128
130
|
|
|
129
131
|
if attributes.key?(:'pulp_href')
|
|
130
132
|
self.pulp_href = attributes[:'pulp_href']
|
|
131
133
|
end
|
|
132
134
|
|
|
133
|
-
if attributes.key?(:'
|
|
134
|
-
self.
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
if attributes.key?(:'retain_repo_versions')
|
|
138
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
135
|
+
if attributes.key?(:'latest_version_href')
|
|
136
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
139
137
|
end
|
|
140
138
|
|
|
141
|
-
if attributes.key?(:'
|
|
142
|
-
|
|
139
|
+
if attributes.key?(:'pulp_labels')
|
|
140
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
141
|
+
self.pulp_labels = value
|
|
142
|
+
end
|
|
143
143
|
end
|
|
144
144
|
|
|
145
145
|
if attributes.key?(:'description')
|
|
@@ -150,20 +150,20 @@ module PulpContainerClient
|
|
|
150
150
|
self.pulp_created = attributes[:'pulp_created']
|
|
151
151
|
end
|
|
152
152
|
|
|
153
|
-
if attributes.key?(:'
|
|
154
|
-
|
|
155
|
-
self.pulp_labels = value
|
|
156
|
-
end
|
|
153
|
+
if attributes.key?(:'prn')
|
|
154
|
+
self.prn = attributes[:'prn']
|
|
157
155
|
end
|
|
158
156
|
|
|
159
|
-
if attributes.key?(:'
|
|
160
|
-
self.
|
|
161
|
-
else
|
|
162
|
-
self.name = nil
|
|
157
|
+
if attributes.key?(:'pulp_last_updated')
|
|
158
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
163
159
|
end
|
|
164
160
|
|
|
165
|
-
if attributes.key?(:'
|
|
166
|
-
self.
|
|
161
|
+
if attributes.key?(:'retain_repo_versions')
|
|
162
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'retain_checkpoints')
|
|
166
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
167
167
|
end
|
|
168
168
|
end
|
|
169
169
|
|
|
@@ -172,16 +172,16 @@ module PulpContainerClient
|
|
|
172
172
|
def list_invalid_properties
|
|
173
173
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
174
174
|
invalid_properties = Array.new
|
|
175
|
-
if
|
|
176
|
-
invalid_properties.push('invalid value for "
|
|
175
|
+
if @name.nil?
|
|
176
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
177
177
|
end
|
|
178
178
|
|
|
179
179
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
180
180
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
181
181
|
end
|
|
182
182
|
|
|
183
|
-
if
|
|
184
|
-
invalid_properties.push('invalid value for "
|
|
183
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
184
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
185
185
|
end
|
|
186
186
|
|
|
187
187
|
invalid_properties
|
|
@@ -191,22 +191,12 @@ module PulpContainerClient
|
|
|
191
191
|
# @return true if the model is valid
|
|
192
192
|
def valid?
|
|
193
193
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
194
|
-
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
195
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
196
194
|
return false if @name.nil?
|
|
195
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
196
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
197
197
|
true
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
# Custom attribute writer method with validation
|
|
201
|
-
# @param [Object] retain_checkpoints Value to be assigned
|
|
202
|
-
def retain_checkpoints=(retain_checkpoints)
|
|
203
|
-
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
204
|
-
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
@retain_checkpoints = retain_checkpoints
|
|
208
|
-
end
|
|
209
|
-
|
|
210
200
|
# Custom attribute writer method with validation
|
|
211
201
|
# @param [Object] retain_repo_versions Value to be assigned
|
|
212
202
|
def retain_repo_versions=(retain_repo_versions)
|
|
@@ -217,23 +207,33 @@ module PulpContainerClient
|
|
|
217
207
|
@retain_repo_versions = retain_repo_versions
|
|
218
208
|
end
|
|
219
209
|
|
|
210
|
+
# Custom attribute writer method with validation
|
|
211
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
212
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
213
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
214
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
@retain_checkpoints = retain_checkpoints
|
|
218
|
+
end
|
|
219
|
+
|
|
220
220
|
# Checks equality by comparing each attribute.
|
|
221
221
|
# @param [Object] Object to be compared
|
|
222
222
|
def ==(o)
|
|
223
223
|
return true if self.equal?(o)
|
|
224
224
|
self.class == o.class &&
|
|
225
|
+
versions_href == o.versions_href &&
|
|
226
|
+
name == o.name &&
|
|
225
227
|
manifest_signing_service == o.manifest_signing_service &&
|
|
226
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
227
|
-
latest_version_href == o.latest_version_href &&
|
|
228
228
|
pulp_href == o.pulp_href &&
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
prn == o.prn &&
|
|
229
|
+
latest_version_href == o.latest_version_href &&
|
|
230
|
+
pulp_labels == o.pulp_labels &&
|
|
232
231
|
description == o.description &&
|
|
233
232
|
pulp_created == o.pulp_created &&
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
prn == o.prn &&
|
|
234
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
235
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
236
|
+
retain_checkpoints == o.retain_checkpoints
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
# @see the `==` method
|
|
@@ -245,7 +245,7 @@ module PulpContainerClient
|
|
|
245
245
|
# Calculates hash code according to all attributes.
|
|
246
246
|
# @return [Integer] Hash code
|
|
247
247
|
def hash
|
|
248
|
-
[
|
|
248
|
+
[versions_href, name, manifest_signing_service, pulp_href, latest_version_href, pulp_labels, description, pulp_created, prn, pulp_last_updated, retain_repo_versions, retain_checkpoints].hash
|
|
249
249
|
end
|
|
250
250
|
|
|
251
251
|
# Builds the object from hash
|
|
@@ -19,7 +19,7 @@ module PulpContainerClient
|
|
|
19
19
|
# A remote to sync from. This will override a remote set on repository.
|
|
20
20
|
attr_accessor :remote
|
|
21
21
|
|
|
22
|
-
# If
|
|
22
|
+
# If `True`, synchronization will remove all content that is not present in the remote repository. If `False`, sync will be additive only.
|
|
23
23
|
attr_accessor :mirror
|
|
24
24
|
|
|
25
25
|
# If ``True``, only signed content will be synced. Signatures are not verified.
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module PulpContainerClient
|
|
17
|
-
# Serializer to add/remove object roles to/from users/groups. This is used in conjunction with
|
|
17
|
+
# Serializer to add/remove object roles to/from users/groups. This is used in conjunction with `pulpcore.app.viewsets.base.RolesMixin` and requires the underlying object to be passed as `content_object` in the context.
|
|
18
18
|
class NestedRole
|
|
19
19
|
attr_accessor :users
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module PulpContainerClient
|
|
17
|
-
# Serializer to add/remove object roles to/from users/groups. This is used in conjunction with
|
|
17
|
+
# Serializer to add/remove object roles to/from users/groups. This is used in conjunction with `pulpcore.app.viewsets.base.RolesMixin` and requires the underlying object to be passed as `content_object` in the context.
|
|
18
18
|
class NestedRoleResponse
|
|
19
19
|
attr_accessor :users
|
|
20
20
|
|
|
@@ -16,26 +16,26 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class PatchedcontainerContainerDistribution
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
attr_accessor :pulp_labels
|
|
19
|
+
# RepositoryVersion to be served
|
|
20
|
+
attr_accessor :repository_version
|
|
23
21
|
|
|
24
22
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
25
23
|
attr_accessor :name
|
|
26
24
|
|
|
27
|
-
# Whether this distribution should be shown in the content app.
|
|
28
|
-
attr_accessor :hidden
|
|
29
|
-
|
|
30
25
|
# The latest RepositoryVersion for this Repository will be served.
|
|
31
26
|
attr_accessor :repository
|
|
32
27
|
|
|
33
|
-
# RepositoryVersion to be served
|
|
34
|
-
attr_accessor :repository_version
|
|
35
|
-
|
|
36
28
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
37
29
|
attr_accessor :base_path
|
|
38
30
|
|
|
31
|
+
attr_accessor :pulp_labels
|
|
32
|
+
|
|
33
|
+
# Whether this distribution should be shown in the content app.
|
|
34
|
+
attr_accessor :hidden
|
|
35
|
+
|
|
36
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
37
|
+
attr_accessor :content_guard
|
|
38
|
+
|
|
39
39
|
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
|
40
40
|
attr_accessor :private
|
|
41
41
|
|
|
@@ -45,13 +45,13 @@ module PulpContainerClient
|
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
46
|
def self.attribute_map
|
|
47
47
|
{
|
|
48
|
-
:'
|
|
49
|
-
:'pulp_labels' => :'pulp_labels',
|
|
48
|
+
:'repository_version' => :'repository_version',
|
|
50
49
|
:'name' => :'name',
|
|
51
|
-
:'hidden' => :'hidden',
|
|
52
50
|
:'repository' => :'repository',
|
|
53
|
-
:'repository_version' => :'repository_version',
|
|
54
51
|
:'base_path' => :'base_path',
|
|
52
|
+
:'pulp_labels' => :'pulp_labels',
|
|
53
|
+
:'hidden' => :'hidden',
|
|
54
|
+
:'content_guard' => :'content_guard',
|
|
55
55
|
:'private' => :'private',
|
|
56
56
|
:'description' => :'description'
|
|
57
57
|
}
|
|
@@ -65,13 +65,13 @@ module PulpContainerClient
|
|
|
65
65
|
# Attribute type mapping.
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
|
-
:'
|
|
69
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
68
|
+
:'repository_version' => :'String',
|
|
70
69
|
:'name' => :'String',
|
|
71
|
-
:'hidden' => :'Boolean',
|
|
72
70
|
:'repository' => :'String',
|
|
73
|
-
:'repository_version' => :'String',
|
|
74
71
|
:'base_path' => :'String',
|
|
72
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
73
|
+
:'hidden' => :'Boolean',
|
|
74
|
+
:'content_guard' => :'String',
|
|
75
75
|
:'private' => :'Boolean',
|
|
76
76
|
:'description' => :'String'
|
|
77
77
|
}
|
|
@@ -80,8 +80,8 @@ module PulpContainerClient
|
|
|
80
80
|
# List of attributes with nullable: true
|
|
81
81
|
def self.openapi_nullable
|
|
82
82
|
Set.new([
|
|
83
|
-
:'repository',
|
|
84
83
|
:'repository_version',
|
|
84
|
+
:'repository',
|
|
85
85
|
:'description'
|
|
86
86
|
])
|
|
87
87
|
end
|
|
@@ -101,8 +101,20 @@ module PulpContainerClient
|
|
|
101
101
|
h[k.to_sym] = v
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
if attributes.key?(:'
|
|
105
|
-
self.
|
|
104
|
+
if attributes.key?(:'repository_version')
|
|
105
|
+
self.repository_version = attributes[:'repository_version']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'name')
|
|
109
|
+
self.name = attributes[:'name']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'repository')
|
|
113
|
+
self.repository = attributes[:'repository']
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'base_path')
|
|
117
|
+
self.base_path = attributes[:'base_path']
|
|
106
118
|
end
|
|
107
119
|
|
|
108
120
|
if attributes.key?(:'pulp_labels')
|
|
@@ -111,26 +123,14 @@ module PulpContainerClient
|
|
|
111
123
|
end
|
|
112
124
|
end
|
|
113
125
|
|
|
114
|
-
if attributes.key?(:'name')
|
|
115
|
-
self.name = attributes[:'name']
|
|
116
|
-
end
|
|
117
|
-
|
|
118
126
|
if attributes.key?(:'hidden')
|
|
119
127
|
self.hidden = attributes[:'hidden']
|
|
120
128
|
else
|
|
121
129
|
self.hidden = false
|
|
122
130
|
end
|
|
123
131
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
self.
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
if attributes.key?(:'repository_version')
|
|
129
|
-
self.repository_version = attributes[:'repository_version']
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
if attributes.key?(:'base_path')
|
|
133
|
-
self.base_path = attributes[:'base_path']
|
|
132
|
+
if attributes.key?(:'content_guard')
|
|
133
|
+
self.content_guard = attributes[:'content_guard']
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
if attributes.key?(:'private')
|
|
@@ -215,13 +215,13 @@ module PulpContainerClient
|
|
|
215
215
|
def ==(o)
|
|
216
216
|
return true if self.equal?(o)
|
|
217
217
|
self.class == o.class &&
|
|
218
|
-
|
|
219
|
-
pulp_labels == o.pulp_labels &&
|
|
218
|
+
repository_version == o.repository_version &&
|
|
220
219
|
name == o.name &&
|
|
221
|
-
hidden == o.hidden &&
|
|
222
220
|
repository == o.repository &&
|
|
223
|
-
repository_version == o.repository_version &&
|
|
224
221
|
base_path == o.base_path &&
|
|
222
|
+
pulp_labels == o.pulp_labels &&
|
|
223
|
+
hidden == o.hidden &&
|
|
224
|
+
content_guard == o.content_guard &&
|
|
225
225
|
private == o.private &&
|
|
226
226
|
description == o.description
|
|
227
227
|
end
|
|
@@ -235,7 +235,7 @@ module PulpContainerClient
|
|
|
235
235
|
# Calculates hash code according to all attributes.
|
|
236
236
|
# @return [Integer] Hash code
|
|
237
237
|
def hash
|
|
238
|
-
[
|
|
238
|
+
[repository_version, name, repository, base_path, pulp_labels, hidden, content_guard, private, description].hash
|
|
239
239
|
end
|
|
240
240
|
|
|
241
241
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
|
@@ -16,26 +16,26 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
18
18
|
class PatchedcontainerContainerPullThroughDistribution
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
attr_accessor :pulp_labels
|
|
19
|
+
# RepositoryVersion to be served
|
|
20
|
+
attr_accessor :repository_version
|
|
23
21
|
|
|
24
22
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
25
23
|
attr_accessor :name
|
|
26
24
|
|
|
27
|
-
# Whether this distribution should be shown in the content app.
|
|
28
|
-
attr_accessor :hidden
|
|
29
|
-
|
|
30
25
|
# The latest RepositoryVersion for this Repository will be served.
|
|
31
26
|
attr_accessor :repository
|
|
32
27
|
|
|
33
|
-
#
|
|
34
|
-
attr_accessor :repository_version
|
|
35
|
-
|
|
36
|
-
# 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
|
+
# The registry path exposed by this pull-through distribution.
|
|
37
29
|
attr_accessor :base_path
|
|
38
30
|
|
|
31
|
+
attr_accessor :pulp_labels
|
|
32
|
+
|
|
33
|
+
# Whether this distribution should be shown in the content app.
|
|
34
|
+
attr_accessor :hidden
|
|
35
|
+
|
|
36
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
37
|
+
attr_accessor :content_guard
|
|
38
|
+
|
|
39
39
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
40
40
|
attr_accessor :remote
|
|
41
41
|
|
|
@@ -51,13 +51,13 @@ module PulpContainerClient
|
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
52
|
def self.attribute_map
|
|
53
53
|
{
|
|
54
|
-
:'
|
|
55
|
-
:'pulp_labels' => :'pulp_labels',
|
|
54
|
+
:'repository_version' => :'repository_version',
|
|
56
55
|
:'name' => :'name',
|
|
57
|
-
:'hidden' => :'hidden',
|
|
58
56
|
:'repository' => :'repository',
|
|
59
|
-
:'repository_version' => :'repository_version',
|
|
60
57
|
:'base_path' => :'base_path',
|
|
58
|
+
:'pulp_labels' => :'pulp_labels',
|
|
59
|
+
:'hidden' => :'hidden',
|
|
60
|
+
:'content_guard' => :'content_guard',
|
|
61
61
|
:'remote' => :'remote',
|
|
62
62
|
:'distributions' => :'distributions',
|
|
63
63
|
:'private' => :'private',
|
|
@@ -73,13 +73,13 @@ module PulpContainerClient
|
|
|
73
73
|
# Attribute type mapping.
|
|
74
74
|
def self.openapi_types
|
|
75
75
|
{
|
|
76
|
-
:'
|
|
77
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
76
|
+
:'repository_version' => :'String',
|
|
78
77
|
:'name' => :'String',
|
|
79
|
-
:'hidden' => :'Boolean',
|
|
80
78
|
:'repository' => :'String',
|
|
81
|
-
:'repository_version' => :'String',
|
|
82
79
|
:'base_path' => :'String',
|
|
80
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
81
|
+
:'hidden' => :'Boolean',
|
|
82
|
+
:'content_guard' => :'String',
|
|
83
83
|
:'remote' => :'String',
|
|
84
84
|
:'distributions' => :'Array<String>',
|
|
85
85
|
:'private' => :'Boolean',
|
|
@@ -90,8 +90,8 @@ module PulpContainerClient
|
|
|
90
90
|
# List of attributes with nullable: true
|
|
91
91
|
def self.openapi_nullable
|
|
92
92
|
Set.new([
|
|
93
|
-
:'repository',
|
|
94
93
|
:'repository_version',
|
|
94
|
+
:'repository',
|
|
95
95
|
:'description'
|
|
96
96
|
])
|
|
97
97
|
end
|
|
@@ -111,8 +111,20 @@ module PulpContainerClient
|
|
|
111
111
|
h[k.to_sym] = v
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
114
|
+
if attributes.key?(:'repository_version')
|
|
115
|
+
self.repository_version = attributes[:'repository_version']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'name')
|
|
119
|
+
self.name = attributes[:'name']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'repository')
|
|
123
|
+
self.repository = attributes[:'repository']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'base_path')
|
|
127
|
+
self.base_path = attributes[:'base_path']
|
|
116
128
|
end
|
|
117
129
|
|
|
118
130
|
if attributes.key?(:'pulp_labels')
|
|
@@ -121,26 +133,14 @@ module PulpContainerClient
|
|
|
121
133
|
end
|
|
122
134
|
end
|
|
123
135
|
|
|
124
|
-
if attributes.key?(:'name')
|
|
125
|
-
self.name = attributes[:'name']
|
|
126
|
-
end
|
|
127
|
-
|
|
128
136
|
if attributes.key?(:'hidden')
|
|
129
137
|
self.hidden = attributes[:'hidden']
|
|
130
138
|
else
|
|
131
139
|
self.hidden = false
|
|
132
140
|
end
|
|
133
141
|
|
|
134
|
-
if attributes.key?(:'
|
|
135
|
-
self.
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
if attributes.key?(:'repository_version')
|
|
139
|
-
self.repository_version = attributes[:'repository_version']
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
if attributes.key?(:'base_path')
|
|
143
|
-
self.base_path = attributes[:'base_path']
|
|
142
|
+
if attributes.key?(:'content_guard')
|
|
143
|
+
self.content_guard = attributes[:'content_guard']
|
|
144
144
|
end
|
|
145
145
|
|
|
146
146
|
if attributes.key?(:'remote')
|
|
@@ -235,13 +235,13 @@ module PulpContainerClient
|
|
|
235
235
|
def ==(o)
|
|
236
236
|
return true if self.equal?(o)
|
|
237
237
|
self.class == o.class &&
|
|
238
|
-
|
|
239
|
-
pulp_labels == o.pulp_labels &&
|
|
238
|
+
repository_version == o.repository_version &&
|
|
240
239
|
name == o.name &&
|
|
241
|
-
hidden == o.hidden &&
|
|
242
240
|
repository == o.repository &&
|
|
243
|
-
repository_version == o.repository_version &&
|
|
244
241
|
base_path == o.base_path &&
|
|
242
|
+
pulp_labels == o.pulp_labels &&
|
|
243
|
+
hidden == o.hidden &&
|
|
244
|
+
content_guard == o.content_guard &&
|
|
245
245
|
remote == o.remote &&
|
|
246
246
|
distributions == o.distributions &&
|
|
247
247
|
private == o.private &&
|
|
@@ -257,7 +257,7 @@ module PulpContainerClient
|
|
|
257
257
|
# Calculates hash code according to all attributes.
|
|
258
258
|
# @return [Integer] Hash code
|
|
259
259
|
def hash
|
|
260
|
-
[
|
|
260
|
+
[repository_version, name, repository, base_path, pulp_labels, hidden, content_guard, remote, distributions, private, description].hash
|
|
261
261
|
end
|
|
262
262
|
|
|
263
263
|
# Builds the object from hash
|