pulp_container_client 2.15.0 → 2.15.2
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 +4 -4
- data/docs/ContainerContainerDistribution.md +4 -2
- data/docs/ContainerContainerDistributionResponse.md +9 -7
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- data/docs/ContentManifestsApi.md +2 -2
- data/docs/ContentTagsApi.md +2 -2
- data/docs/DistributionsContainerApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +4 -2
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/api/content_manifests_api.rb +2 -2
- data/lib/pulp_container_client/api/content_tags_api.rb +2 -2
- data/lib/pulp_container_client/api/distributions_container_api.rb +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +20 -8
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +36 -24
- data/lib/pulp_container_client/models/container_container_push_repository.rb +42 -42
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +57 -57
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +20 -8
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_manifests_api_spec.rb +1 -1
- data/spec/api/content_tags_api_spec.rb +1 -1
- data/spec/api/distributions_container_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +12 -6
- data/spec/models/container_container_distribution_spec.rb +7 -1
- 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 +7 -1
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +47 -47
|
@@ -18,25 +18,25 @@ module PulpContainerClient
|
|
|
18
18
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
19
19
|
attr_accessor :retain_repo_versions
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
attr_accessor :description
|
|
23
|
-
|
|
24
|
-
# A unique name for this repository.
|
|
25
|
-
attr_accessor :name
|
|
21
|
+
attr_accessor :pulp_labels
|
|
26
22
|
|
|
27
23
|
# A reference to an associated signing service.
|
|
28
24
|
attr_accessor :manifest_signing_service
|
|
29
25
|
|
|
30
|
-
|
|
26
|
+
# A unique name for this repository.
|
|
27
|
+
attr_accessor :name
|
|
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
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
36
|
-
:'
|
|
37
|
-
:'name' => :'name',
|
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
|
38
37
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
39
|
-
:'
|
|
38
|
+
:'name' => :'name',
|
|
39
|
+
:'description' => :'description'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
@@ -44,10 +44,10 @@ module PulpContainerClient
|
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
46
|
:'retain_repo_versions' => :'Integer',
|
|
47
|
-
:'
|
|
48
|
-
:'name' => :'String',
|
|
47
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
49
48
|
:'manifest_signing_service' => :'String',
|
|
50
|
-
:'
|
|
49
|
+
:'name' => :'String',
|
|
50
|
+
:'description' => :'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
|
:'retain_repo_versions',
|
|
58
|
-
:'description',
|
|
59
58
|
:'manifest_signing_service',
|
|
59
|
+
:'description'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -79,22 +79,22 @@ module PulpContainerClient
|
|
|
79
79
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
80
80
|
end
|
|
81
81
|
|
|
82
|
-
if attributes.key?(:'
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
if attributes.key?(:'name')
|
|
87
|
-
self.name = attributes[:'name']
|
|
82
|
+
if attributes.key?(:'pulp_labels')
|
|
83
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
84
|
+
self.pulp_labels = value
|
|
85
|
+
end
|
|
88
86
|
end
|
|
89
87
|
|
|
90
88
|
if attributes.key?(:'manifest_signing_service')
|
|
91
89
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
92
90
|
end
|
|
93
91
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
if attributes.key?(:'name')
|
|
93
|
+
self.name = attributes[:'name']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'description')
|
|
97
|
+
self.description = attributes[:'description']
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -106,10 +106,6 @@ module PulpContainerClient
|
|
|
106
106
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
-
if !@description.nil? && @description.to_s.length < 1
|
|
110
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
111
|
-
end
|
|
112
|
-
|
|
113
109
|
if @name.nil?
|
|
114
110
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
115
111
|
end
|
|
@@ -118,6 +114,10 @@ module PulpContainerClient
|
|
|
118
114
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
119
115
|
end
|
|
120
116
|
|
|
117
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
118
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
119
|
+
end
|
|
120
|
+
|
|
121
121
|
invalid_properties
|
|
122
122
|
end
|
|
123
123
|
|
|
@@ -125,9 +125,9 @@ module PulpContainerClient
|
|
|
125
125
|
# @return true if the model is valid
|
|
126
126
|
def valid?
|
|
127
127
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
128
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
129
128
|
return false if @name.nil?
|
|
130
129
|
return false if @name.to_s.length < 1
|
|
130
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
131
131
|
true
|
|
132
132
|
end
|
|
133
133
|
|
|
@@ -141,16 +141,6 @@ module PulpContainerClient
|
|
|
141
141
|
@retain_repo_versions = retain_repo_versions
|
|
142
142
|
end
|
|
143
143
|
|
|
144
|
-
# Custom attribute writer method with validation
|
|
145
|
-
# @param [Object] description Value to be assigned
|
|
146
|
-
def description=(description)
|
|
147
|
-
if !description.nil? && description.to_s.length < 1
|
|
148
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
@description = description
|
|
152
|
-
end
|
|
153
|
-
|
|
154
144
|
# Custom attribute writer method with validation
|
|
155
145
|
# @param [Object] name Value to be assigned
|
|
156
146
|
def name=(name)
|
|
@@ -165,16 +155,26 @@ module PulpContainerClient
|
|
|
165
155
|
@name = name
|
|
166
156
|
end
|
|
167
157
|
|
|
158
|
+
# Custom attribute writer method with validation
|
|
159
|
+
# @param [Object] description Value to be assigned
|
|
160
|
+
def description=(description)
|
|
161
|
+
if !description.nil? && description.to_s.length < 1
|
|
162
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
@description = description
|
|
166
|
+
end
|
|
167
|
+
|
|
168
168
|
# Checks equality by comparing each attribute.
|
|
169
169
|
# @param [Object] Object to be compared
|
|
170
170
|
def ==(o)
|
|
171
171
|
return true if self.equal?(o)
|
|
172
172
|
self.class == o.class &&
|
|
173
173
|
retain_repo_versions == o.retain_repo_versions &&
|
|
174
|
-
|
|
175
|
-
name == o.name &&
|
|
174
|
+
pulp_labels == o.pulp_labels &&
|
|
176
175
|
manifest_signing_service == o.manifest_signing_service &&
|
|
177
|
-
|
|
176
|
+
name == o.name &&
|
|
177
|
+
description == o.description
|
|
178
178
|
end
|
|
179
179
|
|
|
180
180
|
# @see the `==` method
|
|
@@ -186,7 +186,7 @@ module PulpContainerClient
|
|
|
186
186
|
# Calculates hash code according to all attributes.
|
|
187
187
|
# @return [Integer] Hash code
|
|
188
188
|
def hash
|
|
189
|
-
[retain_repo_versions,
|
|
189
|
+
[retain_repo_versions, pulp_labels, manifest_signing_service, name, description].hash
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
# Builds the object from hash
|
|
@@ -15,56 +15,56 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
|
18
|
-
attr_accessor :versions_href
|
|
19
|
-
|
|
20
|
-
# Timestamp of creation.
|
|
21
|
-
attr_accessor :pulp_created
|
|
22
|
-
|
|
23
|
-
attr_accessor :pulp_href
|
|
24
|
-
|
|
25
|
-
attr_accessor :latest_version_href
|
|
26
|
-
|
|
27
18
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
19
|
attr_accessor :retain_repo_versions
|
|
29
20
|
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
attr_accessor :pulp_labels
|
|
22
|
+
|
|
23
|
+
# A reference to an associated signing service.
|
|
24
|
+
attr_accessor :manifest_signing_service
|
|
32
25
|
|
|
33
26
|
# A unique name for this repository.
|
|
34
27
|
attr_accessor :name
|
|
35
28
|
|
|
36
|
-
|
|
37
|
-
attr_accessor :manifest_signing_service
|
|
29
|
+
attr_accessor :versions_href
|
|
38
30
|
|
|
39
|
-
attr_accessor :
|
|
31
|
+
attr_accessor :latest_version_href
|
|
32
|
+
|
|
33
|
+
attr_accessor :pulp_href
|
|
34
|
+
|
|
35
|
+
# Timestamp of creation.
|
|
36
|
+
attr_accessor :pulp_created
|
|
37
|
+
|
|
38
|
+
# An optional description.
|
|
39
|
+
attr_accessor :description
|
|
40
40
|
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
42
|
def self.attribute_map
|
|
43
43
|
{
|
|
44
|
-
:'versions_href' => :'versions_href',
|
|
45
|
-
:'pulp_created' => :'pulp_created',
|
|
46
|
-
:'pulp_href' => :'pulp_href',
|
|
47
|
-
:'latest_version_href' => :'latest_version_href',
|
|
48
44
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
49
|
-
:'
|
|
50
|
-
:'name' => :'name',
|
|
45
|
+
:'pulp_labels' => :'pulp_labels',
|
|
51
46
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
52
|
-
:'
|
|
47
|
+
:'name' => :'name',
|
|
48
|
+
:'versions_href' => :'versions_href',
|
|
49
|
+
:'latest_version_href' => :'latest_version_href',
|
|
50
|
+
:'pulp_href' => :'pulp_href',
|
|
51
|
+
:'pulp_created' => :'pulp_created',
|
|
52
|
+
:'description' => :'description'
|
|
53
53
|
}
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
# Attribute type mapping.
|
|
57
57
|
def self.openapi_types
|
|
58
58
|
{
|
|
59
|
-
:'versions_href' => :'String',
|
|
60
|
-
:'pulp_created' => :'DateTime',
|
|
61
|
-
:'pulp_href' => :'String',
|
|
62
|
-
:'latest_version_href' => :'String',
|
|
63
59
|
:'retain_repo_versions' => :'Integer',
|
|
64
|
-
:'
|
|
65
|
-
:'name' => :'String',
|
|
60
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
66
61
|
:'manifest_signing_service' => :'String',
|
|
67
|
-
:'
|
|
62
|
+
:'name' => :'String',
|
|
63
|
+
:'versions_href' => :'String',
|
|
64
|
+
:'latest_version_href' => :'String',
|
|
65
|
+
:'pulp_href' => :'String',
|
|
66
|
+
:'pulp_created' => :'DateTime',
|
|
67
|
+
:'description' => :'String'
|
|
68
68
|
}
|
|
69
69
|
end
|
|
70
70
|
|
|
@@ -72,8 +72,8 @@ module PulpContainerClient
|
|
|
72
72
|
def self.openapi_nullable
|
|
73
73
|
Set.new([
|
|
74
74
|
:'retain_repo_versions',
|
|
75
|
-
:'description',
|
|
76
75
|
:'manifest_signing_service',
|
|
76
|
+
:'description'
|
|
77
77
|
])
|
|
78
78
|
end
|
|
79
79
|
|
|
@@ -92,42 +92,42 @@ module PulpContainerClient
|
|
|
92
92
|
h[k.to_sym] = v
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
if attributes.key?(:'
|
|
96
|
-
self.
|
|
95
|
+
if attributes.key?(:'retain_repo_versions')
|
|
96
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
-
if attributes.key?(:'
|
|
100
|
-
|
|
99
|
+
if attributes.key?(:'pulp_labels')
|
|
100
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
101
|
+
self.pulp_labels = value
|
|
102
|
+
end
|
|
101
103
|
end
|
|
102
104
|
|
|
103
|
-
if attributes.key?(:'
|
|
104
|
-
self.
|
|
105
|
+
if attributes.key?(:'manifest_signing_service')
|
|
106
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
105
107
|
end
|
|
106
108
|
|
|
107
|
-
if attributes.key?(:'
|
|
108
|
-
self.
|
|
109
|
+
if attributes.key?(:'name')
|
|
110
|
+
self.name = attributes[:'name']
|
|
109
111
|
end
|
|
110
112
|
|
|
111
|
-
if attributes.key?(:'
|
|
112
|
-
self.
|
|
113
|
+
if attributes.key?(:'versions_href')
|
|
114
|
+
self.versions_href = attributes[:'versions_href']
|
|
113
115
|
end
|
|
114
116
|
|
|
115
|
-
if attributes.key?(:'
|
|
116
|
-
self.
|
|
117
|
+
if attributes.key?(:'latest_version_href')
|
|
118
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
117
119
|
end
|
|
118
120
|
|
|
119
|
-
if attributes.key?(:'
|
|
120
|
-
self.
|
|
121
|
+
if attributes.key?(:'pulp_href')
|
|
122
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
121
123
|
end
|
|
122
124
|
|
|
123
|
-
if attributes.key?(:'
|
|
124
|
-
self.
|
|
125
|
+
if attributes.key?(:'pulp_created')
|
|
126
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
125
127
|
end
|
|
126
128
|
|
|
127
|
-
if attributes.key?(:'
|
|
128
|
-
|
|
129
|
-
self.pulp_labels = value
|
|
130
|
-
end
|
|
129
|
+
if attributes.key?(:'description')
|
|
130
|
+
self.description = attributes[:'description']
|
|
131
131
|
end
|
|
132
132
|
end
|
|
133
133
|
|
|
@@ -169,15 +169,15 @@ module PulpContainerClient
|
|
|
169
169
|
def ==(o)
|
|
170
170
|
return true if self.equal?(o)
|
|
171
171
|
self.class == o.class &&
|
|
172
|
-
versions_href == o.versions_href &&
|
|
173
|
-
pulp_created == o.pulp_created &&
|
|
174
|
-
pulp_href == o.pulp_href &&
|
|
175
|
-
latest_version_href == o.latest_version_href &&
|
|
176
172
|
retain_repo_versions == o.retain_repo_versions &&
|
|
177
|
-
|
|
178
|
-
name == o.name &&
|
|
173
|
+
pulp_labels == o.pulp_labels &&
|
|
179
174
|
manifest_signing_service == o.manifest_signing_service &&
|
|
180
|
-
|
|
175
|
+
name == o.name &&
|
|
176
|
+
versions_href == o.versions_href &&
|
|
177
|
+
latest_version_href == o.latest_version_href &&
|
|
178
|
+
pulp_href == o.pulp_href &&
|
|
179
|
+
pulp_created == o.pulp_created &&
|
|
180
|
+
description == o.description
|
|
181
181
|
end
|
|
182
182
|
|
|
183
183
|
# @see the `==` method
|
|
@@ -189,7 +189,7 @@ module PulpContainerClient
|
|
|
189
189
|
# Calculates hash code according to all attributes.
|
|
190
190
|
# @return [Integer] Hash code
|
|
191
191
|
def hash
|
|
192
|
-
[
|
|
192
|
+
[retain_repo_versions, pulp_labels, manifest_signing_service, name, versions_href, latest_version_href, pulp_href, pulp_created, description].hash
|
|
193
193
|
end
|
|
194
194
|
|
|
195
195
|
# Builds the object from hash
|
|
@@ -17,14 +17,17 @@ module PulpContainerClient
|
|
|
17
17
|
class PatchedcontainerContainerDistribution
|
|
18
18
|
attr_accessor :pulp_labels
|
|
19
19
|
|
|
20
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
21
|
+
attr_accessor :content_guard
|
|
22
|
+
|
|
20
23
|
# The latest RepositoryVersion for this Repository will be served.
|
|
21
24
|
attr_accessor :repository
|
|
22
25
|
|
|
23
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
24
27
|
attr_accessor :name
|
|
25
28
|
|
|
26
|
-
#
|
|
27
|
-
attr_accessor :
|
|
29
|
+
# Whether this distribution should be shown in the content app.
|
|
30
|
+
attr_accessor :hidden
|
|
28
31
|
|
|
29
32
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
30
33
|
attr_accessor :base_path
|
|
@@ -42,9 +45,10 @@ module PulpContainerClient
|
|
|
42
45
|
def self.attribute_map
|
|
43
46
|
{
|
|
44
47
|
:'pulp_labels' => :'pulp_labels',
|
|
48
|
+
:'content_guard' => :'content_guard',
|
|
45
49
|
:'repository' => :'repository',
|
|
46
50
|
:'name' => :'name',
|
|
47
|
-
:'
|
|
51
|
+
:'hidden' => :'hidden',
|
|
48
52
|
:'base_path' => :'base_path',
|
|
49
53
|
:'repository_version' => :'repository_version',
|
|
50
54
|
:'private' => :'private',
|
|
@@ -56,9 +60,10 @@ module PulpContainerClient
|
|
|
56
60
|
def self.openapi_types
|
|
57
61
|
{
|
|
58
62
|
:'pulp_labels' => :'Hash<String, String>',
|
|
63
|
+
:'content_guard' => :'String',
|
|
59
64
|
:'repository' => :'String',
|
|
60
65
|
:'name' => :'String',
|
|
61
|
-
:'
|
|
66
|
+
:'hidden' => :'Boolean',
|
|
62
67
|
:'base_path' => :'String',
|
|
63
68
|
:'repository_version' => :'String',
|
|
64
69
|
:'private' => :'Boolean',
|
|
@@ -96,6 +101,10 @@ module PulpContainerClient
|
|
|
96
101
|
end
|
|
97
102
|
end
|
|
98
103
|
|
|
104
|
+
if attributes.key?(:'content_guard')
|
|
105
|
+
self.content_guard = attributes[:'content_guard']
|
|
106
|
+
end
|
|
107
|
+
|
|
99
108
|
if attributes.key?(:'repository')
|
|
100
109
|
self.repository = attributes[:'repository']
|
|
101
110
|
end
|
|
@@ -104,8 +113,10 @@ module PulpContainerClient
|
|
|
104
113
|
self.name = attributes[:'name']
|
|
105
114
|
end
|
|
106
115
|
|
|
107
|
-
if attributes.key?(:'
|
|
108
|
-
self.
|
|
116
|
+
if attributes.key?(:'hidden')
|
|
117
|
+
self.hidden = attributes[:'hidden']
|
|
118
|
+
else
|
|
119
|
+
self.hidden = false
|
|
109
120
|
end
|
|
110
121
|
|
|
111
122
|
if attributes.key?(:'base_path')
|
|
@@ -189,9 +200,10 @@ module PulpContainerClient
|
|
|
189
200
|
return true if self.equal?(o)
|
|
190
201
|
self.class == o.class &&
|
|
191
202
|
pulp_labels == o.pulp_labels &&
|
|
203
|
+
content_guard == o.content_guard &&
|
|
192
204
|
repository == o.repository &&
|
|
193
205
|
name == o.name &&
|
|
194
|
-
|
|
206
|
+
hidden == o.hidden &&
|
|
195
207
|
base_path == o.base_path &&
|
|
196
208
|
repository_version == o.repository_version &&
|
|
197
209
|
private == o.private &&
|
|
@@ -207,7 +219,7 @@ module PulpContainerClient
|
|
|
207
219
|
# Calculates hash code according to all attributes.
|
|
208
220
|
# @return [Integer] Hash code
|
|
209
221
|
def hash
|
|
210
|
-
[pulp_labels, repository, name,
|
|
222
|
+
[pulp_labels, content_guard, repository, name, hidden, base_path, repository_version, private, description].hash
|
|
211
223
|
end
|
|
212
224
|
|
|
213
225
|
# Builds the object from hash
|
|
@@ -18,25 +18,25 @@ module PulpContainerClient
|
|
|
18
18
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
19
19
|
attr_accessor :retain_repo_versions
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
attr_accessor :description
|
|
23
|
-
|
|
24
|
-
# A unique name for this repository.
|
|
25
|
-
attr_accessor :name
|
|
21
|
+
attr_accessor :pulp_labels
|
|
26
22
|
|
|
27
23
|
# A reference to an associated signing service.
|
|
28
24
|
attr_accessor :manifest_signing_service
|
|
29
25
|
|
|
30
|
-
|
|
26
|
+
# A unique name for this repository.
|
|
27
|
+
attr_accessor :name
|
|
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
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
36
|
-
:'
|
|
37
|
-
:'name' => :'name',
|
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
|
38
37
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
39
|
-
:'
|
|
38
|
+
:'name' => :'name',
|
|
39
|
+
:'description' => :'description'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
@@ -44,10 +44,10 @@ module PulpContainerClient
|
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
46
|
:'retain_repo_versions' => :'Integer',
|
|
47
|
-
:'
|
|
48
|
-
:'name' => :'String',
|
|
47
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
49
48
|
:'manifest_signing_service' => :'String',
|
|
50
|
-
:'
|
|
49
|
+
:'name' => :'String',
|
|
50
|
+
:'description' => :'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
|
:'retain_repo_versions',
|
|
58
|
-
:'description',
|
|
59
58
|
:'manifest_signing_service',
|
|
59
|
+
:'description'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -79,22 +79,22 @@ module PulpContainerClient
|
|
|
79
79
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
80
80
|
end
|
|
81
81
|
|
|
82
|
-
if attributes.key?(:'
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
if attributes.key?(:'name')
|
|
87
|
-
self.name = attributes[:'name']
|
|
82
|
+
if attributes.key?(:'pulp_labels')
|
|
83
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
84
|
+
self.pulp_labels = value
|
|
85
|
+
end
|
|
88
86
|
end
|
|
89
87
|
|
|
90
88
|
if attributes.key?(:'manifest_signing_service')
|
|
91
89
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
92
90
|
end
|
|
93
91
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
if attributes.key?(:'name')
|
|
93
|
+
self.name = attributes[:'name']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'description')
|
|
97
|
+
self.description = attributes[:'description']
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -106,14 +106,14 @@ module PulpContainerClient
|
|
|
106
106
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
-
if !@description.nil? && @description.to_s.length < 1
|
|
110
|
-
invalid_properties.push('invalid value for "description", the character length must be great 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 !@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
|
+
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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
124
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
125
124
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
125
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
126
126
|
true
|
|
127
127
|
end
|
|
128
128
|
|
|
@@ -136,16 +136,6 @@ module PulpContainerClient
|
|
|
136
136
|
@retain_repo_versions = retain_repo_versions
|
|
137
137
|
end
|
|
138
138
|
|
|
139
|
-
# Custom attribute writer method with validation
|
|
140
|
-
# @param [Object] description Value to be assigned
|
|
141
|
-
def description=(description)
|
|
142
|
-
if !description.nil? && description.to_s.length < 1
|
|
143
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
@description = description
|
|
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] 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
|
+
end
|
|
155
|
+
|
|
156
|
+
@description = description
|
|
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
164
|
retain_repo_versions == o.retain_repo_versions &&
|
|
165
|
-
|
|
166
|
-
name == o.name &&
|
|
165
|
+
pulp_labels == o.pulp_labels &&
|
|
167
166
|
manifest_signing_service == o.manifest_signing_service &&
|
|
168
|
-
|
|
167
|
+
name == o.name &&
|
|
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
|
-
[retain_repo_versions,
|
|
180
|
+
[retain_repo_versions, pulp_labels, manifest_signing_service, name, description].hash
|
|
181
181
|
end
|
|
182
182
|
|
|
183
183
|
# Builds the object from hash
|
|
@@ -39,7 +39,7 @@ describe 'ContentManifestsApi' do
|
|
|
39
39
|
# @option opts [String] :digest Filter results where digest matches value
|
|
40
40
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
41
41
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
42
|
-
# @option opts [Array<String>] :media_type * `application/vnd.docker.distribution.manifest.v1+json` - application/vnd.docker.distribution.manifest.v1+json * `application/vnd.docker.distribution.manifest.v2+json` - application/vnd.docker.distribution.manifest.v2+json * `application/vnd.docker.distribution.manifest.list.v2+json` - application/vnd.docker.distribution.manifest.list.v2+json * `application/vnd.oci.image.manifest.v1+json` - application/vnd.oci.image.manifest.v1+json * `application/vnd.oci.image.index.v1+json` - application/vnd.oci.image.index.v1+json
|
|
42
|
+
# @option opts [Array<String>] :media_type * `application/vnd.docker.distribution.manifest.v1+json` - application/vnd.docker.distribution.manifest.v1+json * `application/vnd.docker.distribution.manifest.v2+json` - application/vnd.docker.distribution.manifest.v2+json * `application/vnd.docker.distribution.manifest.list.v2+json` - application/vnd.docker.distribution.manifest.list.v2+json * `application/vnd.oci.image.manifest.v1+json` - application/vnd.oci.image.manifest.v1+json * `application/vnd.oci.image.index.v1+json` - application/vnd.oci.image.index.v1+json
|
|
43
43
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
44
44
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `digest` - Digest * `-digest` - Digest (descending) * `schema_version` - Schema version * `-schema_version` - Schema version (descending) * `media_type` - Media type * `-media_type` - Media type (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
45
45
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
@@ -38,7 +38,7 @@ describe 'ContentTagsApi' do
|
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [Array<String>] :digest Multiple values may be separated by commas.
|
|
40
40
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
41
|
-
# @option opts [Array<String>] :media_type * `application/vnd.docker.distribution.manifest.v1+json` - application/vnd.docker.distribution.manifest.v1+json * `application/vnd.docker.distribution.manifest.v2+json` - application/vnd.docker.distribution.manifest.v2+json * `application/vnd.docker.distribution.manifest.list.v2+json` - application/vnd.docker.distribution.manifest.list.v2+json * `application/vnd.oci.image.manifest.v1+json` - application/vnd.oci.image.manifest.v1+json * `application/vnd.oci.image.index.v1+json` - application/vnd.oci.image.index.v1+json
|
|
41
|
+
# @option opts [Array<String>] :media_type * `application/vnd.docker.distribution.manifest.v1+json` - application/vnd.docker.distribution.manifest.v1+json * `application/vnd.docker.distribution.manifest.v2+json` - application/vnd.docker.distribution.manifest.v2+json * `application/vnd.docker.distribution.manifest.list.v2+json` - application/vnd.docker.distribution.manifest.list.v2+json * `application/vnd.oci.image.manifest.v1+json` - application/vnd.oci.image.manifest.v1+json * `application/vnd.oci.image.index.v1+json` - application/vnd.oci.image.index.v1+json
|
|
42
42
|
# @option opts [String] :name Filter results where name matches value
|
|
43
43
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
44
44
|
# @option opts [Integer] :offset The initial index from which to return the results.
|