pulp_container_client 2.19.13 → 2.19.15
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 +4 -4
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/ContainerContainerPullThroughDistribution.md +5 -5
- data/docs/ContainerContainerPullThroughDistributionResponse.md +9 -9
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
- data/docs/DistributionsPullThroughApi.md +6 -8
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +5 -5
- 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 +20 -20
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +38 -38
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +21 -21
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +39 -39
- data/lib/pulp_container_client/models/container_container_push_repository.rb +51 -51
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +52 -52
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +21 -21
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +43 -43
- 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 +3 -3
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_pull_through_distribution_spec.rb +3 -3
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +60 -60
|
@@ -15,70 +15,70 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# An optional description.
|
|
21
|
-
attr_accessor :description
|
|
18
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
19
|
+
attr_accessor :pulp_last_updated
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
attr_accessor :retain_repo_versions
|
|
21
|
+
attr_accessor :pulp_labels
|
|
25
22
|
|
|
26
23
|
attr_accessor :pulp_href
|
|
27
24
|
|
|
28
25
|
attr_accessor :latest_version_href
|
|
29
26
|
|
|
30
|
-
attr_accessor :versions_href
|
|
31
|
-
|
|
32
|
-
# A unique name for this repository.
|
|
33
|
-
attr_accessor :name
|
|
34
|
-
|
|
35
27
|
# A reference to an associated signing service.
|
|
36
28
|
attr_accessor :manifest_signing_service
|
|
37
29
|
|
|
30
|
+
attr_accessor :versions_href
|
|
31
|
+
|
|
38
32
|
# Timestamp of creation.
|
|
39
33
|
attr_accessor :pulp_created
|
|
40
34
|
|
|
41
|
-
#
|
|
42
|
-
attr_accessor :
|
|
35
|
+
# A unique name for this repository.
|
|
36
|
+
attr_accessor :name
|
|
37
|
+
|
|
38
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
39
|
+
attr_accessor :retain_repo_versions
|
|
40
|
+
|
|
41
|
+
# An optional description.
|
|
42
|
+
attr_accessor :description
|
|
43
43
|
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
47
48
|
:'pulp_labels' => :'pulp_labels',
|
|
48
|
-
:'description' => :'description',
|
|
49
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
50
49
|
:'pulp_href' => :'pulp_href',
|
|
51
50
|
:'latest_version_href' => :'latest_version_href',
|
|
52
|
-
:'versions_href' => :'versions_href',
|
|
53
|
-
:'name' => :'name',
|
|
54
51
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
52
|
+
:'versions_href' => :'versions_href',
|
|
55
53
|
:'pulp_created' => :'pulp_created',
|
|
56
|
-
:'
|
|
54
|
+
:'name' => :'name',
|
|
55
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
56
|
+
:'description' => :'description'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
# Attribute type mapping.
|
|
61
61
|
def self.openapi_types
|
|
62
62
|
{
|
|
63
|
+
:'pulp_last_updated' => :'DateTime',
|
|
63
64
|
:'pulp_labels' => :'Hash<String, String>',
|
|
64
|
-
:'description' => :'String',
|
|
65
|
-
:'retain_repo_versions' => :'Integer',
|
|
66
65
|
:'pulp_href' => :'String',
|
|
67
66
|
:'latest_version_href' => :'String',
|
|
68
|
-
:'versions_href' => :'String',
|
|
69
|
-
:'name' => :'String',
|
|
70
67
|
:'manifest_signing_service' => :'String',
|
|
68
|
+
:'versions_href' => :'String',
|
|
71
69
|
:'pulp_created' => :'DateTime',
|
|
72
|
-
:'
|
|
70
|
+
:'name' => :'String',
|
|
71
|
+
:'retain_repo_versions' => :'Integer',
|
|
72
|
+
:'description' => :'String'
|
|
73
73
|
}
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
# List of attributes with nullable: true
|
|
77
77
|
def self.openapi_nullable
|
|
78
78
|
Set.new([
|
|
79
|
-
:'description',
|
|
80
|
-
:'retain_repo_versions',
|
|
81
79
|
:'manifest_signing_service',
|
|
80
|
+
:'retain_repo_versions',
|
|
81
|
+
:'description'
|
|
82
82
|
])
|
|
83
83
|
end
|
|
84
84
|
|
|
@@ -97,20 +97,16 @@ module PulpContainerClient
|
|
|
97
97
|
h[k.to_sym] = v
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
if attributes.key?(:'pulp_last_updated')
|
|
101
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
102
|
+
end
|
|
103
|
+
|
|
100
104
|
if attributes.key?(:'pulp_labels')
|
|
101
105
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
102
106
|
self.pulp_labels = value
|
|
103
107
|
end
|
|
104
108
|
end
|
|
105
109
|
|
|
106
|
-
if attributes.key?(:'description')
|
|
107
|
-
self.description = attributes[:'description']
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
if attributes.key?(:'retain_repo_versions')
|
|
111
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
112
|
-
end
|
|
113
|
-
|
|
114
110
|
if attributes.key?(:'pulp_href')
|
|
115
111
|
self.pulp_href = attributes[:'pulp_href']
|
|
116
112
|
end
|
|
@@ -119,24 +115,28 @@ module PulpContainerClient
|
|
|
119
115
|
self.latest_version_href = attributes[:'latest_version_href']
|
|
120
116
|
end
|
|
121
117
|
|
|
118
|
+
if attributes.key?(:'manifest_signing_service')
|
|
119
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
122
|
if attributes.key?(:'versions_href')
|
|
123
123
|
self.versions_href = attributes[:'versions_href']
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
-
if attributes.key?(:'
|
|
127
|
-
self.
|
|
126
|
+
if attributes.key?(:'pulp_created')
|
|
127
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
128
128
|
end
|
|
129
129
|
|
|
130
|
-
if attributes.key?(:'
|
|
131
|
-
self.
|
|
130
|
+
if attributes.key?(:'name')
|
|
131
|
+
self.name = attributes[:'name']
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
-
if attributes.key?(:'
|
|
135
|
-
self.
|
|
134
|
+
if attributes.key?(:'retain_repo_versions')
|
|
135
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
if attributes.key?(:'
|
|
139
|
-
self.
|
|
138
|
+
if attributes.key?(:'description')
|
|
139
|
+
self.description = attributes[:'description']
|
|
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_last_updated == o.pulp_last_updated &&
|
|
181
182
|
pulp_labels == o.pulp_labels &&
|
|
182
|
-
description == o.description &&
|
|
183
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
184
183
|
pulp_href == o.pulp_href &&
|
|
185
184
|
latest_version_href == o.latest_version_href &&
|
|
186
|
-
versions_href == o.versions_href &&
|
|
187
|
-
name == o.name &&
|
|
188
185
|
manifest_signing_service == o.manifest_signing_service &&
|
|
186
|
+
versions_href == o.versions_href &&
|
|
189
187
|
pulp_created == o.pulp_created &&
|
|
190
|
-
|
|
188
|
+
name == o.name &&
|
|
189
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
190
|
+
description == o.description
|
|
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
|
+
[pulp_last_updated, pulp_labels, pulp_href, latest_version_href, manifest_signing_service, versions_href, pulp_created, name, retain_repo_versions, description].hash
|
|
203
203
|
end
|
|
204
204
|
|
|
205
205
|
# 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
|
-
#
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
|
+
attr_accessor :content_guard
|
|
20
20
|
|
|
21
21
|
attr_accessor :pulp_labels
|
|
22
22
|
|
|
23
23
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
24
24
|
attr_accessor :base_path
|
|
25
25
|
|
|
26
|
+
# Whether this distribution should be shown in the content app.
|
|
27
|
+
attr_accessor :hidden
|
|
28
|
+
|
|
26
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
27
30
|
attr_accessor :name
|
|
28
31
|
|
|
29
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
30
|
-
attr_accessor :content_guard
|
|
31
|
-
|
|
32
32
|
# The latest RepositoryVersion for this Repository will be served.
|
|
33
33
|
attr_accessor :repository
|
|
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
|
-
:'
|
|
47
|
+
:'content_guard' => :'content_guard',
|
|
48
48
|
:'pulp_labels' => :'pulp_labels',
|
|
49
49
|
:'base_path' => :'base_path',
|
|
50
|
+
:'hidden' => :'hidden',
|
|
50
51
|
:'name' => :'name',
|
|
51
|
-
:'content_guard' => :'content_guard',
|
|
52
52
|
:'repository' => :'repository',
|
|
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
|
-
:'
|
|
62
|
+
:'content_guard' => :'String',
|
|
63
63
|
:'pulp_labels' => :'Hash<String, String>',
|
|
64
64
|
:'base_path' => :'String',
|
|
65
|
+
:'hidden' => :'Boolean',
|
|
65
66
|
:'name' => :'String',
|
|
66
|
-
:'content_guard' => :'String',
|
|
67
67
|
:'repository' => :'String',
|
|
68
68
|
:'repository_version' => :'String',
|
|
69
69
|
:'private' => :'Boolean',
|
|
@@ -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?(:'content_guard')
|
|
99
|
+
self.content_guard = attributes[:'content_guard']
|
|
102
100
|
end
|
|
103
101
|
|
|
104
102
|
if attributes.key?(:'pulp_labels')
|
|
@@ -111,12 +109,14 @@ module PulpContainerClient
|
|
|
111
109
|
self.base_path = attributes[:'base_path']
|
|
112
110
|
end
|
|
113
111
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
112
|
+
if attributes.key?(:'hidden')
|
|
113
|
+
self.hidden = attributes[:'hidden']
|
|
114
|
+
else
|
|
115
|
+
self.hidden = false
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
-
if attributes.key?(:'
|
|
119
|
-
self.
|
|
118
|
+
if attributes.key?(:'name')
|
|
119
|
+
self.name = attributes[:'name']
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
if attributes.key?(:'repository')
|
|
@@ -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
|
-
|
|
202
|
+
content_guard == o.content_guard &&
|
|
203
203
|
pulp_labels == o.pulp_labels &&
|
|
204
204
|
base_path == o.base_path &&
|
|
205
|
+
hidden == o.hidden &&
|
|
205
206
|
name == o.name &&
|
|
206
|
-
content_guard == o.content_guard &&
|
|
207
207
|
repository == o.repository &&
|
|
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
|
+
[content_guard, pulp_labels, base_path, hidden, name, repository, 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,20 +15,20 @@ 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
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
|
+
attr_accessor :content_guard
|
|
20
20
|
|
|
21
21
|
attr_accessor :pulp_labels
|
|
22
22
|
|
|
23
|
-
# The
|
|
23
|
+
# The registry path exposed by this pull-through distribution.
|
|
24
24
|
attr_accessor :base_path
|
|
25
25
|
|
|
26
|
+
# Whether this distribution should be shown in the content app.
|
|
27
|
+
attr_accessor :hidden
|
|
28
|
+
|
|
26
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
27
30
|
attr_accessor :name
|
|
28
31
|
|
|
29
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
30
|
-
attr_accessor :content_guard
|
|
31
|
-
|
|
32
32
|
# The latest RepositoryVersion for this Repository will be served.
|
|
33
33
|
attr_accessor :repository
|
|
34
34
|
|
|
@@ -47,11 +47,11 @@ module PulpContainerClient
|
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
48
|
def self.attribute_map
|
|
49
49
|
{
|
|
50
|
-
:'
|
|
50
|
+
:'content_guard' => :'content_guard',
|
|
51
51
|
:'pulp_labels' => :'pulp_labels',
|
|
52
52
|
:'base_path' => :'base_path',
|
|
53
|
+
:'hidden' => :'hidden',
|
|
53
54
|
:'name' => :'name',
|
|
54
|
-
:'content_guard' => :'content_guard',
|
|
55
55
|
:'repository' => :'repository',
|
|
56
56
|
:'remote' => :'remote',
|
|
57
57
|
:'distributions' => :'distributions',
|
|
@@ -63,11 +63,11 @@ module PulpContainerClient
|
|
|
63
63
|
# Attribute type mapping.
|
|
64
64
|
def self.openapi_types
|
|
65
65
|
{
|
|
66
|
-
:'
|
|
66
|
+
:'content_guard' => :'String',
|
|
67
67
|
:'pulp_labels' => :'Hash<String, String>',
|
|
68
68
|
:'base_path' => :'String',
|
|
69
|
+
:'hidden' => :'Boolean',
|
|
69
70
|
:'name' => :'String',
|
|
70
|
-
:'content_guard' => :'String',
|
|
71
71
|
:'repository' => :'String',
|
|
72
72
|
:'remote' => :'String',
|
|
73
73
|
:'distributions' => :'Array<String>',
|
|
@@ -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?(:'content_guard')
|
|
103
|
+
self.content_guard = attributes[:'content_guard']
|
|
106
104
|
end
|
|
107
105
|
|
|
108
106
|
if attributes.key?(:'pulp_labels')
|
|
@@ -115,12 +113,14 @@ module PulpContainerClient
|
|
|
115
113
|
self.base_path = attributes[:'base_path']
|
|
116
114
|
end
|
|
117
115
|
|
|
118
|
-
if attributes.key?(:'
|
|
119
|
-
self.
|
|
116
|
+
if attributes.key?(:'hidden')
|
|
117
|
+
self.hidden = attributes[:'hidden']
|
|
118
|
+
else
|
|
119
|
+
self.hidden = false
|
|
120
120
|
end
|
|
121
121
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
122
|
+
if attributes.key?(:'name')
|
|
123
|
+
self.name = attributes[:'name']
|
|
124
124
|
end
|
|
125
125
|
|
|
126
126
|
if attributes.key?(:'repository')
|
|
@@ -209,11 +209,11 @@ module PulpContainerClient
|
|
|
209
209
|
def ==(o)
|
|
210
210
|
return true if self.equal?(o)
|
|
211
211
|
self.class == o.class &&
|
|
212
|
-
|
|
212
|
+
content_guard == o.content_guard &&
|
|
213
213
|
pulp_labels == o.pulp_labels &&
|
|
214
214
|
base_path == o.base_path &&
|
|
215
|
+
hidden == o.hidden &&
|
|
215
216
|
name == o.name &&
|
|
216
|
-
content_guard == o.content_guard &&
|
|
217
217
|
repository == o.repository &&
|
|
218
218
|
remote == o.remote &&
|
|
219
219
|
distributions == o.distributions &&
|
|
@@ -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
|
+
[content_guard, pulp_labels, base_path, hidden, name, repository, remote, distributions, private, description].hash
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# Builds the object from hash
|
|
@@ -17,26 +17,26 @@ module PulpContainerClient
|
|
|
17
17
|
class PatchedcontainerContainerPushRepository
|
|
18
18
|
attr_accessor :pulp_labels
|
|
19
19
|
|
|
20
|
-
#
|
|
21
|
-
attr_accessor :
|
|
22
|
-
|
|
23
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
|
24
|
-
attr_accessor :retain_repo_versions
|
|
20
|
+
# A reference to an associated signing service.
|
|
21
|
+
attr_accessor :manifest_signing_service
|
|
25
22
|
|
|
26
23
|
# A unique name for this repository.
|
|
27
24
|
attr_accessor :name
|
|
28
25
|
|
|
29
|
-
#
|
|
30
|
-
attr_accessor :
|
|
26
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
27
|
+
attr_accessor :retain_repo_versions
|
|
28
|
+
|
|
29
|
+
# An optional description.
|
|
30
|
+
attr_accessor :description
|
|
31
31
|
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
35
|
:'pulp_labels' => :'pulp_labels',
|
|
36
|
-
:'
|
|
37
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
36
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
38
37
|
:'name' => :'name',
|
|
39
|
-
:'
|
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
39
|
+
:'description' => :'description'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
@@ -44,19 +44,19 @@ module PulpContainerClient
|
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
46
|
:'pulp_labels' => :'Hash<String, String>',
|
|
47
|
-
:'
|
|
48
|
-
:'retain_repo_versions' => :'Integer',
|
|
47
|
+
:'manifest_signing_service' => :'String',
|
|
49
48
|
:'name' => :'String',
|
|
50
|
-
:'
|
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
|
50
|
+
:'description' => :'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
|
-
:'
|
|
57
|
+
:'manifest_signing_service',
|
|
58
58
|
:'retain_repo_versions',
|
|
59
|
-
:'
|
|
59
|
+
:'description'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -81,20 +81,20 @@ module PulpContainerClient
|
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
if attributes.key?(:'
|
|
85
|
-
self.
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
if attributes.key?(:'retain_repo_versions')
|
|
89
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
84
|
+
if attributes.key?(:'manifest_signing_service')
|
|
85
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
90
86
|
end
|
|
91
87
|
|
|
92
88
|
if attributes.key?(:'name')
|
|
93
89
|
self.name = attributes[:'name']
|
|
94
90
|
end
|
|
95
91
|
|
|
96
|
-
if attributes.key?(:'
|
|
97
|
-
self.
|
|
92
|
+
if attributes.key?(:'retain_repo_versions')
|
|
93
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'description')
|
|
97
|
+
self.description = attributes[:'description']
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -102,16 +102,16 @@ module PulpContainerClient
|
|
|
102
102
|
# @return Array for valid properties with the reasons
|
|
103
103
|
def list_invalid_properties
|
|
104
104
|
invalid_properties = Array.new
|
|
105
|
-
if !@
|
|
106
|
-
invalid_properties.push('invalid value for "
|
|
105
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
106
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
107
107
|
end
|
|
108
108
|
|
|
109
109
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
110
110
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
111
111
|
end
|
|
112
112
|
|
|
113
|
-
if !@
|
|
114
|
-
invalid_properties.push('invalid value for "
|
|
113
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
114
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
invalid_properties
|
|
@@ -120,20 +120,20 @@ module PulpContainerClient
|
|
|
120
120
|
# Check to see if the all the properties in the model are valid
|
|
121
121
|
# @return true if the model is valid
|
|
122
122
|
def valid?
|
|
123
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
124
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
125
123
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
124
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
125
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
126
126
|
true
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
# Custom attribute writer method with validation
|
|
130
|
-
# @param [Object]
|
|
131
|
-
def
|
|
132
|
-
if !
|
|
133
|
-
fail ArgumentError, 'invalid value for "
|
|
130
|
+
# @param [Object] name Value to be assigned
|
|
131
|
+
def name=(name)
|
|
132
|
+
if !name.nil? && name.to_s.length < 1
|
|
133
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
134
134
|
end
|
|
135
135
|
|
|
136
|
-
@
|
|
136
|
+
@name = name
|
|
137
137
|
end
|
|
138
138
|
|
|
139
139
|
# Custom attribute writer method with validation
|
|
@@ -147,13 +147,13 @@ module PulpContainerClient
|
|
|
147
147
|
end
|
|
148
148
|
|
|
149
149
|
# Custom attribute writer method with validation
|
|
150
|
-
# @param [Object]
|
|
151
|
-
def
|
|
152
|
-
if !
|
|
153
|
-
fail ArgumentError, 'invalid value for "
|
|
150
|
+
# @param [Object] description Value to be assigned
|
|
151
|
+
def description=(description)
|
|
152
|
+
if !description.nil? && description.to_s.length < 1
|
|
153
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
154
154
|
end
|
|
155
155
|
|
|
156
|
-
@
|
|
156
|
+
@description = description
|
|
157
157
|
end
|
|
158
158
|
|
|
159
159
|
# Checks equality by comparing each attribute.
|
|
@@ -162,10 +162,10 @@ module PulpContainerClient
|
|
|
162
162
|
return true if self.equal?(o)
|
|
163
163
|
self.class == o.class &&
|
|
164
164
|
pulp_labels == o.pulp_labels &&
|
|
165
|
-
|
|
166
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
165
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
167
166
|
name == o.name &&
|
|
168
|
-
|
|
167
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
168
|
+
description == o.description
|
|
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
|
-
[pulp_labels,
|
|
180
|
+
[pulp_labels, manifest_signing_service, name, retain_repo_versions, description].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
|