pulp_container_client 2.27.11 → 2.27.12
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 +6 -6
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +16 -16
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
- data/docs/ContainerContainerPushRepository.md +8 -8
- data/docs/ContainerContainerPushRepositoryResponse.md +16 -16
- data/docs/DistributionsPullThroughApi.md +10 -10
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +8 -8
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +4 -8
- data/lib/pulp_container_client/models/container_container_distribution.rb +31 -31
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +69 -69
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +31 -31
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +70 -70
- data/lib/pulp_container_client/models/container_container_push_repository.rb +62 -62
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +70 -70
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +28 -28
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +28 -28
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +62 -62
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/distributions_pull_through_api_spec.rb +2 -4
- data/spec/models/container_container_distribution_response_spec.rb +13 -13
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +13 -13
- data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/container_container_push_repository_response_spec.rb +10 -10
- data/spec/models/container_container_push_repository_spec.rb +6 -6
- 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 +6 -6
- metadata +59 -59
|
@@ -16,34 +16,34 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepositoryResponse
|
|
19
|
-
attr_accessor :
|
|
19
|
+
attr_accessor :pulp_href
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# Timestamp of creation.
|
|
22
|
+
attr_accessor :pulp_created
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
attr_accessor :description
|
|
24
|
+
attr_accessor :versions_href
|
|
26
25
|
|
|
27
|
-
#
|
|
28
|
-
attr_accessor :
|
|
26
|
+
# The Pulp Resource Name (PRN).
|
|
27
|
+
attr_accessor :prn
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
# An optional description.
|
|
30
|
+
attr_accessor :description
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
# A reference to an associated signing service.
|
|
33
|
+
attr_accessor :manifest_signing_service
|
|
33
34
|
|
|
34
|
-
#
|
|
35
|
-
attr_accessor :
|
|
35
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
36
|
+
attr_accessor :retain_repo_versions
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
attr_accessor :pulp_created
|
|
38
|
+
attr_accessor :latest_version_href
|
|
39
39
|
|
|
40
40
|
# A unique name for this repository.
|
|
41
41
|
attr_accessor :name
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
attr_accessor :manifest_signing_service
|
|
43
|
+
attr_accessor :pulp_labels
|
|
45
44
|
|
|
46
|
-
|
|
45
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
46
|
+
attr_accessor :retain_checkpoints
|
|
47
47
|
|
|
48
48
|
# 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.
|
|
49
49
|
attr_accessor :pulp_last_updated
|
|
@@ -51,17 +51,17 @@ module PulpContainerClient
|
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
52
|
def self.attribute_map
|
|
53
53
|
{
|
|
54
|
-
:'pulp_labels' => :'pulp_labels',
|
|
55
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
56
|
-
:'description' => :'description',
|
|
57
|
-
:'retain_checkpoints' => :'retain_checkpoints',
|
|
58
|
-
:'latest_version_href' => :'latest_version_href',
|
|
59
54
|
:'pulp_href' => :'pulp_href',
|
|
60
|
-
:'prn' => :'prn',
|
|
61
55
|
:'pulp_created' => :'pulp_created',
|
|
62
|
-
:'name' => :'name',
|
|
63
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
|
64
56
|
:'versions_href' => :'versions_href',
|
|
57
|
+
:'prn' => :'prn',
|
|
58
|
+
:'description' => :'description',
|
|
59
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
60
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
61
|
+
:'latest_version_href' => :'latest_version_href',
|
|
62
|
+
:'name' => :'name',
|
|
63
|
+
:'pulp_labels' => :'pulp_labels',
|
|
64
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
65
65
|
:'pulp_last_updated' => :'pulp_last_updated'
|
|
66
66
|
}
|
|
67
67
|
end
|
|
@@ -74,17 +74,17 @@ module PulpContainerClient
|
|
|
74
74
|
# Attribute type mapping.
|
|
75
75
|
def self.openapi_types
|
|
76
76
|
{
|
|
77
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
78
|
-
:'retain_repo_versions' => :'Integer',
|
|
79
|
-
:'description' => :'String',
|
|
80
|
-
:'retain_checkpoints' => :'Integer',
|
|
81
|
-
:'latest_version_href' => :'String',
|
|
82
77
|
:'pulp_href' => :'String',
|
|
83
|
-
:'prn' => :'String',
|
|
84
78
|
:'pulp_created' => :'Time',
|
|
85
|
-
:'name' => :'String',
|
|
86
|
-
:'manifest_signing_service' => :'String',
|
|
87
79
|
:'versions_href' => :'String',
|
|
80
|
+
:'prn' => :'String',
|
|
81
|
+
:'description' => :'String',
|
|
82
|
+
:'manifest_signing_service' => :'String',
|
|
83
|
+
:'retain_repo_versions' => :'Integer',
|
|
84
|
+
:'latest_version_href' => :'String',
|
|
85
|
+
:'name' => :'String',
|
|
86
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
87
|
+
:'retain_checkpoints' => :'Integer',
|
|
88
88
|
:'pulp_last_updated' => :'Time'
|
|
89
89
|
}
|
|
90
90
|
end
|
|
@@ -92,10 +92,10 @@ module PulpContainerClient
|
|
|
92
92
|
# List of attributes with nullable: true
|
|
93
93
|
def self.openapi_nullable
|
|
94
94
|
Set.new([
|
|
95
|
-
:'retain_repo_versions',
|
|
96
95
|
:'description',
|
|
97
|
-
:'retain_checkpoints',
|
|
98
96
|
:'manifest_signing_service',
|
|
97
|
+
:'retain_repo_versions',
|
|
98
|
+
:'retain_checkpoints',
|
|
99
99
|
])
|
|
100
100
|
end
|
|
101
101
|
|
|
@@ -114,38 +114,36 @@ module PulpContainerClient
|
|
|
114
114
|
h[k.to_sym] = v
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
if attributes.key?(:'
|
|
118
|
-
|
|
119
|
-
self.pulp_labels = value
|
|
120
|
-
end
|
|
117
|
+
if attributes.key?(:'pulp_href')
|
|
118
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
121
119
|
end
|
|
122
120
|
|
|
123
|
-
if attributes.key?(:'
|
|
124
|
-
self.
|
|
121
|
+
if attributes.key?(:'pulp_created')
|
|
122
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
125
123
|
end
|
|
126
124
|
|
|
127
|
-
if attributes.key?(:'
|
|
128
|
-
self.
|
|
125
|
+
if attributes.key?(:'versions_href')
|
|
126
|
+
self.versions_href = attributes[:'versions_href']
|
|
129
127
|
end
|
|
130
128
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
self.
|
|
129
|
+
if attributes.key?(:'prn')
|
|
130
|
+
self.prn = attributes[:'prn']
|
|
133
131
|
end
|
|
134
132
|
|
|
135
|
-
if attributes.key?(:'
|
|
136
|
-
self.
|
|
133
|
+
if attributes.key?(:'description')
|
|
134
|
+
self.description = attributes[:'description']
|
|
137
135
|
end
|
|
138
136
|
|
|
139
|
-
if attributes.key?(:'
|
|
140
|
-
self.
|
|
137
|
+
if attributes.key?(:'manifest_signing_service')
|
|
138
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
141
139
|
end
|
|
142
140
|
|
|
143
|
-
if attributes.key?(:'
|
|
144
|
-
self.
|
|
141
|
+
if attributes.key?(:'retain_repo_versions')
|
|
142
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
145
143
|
end
|
|
146
144
|
|
|
147
|
-
if attributes.key?(:'
|
|
148
|
-
self.
|
|
145
|
+
if attributes.key?(:'latest_version_href')
|
|
146
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
149
147
|
end
|
|
150
148
|
|
|
151
149
|
if attributes.key?(:'name')
|
|
@@ -154,12 +152,14 @@ module PulpContainerClient
|
|
|
154
152
|
self.name = nil
|
|
155
153
|
end
|
|
156
154
|
|
|
157
|
-
if attributes.key?(:'
|
|
158
|
-
|
|
155
|
+
if attributes.key?(:'pulp_labels')
|
|
156
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
157
|
+
self.pulp_labels = value
|
|
158
|
+
end
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
-
if attributes.key?(:'
|
|
162
|
-
self.
|
|
161
|
+
if attributes.key?(:'retain_checkpoints')
|
|
162
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
163
163
|
end
|
|
164
164
|
|
|
165
165
|
if attributes.key?(:'pulp_last_updated')
|
|
@@ -176,14 +176,14 @@ module PulpContainerClient
|
|
|
176
176
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
177
177
|
end
|
|
178
178
|
|
|
179
|
-
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
180
|
-
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
181
|
-
end
|
|
182
|
-
|
|
183
179
|
if @name.nil?
|
|
184
180
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
185
181
|
end
|
|
186
182
|
|
|
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
|
+
end
|
|
186
|
+
|
|
187
187
|
invalid_properties
|
|
188
188
|
end
|
|
189
189
|
|
|
@@ -192,8 +192,8 @@ module PulpContainerClient
|
|
|
192
192
|
def valid?
|
|
193
193
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
194
194
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
195
|
-
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
196
195
|
return false if @name.nil?
|
|
196
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
197
197
|
true
|
|
198
198
|
end
|
|
199
199
|
|
|
@@ -222,17 +222,17 @@ module PulpContainerClient
|
|
|
222
222
|
def ==(o)
|
|
223
223
|
return true if self.equal?(o)
|
|
224
224
|
self.class == o.class &&
|
|
225
|
-
pulp_labels == o.pulp_labels &&
|
|
226
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
227
|
-
description == o.description &&
|
|
228
|
-
retain_checkpoints == o.retain_checkpoints &&
|
|
229
|
-
latest_version_href == o.latest_version_href &&
|
|
230
225
|
pulp_href == o.pulp_href &&
|
|
231
|
-
prn == o.prn &&
|
|
232
226
|
pulp_created == o.pulp_created &&
|
|
233
|
-
name == o.name &&
|
|
234
|
-
manifest_signing_service == o.manifest_signing_service &&
|
|
235
227
|
versions_href == o.versions_href &&
|
|
228
|
+
prn == o.prn &&
|
|
229
|
+
description == o.description &&
|
|
230
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
231
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
232
|
+
latest_version_href == o.latest_version_href &&
|
|
233
|
+
name == o.name &&
|
|
234
|
+
pulp_labels == o.pulp_labels &&
|
|
235
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
236
236
|
pulp_last_updated == o.pulp_last_updated
|
|
237
237
|
end
|
|
238
238
|
|
|
@@ -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
|
+
[pulp_href, pulp_created, versions_href, prn, description, manifest_signing_service, retain_repo_versions, latest_version_href, name, pulp_labels, retain_checkpoints, pulp_last_updated].hash
|
|
249
249
|
end
|
|
250
250
|
|
|
251
251
|
# Builds the object from hash
|
|
@@ -16,26 +16,26 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class PatchedcontainerContainerDistribution
|
|
19
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
20
|
+
attr_accessor :content_guard
|
|
21
|
+
|
|
19
22
|
# Whether this distribution should be shown in the content app.
|
|
20
23
|
attr_accessor :hidden
|
|
21
24
|
|
|
25
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
26
|
+
attr_accessor :name
|
|
27
|
+
|
|
22
28
|
attr_accessor :pulp_labels
|
|
23
29
|
|
|
24
30
|
# The latest RepositoryVersion for this Repository will be served.
|
|
25
31
|
attr_accessor :repository
|
|
26
32
|
|
|
27
|
-
#
|
|
28
|
-
attr_accessor :
|
|
33
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
34
|
+
attr_accessor :base_path
|
|
29
35
|
|
|
30
36
|
# RepositoryVersion to be served
|
|
31
37
|
attr_accessor :repository_version
|
|
32
38
|
|
|
33
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
34
|
-
attr_accessor :content_guard
|
|
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\")
|
|
37
|
-
attr_accessor :base_path
|
|
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
|
+
:'content_guard' => :'content_guard',
|
|
48
49
|
:'hidden' => :'hidden',
|
|
50
|
+
:'name' => :'name',
|
|
49
51
|
:'pulp_labels' => :'pulp_labels',
|
|
50
52
|
:'repository' => :'repository',
|
|
51
|
-
:'name' => :'name',
|
|
52
|
-
:'repository_version' => :'repository_version',
|
|
53
|
-
:'content_guard' => :'content_guard',
|
|
54
53
|
:'base_path' => :'base_path',
|
|
54
|
+
:'repository_version' => :'repository_version',
|
|
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
|
+
:'content_guard' => :'String',
|
|
68
69
|
:'hidden' => :'Boolean',
|
|
70
|
+
:'name' => :'String',
|
|
69
71
|
:'pulp_labels' => :'Hash<String, String>',
|
|
70
72
|
:'repository' => :'String',
|
|
71
|
-
:'name' => :'String',
|
|
72
|
-
:'repository_version' => :'String',
|
|
73
|
-
:'content_guard' => :'String',
|
|
74
73
|
:'base_path' => :'String',
|
|
74
|
+
:'repository_version' => :'String',
|
|
75
75
|
:'private' => :'Boolean',
|
|
76
76
|
:'description' => :'String'
|
|
77
77
|
}
|
|
@@ -101,12 +101,20 @@ module PulpContainerClient
|
|
|
101
101
|
h[k.to_sym] = v
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
if attributes.key?(:'content_guard')
|
|
105
|
+
self.content_guard = attributes[:'content_guard']
|
|
106
|
+
end
|
|
107
|
+
|
|
104
108
|
if attributes.key?(:'hidden')
|
|
105
109
|
self.hidden = attributes[:'hidden']
|
|
106
110
|
else
|
|
107
111
|
self.hidden = false
|
|
108
112
|
end
|
|
109
113
|
|
|
114
|
+
if attributes.key?(:'name')
|
|
115
|
+
self.name = attributes[:'name']
|
|
116
|
+
end
|
|
117
|
+
|
|
110
118
|
if attributes.key?(:'pulp_labels')
|
|
111
119
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
112
120
|
self.pulp_labels = value
|
|
@@ -117,22 +125,14 @@ module PulpContainerClient
|
|
|
117
125
|
self.repository = attributes[:'repository']
|
|
118
126
|
end
|
|
119
127
|
|
|
120
|
-
if attributes.key?(:'
|
|
121
|
-
self.
|
|
128
|
+
if attributes.key?(:'base_path')
|
|
129
|
+
self.base_path = attributes[:'base_path']
|
|
122
130
|
end
|
|
123
131
|
|
|
124
132
|
if attributes.key?(:'repository_version')
|
|
125
133
|
self.repository_version = attributes[:'repository_version']
|
|
126
134
|
end
|
|
127
135
|
|
|
128
|
-
if attributes.key?(:'content_guard')
|
|
129
|
-
self.content_guard = attributes[:'content_guard']
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
if attributes.key?(:'base_path')
|
|
133
|
-
self.base_path = attributes[:'base_path']
|
|
134
|
-
end
|
|
135
|
-
|
|
136
136
|
if attributes.key?(:'private')
|
|
137
137
|
self.private = attributes[:'private']
|
|
138
138
|
end
|
|
@@ -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
|
+
content_guard == o.content_guard &&
|
|
218
219
|
hidden == o.hidden &&
|
|
220
|
+
name == o.name &&
|
|
219
221
|
pulp_labels == o.pulp_labels &&
|
|
220
222
|
repository == o.repository &&
|
|
221
|
-
name == o.name &&
|
|
222
|
-
repository_version == o.repository_version &&
|
|
223
|
-
content_guard == o.content_guard &&
|
|
224
223
|
base_path == o.base_path &&
|
|
224
|
+
repository_version == o.repository_version &&
|
|
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
|
-
[hidden, pulp_labels, repository,
|
|
238
|
+
[content_guard, hidden, name, pulp_labels, repository, base_path, repository_version, 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
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
20
|
+
attr_accessor :content_guard
|
|
21
|
+
|
|
19
22
|
# Whether this distribution should be shown in the content app.
|
|
20
23
|
attr_accessor :hidden
|
|
21
24
|
|
|
25
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
26
|
+
attr_accessor :name
|
|
27
|
+
|
|
22
28
|
attr_accessor :pulp_labels
|
|
23
29
|
|
|
24
30
|
# The latest RepositoryVersion for this Repository will be served.
|
|
25
31
|
attr_accessor :repository
|
|
26
32
|
|
|
27
|
-
#
|
|
28
|
-
attr_accessor :
|
|
33
|
+
# The registry path exposed by this pull-through distribution.
|
|
34
|
+
attr_accessor :base_path
|
|
29
35
|
|
|
30
36
|
# RepositoryVersion to be served
|
|
31
37
|
attr_accessor :repository_version
|
|
32
38
|
|
|
33
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
34
|
-
attr_accessor :content_guard
|
|
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\")
|
|
37
|
-
attr_accessor :base_path
|
|
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
|
+
:'content_guard' => :'content_guard',
|
|
54
55
|
:'hidden' => :'hidden',
|
|
56
|
+
:'name' => :'name',
|
|
55
57
|
:'pulp_labels' => :'pulp_labels',
|
|
56
58
|
:'repository' => :'repository',
|
|
57
|
-
:'name' => :'name',
|
|
58
|
-
:'repository_version' => :'repository_version',
|
|
59
|
-
:'content_guard' => :'content_guard',
|
|
60
59
|
:'base_path' => :'base_path',
|
|
60
|
+
:'repository_version' => :'repository_version',
|
|
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
|
+
:'content_guard' => :'String',
|
|
76
77
|
:'hidden' => :'Boolean',
|
|
78
|
+
:'name' => :'String',
|
|
77
79
|
:'pulp_labels' => :'Hash<String, String>',
|
|
78
80
|
:'repository' => :'String',
|
|
79
|
-
:'name' => :'String',
|
|
80
|
-
:'repository_version' => :'String',
|
|
81
|
-
:'content_guard' => :'String',
|
|
82
81
|
:'base_path' => :'String',
|
|
82
|
+
:'repository_version' => :'String',
|
|
83
83
|
:'remote' => :'String',
|
|
84
84
|
:'distributions' => :'Array<String>',
|
|
85
85
|
:'private' => :'Boolean',
|
|
@@ -111,12 +111,20 @@ module PulpContainerClient
|
|
|
111
111
|
h[k.to_sym] = v
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
+
if attributes.key?(:'content_guard')
|
|
115
|
+
self.content_guard = attributes[:'content_guard']
|
|
116
|
+
end
|
|
117
|
+
|
|
114
118
|
if attributes.key?(:'hidden')
|
|
115
119
|
self.hidden = attributes[:'hidden']
|
|
116
120
|
else
|
|
117
121
|
self.hidden = false
|
|
118
122
|
end
|
|
119
123
|
|
|
124
|
+
if attributes.key?(:'name')
|
|
125
|
+
self.name = attributes[:'name']
|
|
126
|
+
end
|
|
127
|
+
|
|
120
128
|
if attributes.key?(:'pulp_labels')
|
|
121
129
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
122
130
|
self.pulp_labels = value
|
|
@@ -127,22 +135,14 @@ module PulpContainerClient
|
|
|
127
135
|
self.repository = attributes[:'repository']
|
|
128
136
|
end
|
|
129
137
|
|
|
130
|
-
if attributes.key?(:'
|
|
131
|
-
self.
|
|
138
|
+
if attributes.key?(:'base_path')
|
|
139
|
+
self.base_path = attributes[:'base_path']
|
|
132
140
|
end
|
|
133
141
|
|
|
134
142
|
if attributes.key?(:'repository_version')
|
|
135
143
|
self.repository_version = attributes[:'repository_version']
|
|
136
144
|
end
|
|
137
145
|
|
|
138
|
-
if attributes.key?(:'content_guard')
|
|
139
|
-
self.content_guard = attributes[:'content_guard']
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
if attributes.key?(:'base_path')
|
|
143
|
-
self.base_path = attributes[:'base_path']
|
|
144
|
-
end
|
|
145
|
-
|
|
146
146
|
if attributes.key?(:'remote')
|
|
147
147
|
self.remote = attributes[:'remote']
|
|
148
148
|
end
|
|
@@ -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
|
+
content_guard == o.content_guard &&
|
|
238
239
|
hidden == o.hidden &&
|
|
240
|
+
name == o.name &&
|
|
239
241
|
pulp_labels == o.pulp_labels &&
|
|
240
242
|
repository == o.repository &&
|
|
241
|
-
name == o.name &&
|
|
242
|
-
repository_version == o.repository_version &&
|
|
243
|
-
content_guard == o.content_guard &&
|
|
244
243
|
base_path == o.base_path &&
|
|
244
|
+
repository_version == o.repository_version &&
|
|
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
|
-
[hidden, pulp_labels, repository,
|
|
260
|
+
[content_guard, hidden, name, pulp_labels, repository, base_path, repository_version, remote, distributions, private, description].hash
|
|
261
261
|
end
|
|
262
262
|
|
|
263
263
|
# Builds the object from hash
|