pulp_container_client 2.19.13 → 2.19.14
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 +10 -10
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/DistributionsPullThroughApi.md +6 -8
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +4 -8
- data/lib/pulp_container_client/models/container_container_distribution.rb +27 -27
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +47 -47
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +27 -27
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +47 -47
- data/lib/pulp_container_client/models/container_container_push_repository.rb +41 -41
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +51 -51
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +27 -27
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +27 -27
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +41 -41
- 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 +9 -9
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- 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 +5 -5
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +61 -61
|
@@ -15,19 +15,20 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
|
18
|
-
attr_accessor :pulp_labels
|
|
19
|
-
|
|
20
18
|
# An optional description.
|
|
21
19
|
attr_accessor :description
|
|
22
20
|
|
|
23
|
-
#
|
|
24
|
-
attr_accessor :
|
|
21
|
+
# Timestamp of creation.
|
|
22
|
+
attr_accessor :pulp_created
|
|
25
23
|
|
|
26
|
-
attr_accessor :
|
|
24
|
+
attr_accessor :versions_href
|
|
27
25
|
|
|
28
26
|
attr_accessor :latest_version_href
|
|
29
27
|
|
|
30
|
-
|
|
28
|
+
# 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.
|
|
29
|
+
attr_accessor :pulp_last_updated
|
|
30
|
+
|
|
31
|
+
attr_accessor :pulp_href
|
|
31
32
|
|
|
32
33
|
# A unique name for this repository.
|
|
33
34
|
attr_accessor :name
|
|
@@ -35,41 +36,40 @@ module PulpContainerClient
|
|
|
35
36
|
# A reference to an associated signing service.
|
|
36
37
|
attr_accessor :manifest_signing_service
|
|
37
38
|
|
|
38
|
-
#
|
|
39
|
-
attr_accessor :
|
|
39
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
40
|
+
attr_accessor :retain_repo_versions
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
attr_accessor :pulp_last_updated
|
|
42
|
+
attr_accessor :pulp_labels
|
|
43
43
|
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
|
-
:'pulp_labels' => :'pulp_labels',
|
|
48
47
|
:'description' => :'description',
|
|
49
|
-
:'
|
|
50
|
-
:'pulp_href' => :'pulp_href',
|
|
51
|
-
:'latest_version_href' => :'latest_version_href',
|
|
48
|
+
:'pulp_created' => :'pulp_created',
|
|
52
49
|
:'versions_href' => :'versions_href',
|
|
50
|
+
:'latest_version_href' => :'latest_version_href',
|
|
51
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
52
|
+
:'pulp_href' => :'pulp_href',
|
|
53
53
|
:'name' => :'name',
|
|
54
54
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
55
|
-
:'
|
|
56
|
-
:'
|
|
55
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
56
|
+
:'pulp_labels' => :'pulp_labels'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
# Attribute type mapping.
|
|
61
61
|
def self.openapi_types
|
|
62
62
|
{
|
|
63
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
64
63
|
:'description' => :'String',
|
|
65
|
-
:'
|
|
66
|
-
:'pulp_href' => :'String',
|
|
67
|
-
:'latest_version_href' => :'String',
|
|
64
|
+
:'pulp_created' => :'DateTime',
|
|
68
65
|
:'versions_href' => :'String',
|
|
66
|
+
:'latest_version_href' => :'String',
|
|
67
|
+
:'pulp_last_updated' => :'DateTime',
|
|
68
|
+
:'pulp_href' => :'String',
|
|
69
69
|
:'name' => :'String',
|
|
70
70
|
:'manifest_signing_service' => :'String',
|
|
71
|
-
:'
|
|
72
|
-
:'
|
|
71
|
+
:'retain_repo_versions' => :'Integer',
|
|
72
|
+
:'pulp_labels' => :'Hash<String, String>'
|
|
73
73
|
}
|
|
74
74
|
end
|
|
75
75
|
|
|
@@ -77,8 +77,8 @@ module PulpContainerClient
|
|
|
77
77
|
def self.openapi_nullable
|
|
78
78
|
Set.new([
|
|
79
79
|
:'description',
|
|
80
|
-
:'retain_repo_versions',
|
|
81
80
|
:'manifest_signing_service',
|
|
81
|
+
:'retain_repo_versions',
|
|
82
82
|
])
|
|
83
83
|
end
|
|
84
84
|
|
|
@@ -97,30 +97,28 @@ module PulpContainerClient
|
|
|
97
97
|
h[k.to_sym] = v
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
if attributes.key?(:'pulp_labels')
|
|
101
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
102
|
-
self.pulp_labels = value
|
|
103
|
-
end
|
|
104
|
-
end
|
|
105
|
-
|
|
106
100
|
if attributes.key?(:'description')
|
|
107
101
|
self.description = attributes[:'description']
|
|
108
102
|
end
|
|
109
103
|
|
|
110
|
-
if attributes.key?(:'
|
|
111
|
-
self.
|
|
104
|
+
if attributes.key?(:'pulp_created')
|
|
105
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
112
106
|
end
|
|
113
107
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
108
|
+
if attributes.key?(:'versions_href')
|
|
109
|
+
self.versions_href = attributes[:'versions_href']
|
|
116
110
|
end
|
|
117
111
|
|
|
118
112
|
if attributes.key?(:'latest_version_href')
|
|
119
113
|
self.latest_version_href = attributes[:'latest_version_href']
|
|
120
114
|
end
|
|
121
115
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
116
|
+
if attributes.key?(:'pulp_last_updated')
|
|
117
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'pulp_href')
|
|
121
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
124
122
|
end
|
|
125
123
|
|
|
126
124
|
if attributes.key?(:'name')
|
|
@@ -131,12 +129,14 @@ module PulpContainerClient
|
|
|
131
129
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
132
130
|
end
|
|
133
131
|
|
|
134
|
-
if attributes.key?(:'
|
|
135
|
-
self.
|
|
132
|
+
if attributes.key?(:'retain_repo_versions')
|
|
133
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
136
134
|
end
|
|
137
135
|
|
|
138
|
-
if attributes.key?(:'
|
|
139
|
-
|
|
136
|
+
if attributes.key?(:'pulp_labels')
|
|
137
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
138
|
+
self.pulp_labels = value
|
|
139
|
+
end
|
|
140
140
|
end
|
|
141
141
|
end
|
|
142
142
|
|
|
@@ -144,22 +144,22 @@ module PulpContainerClient
|
|
|
144
144
|
# @return Array for valid properties with the reasons
|
|
145
145
|
def list_invalid_properties
|
|
146
146
|
invalid_properties = Array.new
|
|
147
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
148
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
149
|
-
end
|
|
150
|
-
|
|
151
147
|
if @name.nil?
|
|
152
148
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
153
149
|
end
|
|
154
150
|
|
|
151
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
152
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
153
|
+
end
|
|
154
|
+
|
|
155
155
|
invalid_properties
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
# Check to see if the all the properties in the model are valid
|
|
159
159
|
# @return true if the model is valid
|
|
160
160
|
def valid?
|
|
161
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
162
161
|
return false if @name.nil?
|
|
162
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
163
163
|
true
|
|
164
164
|
end
|
|
165
165
|
|
|
@@ -178,16 +178,16 @@ module PulpContainerClient
|
|
|
178
178
|
def ==(o)
|
|
179
179
|
return true if self.equal?(o)
|
|
180
180
|
self.class == o.class &&
|
|
181
|
-
pulp_labels == o.pulp_labels &&
|
|
182
181
|
description == o.description &&
|
|
183
|
-
|
|
184
|
-
pulp_href == o.pulp_href &&
|
|
185
|
-
latest_version_href == o.latest_version_href &&
|
|
182
|
+
pulp_created == o.pulp_created &&
|
|
186
183
|
versions_href == o.versions_href &&
|
|
184
|
+
latest_version_href == o.latest_version_href &&
|
|
185
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
186
|
+
pulp_href == o.pulp_href &&
|
|
187
187
|
name == o.name &&
|
|
188
188
|
manifest_signing_service == o.manifest_signing_service &&
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
190
|
+
pulp_labels == o.pulp_labels
|
|
191
191
|
end
|
|
192
192
|
|
|
193
193
|
# @see the `==` method
|
|
@@ -199,7 +199,7 @@ module PulpContainerClient
|
|
|
199
199
|
# Calculates hash code according to all attributes.
|
|
200
200
|
# @return [Integer] Hash code
|
|
201
201
|
def hash
|
|
202
|
-
[
|
|
202
|
+
[description, pulp_created, versions_href, latest_version_href, pulp_last_updated, pulp_href, name, manifest_signing_service, retain_repo_versions, pulp_labels].hash
|
|
203
203
|
end
|
|
204
204
|
|
|
205
205
|
# Builds the object from hash
|
|
@@ -15,13 +15,16 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class PatchedcontainerContainerDistribution
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
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
20
|
|
|
21
21
|
attr_accessor :pulp_labels
|
|
22
22
|
|
|
23
|
-
# The
|
|
24
|
-
attr_accessor :
|
|
23
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
24
|
+
attr_accessor :repository
|
|
25
|
+
|
|
26
|
+
# Whether this distribution should be shown in the content app.
|
|
27
|
+
attr_accessor :hidden
|
|
25
28
|
|
|
26
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
27
30
|
attr_accessor :name
|
|
@@ -29,9 +32,6 @@ module PulpContainerClient
|
|
|
29
32
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
30
33
|
attr_accessor :content_guard
|
|
31
34
|
|
|
32
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
33
|
-
attr_accessor :repository
|
|
34
|
-
|
|
35
35
|
# RepositoryVersion to be served
|
|
36
36
|
attr_accessor :repository_version
|
|
37
37
|
|
|
@@ -44,12 +44,12 @@ module PulpContainerClient
|
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
|
-
:'hidden' => :'hidden',
|
|
48
|
-
:'pulp_labels' => :'pulp_labels',
|
|
49
47
|
:'base_path' => :'base_path',
|
|
48
|
+
:'pulp_labels' => :'pulp_labels',
|
|
49
|
+
:'repository' => :'repository',
|
|
50
|
+
:'hidden' => :'hidden',
|
|
50
51
|
:'name' => :'name',
|
|
51
52
|
:'content_guard' => :'content_guard',
|
|
52
|
-
:'repository' => :'repository',
|
|
53
53
|
:'repository_version' => :'repository_version',
|
|
54
54
|
:'private' => :'private',
|
|
55
55
|
:'description' => :'description'
|
|
@@ -59,12 +59,12 @@ module PulpContainerClient
|
|
|
59
59
|
# Attribute type mapping.
|
|
60
60
|
def self.openapi_types
|
|
61
61
|
{
|
|
62
|
-
:'hidden' => :'Boolean',
|
|
63
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
64
62
|
:'base_path' => :'String',
|
|
63
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
64
|
+
:'repository' => :'String',
|
|
65
|
+
:'hidden' => :'Boolean',
|
|
65
66
|
:'name' => :'String',
|
|
66
67
|
:'content_guard' => :'String',
|
|
67
|
-
:'repository' => :'String',
|
|
68
68
|
:'repository_version' => :'String',
|
|
69
69
|
:'private' => :'Boolean',
|
|
70
70
|
:'description' => :'String'
|
|
@@ -95,10 +95,8 @@ module PulpContainerClient
|
|
|
95
95
|
h[k.to_sym] = v
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
if attributes.key?(:'
|
|
99
|
-
self.
|
|
100
|
-
else
|
|
101
|
-
self.hidden = false
|
|
98
|
+
if attributes.key?(:'base_path')
|
|
99
|
+
self.base_path = attributes[:'base_path']
|
|
102
100
|
end
|
|
103
101
|
|
|
104
102
|
if attributes.key?(:'pulp_labels')
|
|
@@ -107,8 +105,14 @@ module PulpContainerClient
|
|
|
107
105
|
end
|
|
108
106
|
end
|
|
109
107
|
|
|
110
|
-
if attributes.key?(:'
|
|
111
|
-
self.
|
|
108
|
+
if attributes.key?(:'repository')
|
|
109
|
+
self.repository = attributes[:'repository']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'hidden')
|
|
113
|
+
self.hidden = attributes[:'hidden']
|
|
114
|
+
else
|
|
115
|
+
self.hidden = false
|
|
112
116
|
end
|
|
113
117
|
|
|
114
118
|
if attributes.key?(:'name')
|
|
@@ -119,10 +123,6 @@ module PulpContainerClient
|
|
|
119
123
|
self.content_guard = attributes[:'content_guard']
|
|
120
124
|
end
|
|
121
125
|
|
|
122
|
-
if attributes.key?(:'repository')
|
|
123
|
-
self.repository = attributes[:'repository']
|
|
124
|
-
end
|
|
125
|
-
|
|
126
126
|
if attributes.key?(:'repository_version')
|
|
127
127
|
self.repository_version = attributes[:'repository_version']
|
|
128
128
|
end
|
|
@@ -199,12 +199,12 @@ module PulpContainerClient
|
|
|
199
199
|
def ==(o)
|
|
200
200
|
return true if self.equal?(o)
|
|
201
201
|
self.class == o.class &&
|
|
202
|
-
hidden == o.hidden &&
|
|
203
|
-
pulp_labels == o.pulp_labels &&
|
|
204
202
|
base_path == o.base_path &&
|
|
203
|
+
pulp_labels == o.pulp_labels &&
|
|
204
|
+
repository == o.repository &&
|
|
205
|
+
hidden == o.hidden &&
|
|
205
206
|
name == o.name &&
|
|
206
207
|
content_guard == o.content_guard &&
|
|
207
|
-
repository == o.repository &&
|
|
208
208
|
repository_version == o.repository_version &&
|
|
209
209
|
private == o.private &&
|
|
210
210
|
description == o.description
|
|
@@ -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
|
+
[base_path, pulp_labels, repository, hidden, name, content_guard, repository_version, private, description].hash
|
|
223
223
|
end
|
|
224
224
|
|
|
225
225
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
|
@@ -15,13 +15,16 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
17
17
|
class PatchedcontainerContainerPullThroughDistribution
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# The registry path exposed by this pull-through distribution.
|
|
19
|
+
attr_accessor :base_path
|
|
20
20
|
|
|
21
21
|
attr_accessor :pulp_labels
|
|
22
22
|
|
|
23
|
-
# The
|
|
24
|
-
attr_accessor :
|
|
23
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
24
|
+
attr_accessor :repository
|
|
25
|
+
|
|
26
|
+
# Whether this distribution should be shown in the content app.
|
|
27
|
+
attr_accessor :hidden
|
|
25
28
|
|
|
26
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
27
30
|
attr_accessor :name
|
|
@@ -29,9 +32,6 @@ module PulpContainerClient
|
|
|
29
32
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
30
33
|
attr_accessor :content_guard
|
|
31
34
|
|
|
32
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
33
|
-
attr_accessor :repository
|
|
34
|
-
|
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
36
36
|
attr_accessor :remote
|
|
37
37
|
|
|
@@ -47,12 +47,12 @@ module PulpContainerClient
|
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
48
|
def self.attribute_map
|
|
49
49
|
{
|
|
50
|
-
:'hidden' => :'hidden',
|
|
51
|
-
:'pulp_labels' => :'pulp_labels',
|
|
52
50
|
:'base_path' => :'base_path',
|
|
51
|
+
:'pulp_labels' => :'pulp_labels',
|
|
52
|
+
:'repository' => :'repository',
|
|
53
|
+
:'hidden' => :'hidden',
|
|
53
54
|
:'name' => :'name',
|
|
54
55
|
:'content_guard' => :'content_guard',
|
|
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
|
-
:'hidden' => :'Boolean',
|
|
67
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
68
66
|
:'base_path' => :'String',
|
|
67
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
68
|
+
:'repository' => :'String',
|
|
69
|
+
:'hidden' => :'Boolean',
|
|
69
70
|
:'name' => :'String',
|
|
70
71
|
:'content_guard' => :'String',
|
|
71
|
-
:'repository' => :'String',
|
|
72
72
|
:'remote' => :'String',
|
|
73
73
|
:'distributions' => :'Array<String>',
|
|
74
74
|
:'private' => :'Boolean',
|
|
@@ -99,10 +99,8 @@ module PulpContainerClient
|
|
|
99
99
|
h[k.to_sym] = v
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
if attributes.key?(:'
|
|
103
|
-
self.
|
|
104
|
-
else
|
|
105
|
-
self.hidden = false
|
|
102
|
+
if attributes.key?(:'base_path')
|
|
103
|
+
self.base_path = attributes[:'base_path']
|
|
106
104
|
end
|
|
107
105
|
|
|
108
106
|
if attributes.key?(:'pulp_labels')
|
|
@@ -111,8 +109,14 @@ module PulpContainerClient
|
|
|
111
109
|
end
|
|
112
110
|
end
|
|
113
111
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
112
|
+
if attributes.key?(:'repository')
|
|
113
|
+
self.repository = attributes[:'repository']
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'hidden')
|
|
117
|
+
self.hidden = attributes[:'hidden']
|
|
118
|
+
else
|
|
119
|
+
self.hidden = false
|
|
116
120
|
end
|
|
117
121
|
|
|
118
122
|
if attributes.key?(:'name')
|
|
@@ -123,10 +127,6 @@ module PulpContainerClient
|
|
|
123
127
|
self.content_guard = attributes[:'content_guard']
|
|
124
128
|
end
|
|
125
129
|
|
|
126
|
-
if attributes.key?(:'repository')
|
|
127
|
-
self.repository = attributes[:'repository']
|
|
128
|
-
end
|
|
129
|
-
|
|
130
130
|
if attributes.key?(:'remote')
|
|
131
131
|
self.remote = attributes[:'remote']
|
|
132
132
|
end
|
|
@@ -209,12 +209,12 @@ module PulpContainerClient
|
|
|
209
209
|
def ==(o)
|
|
210
210
|
return true if self.equal?(o)
|
|
211
211
|
self.class == o.class &&
|
|
212
|
-
hidden == o.hidden &&
|
|
213
|
-
pulp_labels == o.pulp_labels &&
|
|
214
212
|
base_path == o.base_path &&
|
|
213
|
+
pulp_labels == o.pulp_labels &&
|
|
214
|
+
repository == o.repository &&
|
|
215
|
+
hidden == o.hidden &&
|
|
215
216
|
name == o.name &&
|
|
216
217
|
content_guard == o.content_guard &&
|
|
217
|
-
repository == o.repository &&
|
|
218
218
|
remote == o.remote &&
|
|
219
219
|
distributions == o.distributions &&
|
|
220
220
|
private == o.private &&
|
|
@@ -230,7 +230,7 @@ module PulpContainerClient
|
|
|
230
230
|
# Calculates hash code according to all attributes.
|
|
231
231
|
# @return [Integer] Hash code
|
|
232
232
|
def hash
|
|
233
|
-
[
|
|
233
|
+
[base_path, pulp_labels, repository, hidden, name, content_guard, remote, distributions, private, description].hash
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# Builds the object from hash
|
|
@@ -15,39 +15,39 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class PatchedcontainerContainerPushRepository
|
|
18
|
-
attr_accessor :pulp_labels
|
|
19
|
-
|
|
20
18
|
# An optional description.
|
|
21
19
|
attr_accessor :description
|
|
22
20
|
|
|
23
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
|
24
|
-
attr_accessor :retain_repo_versions
|
|
25
|
-
|
|
26
21
|
# A unique name for this repository.
|
|
27
22
|
attr_accessor :name
|
|
28
23
|
|
|
29
24
|
# A reference to an associated signing service.
|
|
30
25
|
attr_accessor :manifest_signing_service
|
|
31
26
|
|
|
27
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
|
+
attr_accessor :retain_repo_versions
|
|
29
|
+
|
|
30
|
+
attr_accessor :pulp_labels
|
|
31
|
+
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
|
-
:'pulp_labels' => :'pulp_labels',
|
|
36
35
|
:'description' => :'description',
|
|
37
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
38
36
|
:'name' => :'name',
|
|
39
|
-
:'manifest_signing_service' => :'manifest_signing_service'
|
|
37
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
39
|
+
:'pulp_labels' => :'pulp_labels'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
# Attribute type mapping.
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
47
46
|
:'description' => :'String',
|
|
48
|
-
:'retain_repo_versions' => :'Integer',
|
|
49
47
|
:'name' => :'String',
|
|
50
|
-
:'manifest_signing_service' => :'String'
|
|
48
|
+
:'manifest_signing_service' => :'String',
|
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
|
50
|
+
:'pulp_labels' => :'Hash<String, 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
|
+
:'manifest_signing_service',
|
|
58
59
|
:'retain_repo_versions',
|
|
59
|
-
:'manifest_signing_service'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -75,20 +75,10 @@ module PulpContainerClient
|
|
|
75
75
|
h[k.to_sym] = v
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
if attributes.key?(:'pulp_labels')
|
|
79
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
80
|
-
self.pulp_labels = value
|
|
81
|
-
end
|
|
82
|
-
end
|
|
83
|
-
|
|
84
78
|
if attributes.key?(:'description')
|
|
85
79
|
self.description = attributes[:'description']
|
|
86
80
|
end
|
|
87
81
|
|
|
88
|
-
if attributes.key?(:'retain_repo_versions')
|
|
89
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
90
|
-
end
|
|
91
|
-
|
|
92
82
|
if attributes.key?(:'name')
|
|
93
83
|
self.name = attributes[:'name']
|
|
94
84
|
end
|
|
@@ -96,6 +86,16 @@ module PulpContainerClient
|
|
|
96
86
|
if attributes.key?(:'manifest_signing_service')
|
|
97
87
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
98
88
|
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'retain_repo_versions')
|
|
91
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'pulp_labels')
|
|
95
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
96
|
+
self.pulp_labels = value
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -106,14 +106,14 @@ module PulpContainerClient
|
|
|
106
106
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
110
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
111
|
-
end
|
|
112
|
-
|
|
113
109
|
if !@name.nil? && @name.to_s.length < 1
|
|
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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
114
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
115
|
+
end
|
|
116
|
+
|
|
117
117
|
invalid_properties
|
|
118
118
|
end
|
|
119
119
|
|
|
@@ -121,8 +121,8 @@ module PulpContainerClient
|
|
|
121
121
|
# @return true if the model is valid
|
|
122
122
|
def valid?
|
|
123
123
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
124
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
125
124
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
125
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
126
126
|
true
|
|
127
127
|
end
|
|
128
128
|
|
|
@@ -136,16 +136,6 @@ module PulpContainerClient
|
|
|
136
136
|
@description = description
|
|
137
137
|
end
|
|
138
138
|
|
|
139
|
-
# Custom attribute writer method with validation
|
|
140
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
141
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
142
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
143
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
@retain_repo_versions = retain_repo_versions
|
|
147
|
-
end
|
|
148
|
-
|
|
149
139
|
# Custom attribute writer method with validation
|
|
150
140
|
# @param [Object] name Value to be assigned
|
|
151
141
|
def name=(name)
|
|
@@ -156,16 +146,26 @@ module PulpContainerClient
|
|
|
156
146
|
@name = name
|
|
157
147
|
end
|
|
158
148
|
|
|
149
|
+
# Custom attribute writer method with validation
|
|
150
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
151
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
152
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
153
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
@retain_repo_versions = retain_repo_versions
|
|
157
|
+
end
|
|
158
|
+
|
|
159
159
|
# Checks equality by comparing each attribute.
|
|
160
160
|
# @param [Object] Object to be compared
|
|
161
161
|
def ==(o)
|
|
162
162
|
return true if self.equal?(o)
|
|
163
163
|
self.class == o.class &&
|
|
164
|
-
pulp_labels == o.pulp_labels &&
|
|
165
164
|
description == o.description &&
|
|
166
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
167
165
|
name == o.name &&
|
|
168
|
-
manifest_signing_service == o.manifest_signing_service
|
|
166
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
167
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
168
|
+
pulp_labels == o.pulp_labels
|
|
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
|
+
[description, name, manifest_signing_service, retain_repo_versions, pulp_labels].hash
|
|
181
181
|
end
|
|
182
182
|
|
|
183
183
|
# Builds the object from hash
|
|
@@ -183,8 +183,7 @@ describe 'DistributionsPullThroughApi' do
|
|
|
183
183
|
end
|
|
184
184
|
|
|
185
185
|
# unit tests for set_label
|
|
186
|
-
#
|
|
187
|
-
# Set a single pulp_label on the object to a specific value or null.
|
|
186
|
+
# Prevent clients from changing the internal pull-through marker.
|
|
188
187
|
# @param container_container_pull_through_distribution_href
|
|
189
188
|
# @param set_label
|
|
190
189
|
# @param [Hash] opts the optional parameters
|
|
@@ -197,8 +196,7 @@ describe 'DistributionsPullThroughApi' do
|
|
|
197
196
|
end
|
|
198
197
|
|
|
199
198
|
# unit tests for unset_label
|
|
200
|
-
#
|
|
201
|
-
# Unset a single pulp_label on the object.
|
|
199
|
+
# Prevent clients from removing the internal pull-through marker.
|
|
202
200
|
# @param container_container_pull_through_distribution_href
|
|
203
201
|
# @param unset_label
|
|
204
202
|
# @param [Hash] opts the optional parameters
|