pulp_container_client 2.27.8 → 2.28.0
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 +8 -8
- data/docs/ContainerContainerDistributionResponse.md +18 -18
- data/docs/ContainerContainerNamespace.md +3 -1
- data/docs/ContainerContainerNamespaceResponse.md +3 -1
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +18 -18
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +16 -16
- data/docs/ContainerContainerRemote.md +6 -2
- data/docs/ContainerContainerRemoteResponse.md +4 -4
- data/docs/ContainerManifestSignatureResponse.md +2 -0
- data/docs/ContentSignaturesApi.md +2 -2
- data/docs/DistributionsContainerApi.md +2 -2
- data/docs/DistributionsPullThroughApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/docs/PatchedcontainerContainerRemote.md +6 -2
- data/docs/PulpContainerNamespacesApi.md +2 -2
- data/lib/pulp_container_client/api/content_signatures_api.rb +3 -3
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +68 -68
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +85 -85
- data/lib/pulp_container_client/models/container_container_namespace.rb +15 -4
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +15 -4
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +68 -68
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +85 -85
- data/lib/pulp_container_client/models/container_container_push_repository.rb +59 -59
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +73 -73
- data/lib/pulp_container_client/models/container_container_remote.rb +29 -3
- data/lib/pulp_container_client/models/container_container_remote_response.rb +19 -19
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +14 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +61 -61
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +61 -61
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +57 -57
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +29 -3
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_signatures_api_spec.rb +1 -1
- data/spec/api/pulp_container_namespaces_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_namespace_response_spec.rb +6 -0
- data/spec/models/container_container_namespace_spec.rb +6 -0
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/container_container_push_repository_response_spec.rb +12 -12
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/container_container_remote_response_spec.rb +2 -2
- data/spec/models/container_container_remote_spec.rb +12 -0
- data/spec/models/container_manifest_signature_response_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
- metadata +59 -59
|
@@ -16,32 +16,32 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepository
|
|
19
|
-
# A unique name for this repository.
|
|
20
|
-
attr_accessor :name
|
|
21
|
-
|
|
22
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
|
23
|
-
attr_accessor :retain_repo_versions
|
|
24
|
-
|
|
25
19
|
# A reference to an associated signing service.
|
|
26
20
|
attr_accessor :manifest_signing_service
|
|
27
21
|
|
|
28
|
-
# Retain X
|
|
29
|
-
attr_accessor :
|
|
22
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
23
|
+
attr_accessor :retain_repo_versions
|
|
30
24
|
|
|
31
25
|
attr_accessor :pulp_labels
|
|
32
26
|
|
|
27
|
+
# A unique name for this repository.
|
|
28
|
+
attr_accessor :name
|
|
29
|
+
|
|
33
30
|
# An optional description.
|
|
34
31
|
attr_accessor :description
|
|
35
32
|
|
|
33
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
34
|
+
attr_accessor :retain_checkpoints
|
|
35
|
+
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
|
-
:'name' => :'name',
|
|
40
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
41
39
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
42
|
-
:'
|
|
40
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
43
41
|
:'pulp_labels' => :'pulp_labels',
|
|
44
|
-
:'
|
|
42
|
+
:'name' => :'name',
|
|
43
|
+
:'description' => :'description',
|
|
44
|
+
:'retain_checkpoints' => :'retain_checkpoints'
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -53,22 +53,22 @@ module PulpContainerClient
|
|
|
53
53
|
# Attribute type mapping.
|
|
54
54
|
def self.openapi_types
|
|
55
55
|
{
|
|
56
|
-
:'name' => :'String',
|
|
57
|
-
:'retain_repo_versions' => :'Integer',
|
|
58
56
|
:'manifest_signing_service' => :'String',
|
|
59
|
-
:'
|
|
57
|
+
:'retain_repo_versions' => :'Integer',
|
|
60
58
|
:'pulp_labels' => :'Hash<String, String>',
|
|
61
|
-
:'
|
|
59
|
+
:'name' => :'String',
|
|
60
|
+
:'description' => :'String',
|
|
61
|
+
:'retain_checkpoints' => :'Integer'
|
|
62
62
|
}
|
|
63
63
|
end
|
|
64
64
|
|
|
65
65
|
# List of attributes with nullable: true
|
|
66
66
|
def self.openapi_nullable
|
|
67
67
|
Set.new([
|
|
68
|
-
:'retain_repo_versions',
|
|
69
68
|
:'manifest_signing_service',
|
|
70
|
-
:'
|
|
71
|
-
:'description'
|
|
69
|
+
:'retain_repo_versions',
|
|
70
|
+
:'description',
|
|
71
|
+
:'retain_checkpoints'
|
|
72
72
|
])
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -87,22 +87,12 @@ module PulpContainerClient
|
|
|
87
87
|
h[k.to_sym] = v
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
if attributes.key?(:'name')
|
|
91
|
-
self.name = attributes[:'name']
|
|
92
|
-
else
|
|
93
|
-
self.name = nil
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
if attributes.key?(:'retain_repo_versions')
|
|
97
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
98
|
-
end
|
|
99
|
-
|
|
100
90
|
if attributes.key?(:'manifest_signing_service')
|
|
101
91
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
102
92
|
end
|
|
103
93
|
|
|
104
|
-
if attributes.key?(:'
|
|
105
|
-
self.
|
|
94
|
+
if attributes.key?(:'retain_repo_versions')
|
|
95
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
106
96
|
end
|
|
107
97
|
|
|
108
98
|
if attributes.key?(:'pulp_labels')
|
|
@@ -111,9 +101,19 @@ module PulpContainerClient
|
|
|
111
101
|
end
|
|
112
102
|
end
|
|
113
103
|
|
|
104
|
+
if attributes.key?(:'name')
|
|
105
|
+
self.name = attributes[:'name']
|
|
106
|
+
else
|
|
107
|
+
self.name = nil
|
|
108
|
+
end
|
|
109
|
+
|
|
114
110
|
if attributes.key?(:'description')
|
|
115
111
|
self.description = attributes[:'description']
|
|
116
112
|
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'retain_checkpoints')
|
|
115
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
116
|
+
end
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -121,6 +121,10 @@ module PulpContainerClient
|
|
|
121
121
|
def list_invalid_properties
|
|
122
122
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
123
123
|
invalid_properties = Array.new
|
|
124
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
125
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
126
|
+
end
|
|
127
|
+
|
|
124
128
|
if @name.nil?
|
|
125
129
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
126
130
|
end
|
|
@@ -129,18 +133,14 @@ module PulpContainerClient
|
|
|
129
133
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
130
134
|
end
|
|
131
135
|
|
|
132
|
-
if !@
|
|
133
|
-
invalid_properties.push('invalid value for "
|
|
136
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
137
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
134
138
|
end
|
|
135
139
|
|
|
136
140
|
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
137
141
|
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
138
142
|
end
|
|
139
143
|
|
|
140
|
-
if !@description.nil? && @description.to_s.length < 1
|
|
141
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
142
|
-
end
|
|
143
|
-
|
|
144
144
|
invalid_properties
|
|
145
145
|
end
|
|
146
146
|
|
|
@@ -148,14 +148,24 @@ module PulpContainerClient
|
|
|
148
148
|
# @return true if the model is valid
|
|
149
149
|
def valid?
|
|
150
150
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
151
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
151
152
|
return false if @name.nil?
|
|
152
153
|
return false if @name.to_s.length < 1
|
|
153
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
154
|
-
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
155
154
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
155
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
156
156
|
true
|
|
157
157
|
end
|
|
158
158
|
|
|
159
|
+
# Custom attribute writer method with validation
|
|
160
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
161
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
162
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
163
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
@retain_repo_versions = retain_repo_versions
|
|
167
|
+
end
|
|
168
|
+
|
|
159
169
|
# Custom attribute writer method with validation
|
|
160
170
|
# @param [Object] name Value to be assigned
|
|
161
171
|
def name=(name)
|
|
@@ -171,13 +181,13 @@ module PulpContainerClient
|
|
|
171
181
|
end
|
|
172
182
|
|
|
173
183
|
# Custom attribute writer method with validation
|
|
174
|
-
# @param [Object]
|
|
175
|
-
def
|
|
176
|
-
if !
|
|
177
|
-
fail ArgumentError, 'invalid value for "
|
|
184
|
+
# @param [Object] description Value to be assigned
|
|
185
|
+
def description=(description)
|
|
186
|
+
if !description.nil? && description.to_s.length < 1
|
|
187
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
178
188
|
end
|
|
179
189
|
|
|
180
|
-
@
|
|
190
|
+
@description = description
|
|
181
191
|
end
|
|
182
192
|
|
|
183
193
|
# Custom attribute writer method with validation
|
|
@@ -190,27 +200,17 @@ module PulpContainerClient
|
|
|
190
200
|
@retain_checkpoints = retain_checkpoints
|
|
191
201
|
end
|
|
192
202
|
|
|
193
|
-
# Custom attribute writer method with validation
|
|
194
|
-
# @param [Object] description Value to be assigned
|
|
195
|
-
def description=(description)
|
|
196
|
-
if !description.nil? && description.to_s.length < 1
|
|
197
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
@description = description
|
|
201
|
-
end
|
|
202
|
-
|
|
203
203
|
# Checks equality by comparing each attribute.
|
|
204
204
|
# @param [Object] Object to be compared
|
|
205
205
|
def ==(o)
|
|
206
206
|
return true if self.equal?(o)
|
|
207
207
|
self.class == o.class &&
|
|
208
|
-
name == o.name &&
|
|
209
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
210
208
|
manifest_signing_service == o.manifest_signing_service &&
|
|
211
|
-
|
|
209
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
212
210
|
pulp_labels == o.pulp_labels &&
|
|
213
|
-
|
|
211
|
+
name == o.name &&
|
|
212
|
+
description == o.description &&
|
|
213
|
+
retain_checkpoints == o.retain_checkpoints
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
# @see the `==` method
|
|
@@ -222,7 +222,7 @@ module PulpContainerClient
|
|
|
222
222
|
# Calculates hash code according to all attributes.
|
|
223
223
|
# @return [Integer] Hash code
|
|
224
224
|
def hash
|
|
225
|
-
[
|
|
225
|
+
[manifest_signing_service, retain_repo_versions, pulp_labels, name, description, retain_checkpoints].hash
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
# Builds the object from hash
|
|
@@ -16,53 +16,53 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepositoryResponse
|
|
19
|
+
# A reference to an associated signing service.
|
|
20
|
+
attr_accessor :manifest_signing_service
|
|
21
|
+
|
|
19
22
|
# The Pulp Resource Name (PRN).
|
|
20
23
|
attr_accessor :prn
|
|
21
24
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
25
|
+
# 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.
|
|
26
|
+
attr_accessor :pulp_last_updated
|
|
24
27
|
|
|
25
28
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
26
29
|
attr_accessor :retain_repo_versions
|
|
27
30
|
|
|
28
|
-
|
|
29
|
-
attr_accessor :manifest_signing_service
|
|
31
|
+
attr_accessor :pulp_labels
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
attr_accessor :pulp_created
|
|
33
|
+
attr_accessor :latest_version_href
|
|
33
34
|
|
|
34
35
|
attr_accessor :pulp_href
|
|
35
36
|
|
|
36
|
-
#
|
|
37
|
-
attr_accessor :
|
|
38
|
-
|
|
39
|
-
attr_accessor :latest_version_href
|
|
37
|
+
# A unique name for this repository.
|
|
38
|
+
attr_accessor :name
|
|
40
39
|
|
|
41
|
-
|
|
40
|
+
# An optional description.
|
|
41
|
+
attr_accessor :description
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
# Timestamp of creation.
|
|
44
|
+
attr_accessor :pulp_created
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
attr_accessor :pulp_last_updated
|
|
46
|
+
attr_accessor :versions_href
|
|
47
47
|
|
|
48
|
-
#
|
|
49
|
-
attr_accessor :
|
|
48
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
49
|
+
attr_accessor :retain_checkpoints
|
|
50
50
|
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
52
|
def self.attribute_map
|
|
53
53
|
{
|
|
54
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
54
55
|
:'prn' => :'prn',
|
|
55
|
-
:'
|
|
56
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
56
57
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
57
|
-
:'
|
|
58
|
-
:'pulp_created' => :'pulp_created',
|
|
59
|
-
:'pulp_href' => :'pulp_href',
|
|
60
|
-
:'retain_checkpoints' => :'retain_checkpoints',
|
|
58
|
+
:'pulp_labels' => :'pulp_labels',
|
|
61
59
|
:'latest_version_href' => :'latest_version_href',
|
|
60
|
+
:'pulp_href' => :'pulp_href',
|
|
61
|
+
:'name' => :'name',
|
|
62
|
+
:'description' => :'description',
|
|
63
|
+
:'pulp_created' => :'pulp_created',
|
|
62
64
|
:'versions_href' => :'versions_href',
|
|
63
|
-
:'
|
|
64
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
65
|
-
:'description' => :'description'
|
|
65
|
+
:'retain_checkpoints' => :'retain_checkpoints'
|
|
66
66
|
}
|
|
67
67
|
end
|
|
68
68
|
|
|
@@ -74,28 +74,28 @@ module PulpContainerClient
|
|
|
74
74
|
# Attribute type mapping.
|
|
75
75
|
def self.openapi_types
|
|
76
76
|
{
|
|
77
|
+
:'manifest_signing_service' => :'String',
|
|
77
78
|
:'prn' => :'String',
|
|
78
|
-
:'
|
|
79
|
+
:'pulp_last_updated' => :'Time',
|
|
79
80
|
:'retain_repo_versions' => :'Integer',
|
|
80
|
-
:'
|
|
81
|
-
:'pulp_created' => :'Time',
|
|
82
|
-
:'pulp_href' => :'String',
|
|
83
|
-
:'retain_checkpoints' => :'Integer',
|
|
81
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
84
82
|
:'latest_version_href' => :'String',
|
|
83
|
+
:'pulp_href' => :'String',
|
|
84
|
+
:'name' => :'String',
|
|
85
|
+
:'description' => :'String',
|
|
86
|
+
:'pulp_created' => :'Time',
|
|
85
87
|
:'versions_href' => :'String',
|
|
86
|
-
:'
|
|
87
|
-
:'pulp_last_updated' => :'Time',
|
|
88
|
-
:'description' => :'String'
|
|
88
|
+
:'retain_checkpoints' => :'Integer'
|
|
89
89
|
}
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
# List of attributes with nullable: true
|
|
93
93
|
def self.openapi_nullable
|
|
94
94
|
Set.new([
|
|
95
|
-
:'retain_repo_versions',
|
|
96
95
|
:'manifest_signing_service',
|
|
97
|
-
:'
|
|
98
|
-
:'description'
|
|
96
|
+
:'retain_repo_versions',
|
|
97
|
+
:'description',
|
|
98
|
+
:'retain_checkpoints'
|
|
99
99
|
])
|
|
100
100
|
end
|
|
101
101
|
|
|
@@ -114,56 +114,56 @@ module PulpContainerClient
|
|
|
114
114
|
h[k.to_sym] = v
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
if attributes.key?(:'manifest_signing_service')
|
|
118
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
119
|
+
end
|
|
120
|
+
|
|
117
121
|
if attributes.key?(:'prn')
|
|
118
122
|
self.prn = attributes[:'prn']
|
|
119
123
|
end
|
|
120
124
|
|
|
121
|
-
if attributes.key?(:'
|
|
122
|
-
self.
|
|
123
|
-
else
|
|
124
|
-
self.name = nil
|
|
125
|
+
if attributes.key?(:'pulp_last_updated')
|
|
126
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
125
127
|
end
|
|
126
128
|
|
|
127
129
|
if attributes.key?(:'retain_repo_versions')
|
|
128
130
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
129
131
|
end
|
|
130
132
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
|
|
133
|
+
if attributes.key?(:'pulp_labels')
|
|
134
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
135
|
+
self.pulp_labels = value
|
|
136
|
+
end
|
|
133
137
|
end
|
|
134
138
|
|
|
135
|
-
if attributes.key?(:'
|
|
136
|
-
self.
|
|
139
|
+
if attributes.key?(:'latest_version_href')
|
|
140
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
137
141
|
end
|
|
138
142
|
|
|
139
143
|
if attributes.key?(:'pulp_href')
|
|
140
144
|
self.pulp_href = attributes[:'pulp_href']
|
|
141
145
|
end
|
|
142
146
|
|
|
143
|
-
if attributes.key?(:'
|
|
144
|
-
self.
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
if attributes.key?(:'latest_version_href')
|
|
148
|
-
self.latest_version_href = attributes[:'latest_version_href']
|
|
147
|
+
if attributes.key?(:'name')
|
|
148
|
+
self.name = attributes[:'name']
|
|
149
|
+
else
|
|
150
|
+
self.name = nil
|
|
149
151
|
end
|
|
150
152
|
|
|
151
|
-
if attributes.key?(:'
|
|
152
|
-
self.
|
|
153
|
+
if attributes.key?(:'description')
|
|
154
|
+
self.description = attributes[:'description']
|
|
153
155
|
end
|
|
154
156
|
|
|
155
|
-
if attributes.key?(:'
|
|
156
|
-
|
|
157
|
-
self.pulp_labels = value
|
|
158
|
-
end
|
|
157
|
+
if attributes.key?(:'pulp_created')
|
|
158
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
-
if attributes.key?(:'
|
|
162
|
-
self.
|
|
161
|
+
if attributes.key?(:'versions_href')
|
|
162
|
+
self.versions_href = attributes[:'versions_href']
|
|
163
163
|
end
|
|
164
164
|
|
|
165
|
-
if attributes.key?(:'
|
|
166
|
-
self.
|
|
165
|
+
if attributes.key?(:'retain_checkpoints')
|
|
166
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
167
167
|
end
|
|
168
168
|
end
|
|
169
169
|
|
|
@@ -172,14 +172,14 @@ module PulpContainerClient
|
|
|
172
172
|
def list_invalid_properties
|
|
173
173
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
174
174
|
invalid_properties = Array.new
|
|
175
|
-
if @name.nil?
|
|
176
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
177
|
-
end
|
|
178
|
-
|
|
179
175
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
180
176
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
181
177
|
end
|
|
182
178
|
|
|
179
|
+
if @name.nil?
|
|
180
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
181
|
+
end
|
|
182
|
+
|
|
183
183
|
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
184
184
|
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
185
185
|
end
|
|
@@ -191,8 +191,8 @@ module PulpContainerClient
|
|
|
191
191
|
# @return true if the model is valid
|
|
192
192
|
def valid?
|
|
193
193
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
194
|
-
return false if @name.nil?
|
|
195
194
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
195
|
+
return false if @name.nil?
|
|
196
196
|
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
197
197
|
true
|
|
198
198
|
end
|
|
@@ -222,18 +222,18 @@ module PulpContainerClient
|
|
|
222
222
|
def ==(o)
|
|
223
223
|
return true if self.equal?(o)
|
|
224
224
|
self.class == o.class &&
|
|
225
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
225
226
|
prn == o.prn &&
|
|
226
|
-
|
|
227
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
227
228
|
retain_repo_versions == o.retain_repo_versions &&
|
|
228
|
-
|
|
229
|
-
pulp_created == o.pulp_created &&
|
|
230
|
-
pulp_href == o.pulp_href &&
|
|
231
|
-
retain_checkpoints == o.retain_checkpoints &&
|
|
229
|
+
pulp_labels == o.pulp_labels &&
|
|
232
230
|
latest_version_href == o.latest_version_href &&
|
|
231
|
+
pulp_href == o.pulp_href &&
|
|
232
|
+
name == o.name &&
|
|
233
|
+
description == o.description &&
|
|
234
|
+
pulp_created == o.pulp_created &&
|
|
233
235
|
versions_href == o.versions_href &&
|
|
234
|
-
|
|
235
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
236
|
-
description == o.description
|
|
236
|
+
retain_checkpoints == o.retain_checkpoints
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
# @see the `==` method
|
|
@@ -245,7 +245,7 @@ module PulpContainerClient
|
|
|
245
245
|
# Calculates hash code according to all attributes.
|
|
246
246
|
# @return [Integer] Hash code
|
|
247
247
|
def hash
|
|
248
|
-
[prn,
|
|
248
|
+
[manifest_signing_service, prn, pulp_last_updated, retain_repo_versions, pulp_labels, latest_version_href, pulp_href, name, description, pulp_created, versions_href, retain_checkpoints].hash
|
|
249
249
|
end
|
|
250
250
|
|
|
251
251
|
# Builds the object from hash
|
|
@@ -81,10 +81,16 @@ module PulpContainerClient
|
|
|
81
81
|
# Name of the upstream repository
|
|
82
82
|
attr_accessor :upstream_name
|
|
83
83
|
|
|
84
|
-
#
|
|
84
|
+
# A list of tags (wildcards *, ? are recognized) and/or digests (format: 'sha256:<hex>') to include during sync. 'includes' is evaluated before 'excludes'.
|
|
85
|
+
attr_accessor :includes
|
|
86
|
+
|
|
87
|
+
# A list of tag patterns to exclude during sync. Wildcards *, ? are recognized. 'excludes' is evaluated after 'includes'.
|
|
88
|
+
attr_accessor :excludes
|
|
89
|
+
|
|
90
|
+
# Deprecated. Use 'includes' instead.
|
|
85
91
|
attr_accessor :include_tags
|
|
86
92
|
|
|
87
|
-
#
|
|
93
|
+
# Deprecated. Use 'excludes' instead.
|
|
88
94
|
attr_accessor :exclude_tags
|
|
89
95
|
|
|
90
96
|
# A URL to a sigstore to download image signatures from
|
|
@@ -137,6 +143,8 @@ module PulpContainerClient
|
|
|
137
143
|
:'download_concurrency' => :'download_concurrency',
|
|
138
144
|
:'rate_limit' => :'rate_limit',
|
|
139
145
|
:'upstream_name' => :'upstream_name',
|
|
146
|
+
:'includes' => :'includes',
|
|
147
|
+
:'excludes' => :'excludes',
|
|
140
148
|
:'include_tags' => :'include_tags',
|
|
141
149
|
:'exclude_tags' => :'exclude_tags',
|
|
142
150
|
:'sigstore' => :'sigstore'
|
|
@@ -173,6 +181,8 @@ module PulpContainerClient
|
|
|
173
181
|
:'download_concurrency' => :'Integer',
|
|
174
182
|
:'rate_limit' => :'Integer',
|
|
175
183
|
:'upstream_name' => :'String',
|
|
184
|
+
:'includes' => :'Array<String>',
|
|
185
|
+
:'excludes' => :'Array<String>',
|
|
176
186
|
:'include_tags' => :'Array<String>',
|
|
177
187
|
:'exclude_tags' => :'Array<String>',
|
|
178
188
|
:'sigstore' => :'String'
|
|
@@ -197,6 +207,8 @@ module PulpContainerClient
|
|
|
197
207
|
:'sock_read_timeout',
|
|
198
208
|
:'download_concurrency',
|
|
199
209
|
:'rate_limit',
|
|
210
|
+
:'includes',
|
|
211
|
+
:'excludes',
|
|
200
212
|
:'include_tags',
|
|
201
213
|
:'exclude_tags',
|
|
202
214
|
])
|
|
@@ -315,6 +327,18 @@ module PulpContainerClient
|
|
|
315
327
|
self.upstream_name = nil
|
|
316
328
|
end
|
|
317
329
|
|
|
330
|
+
if attributes.key?(:'includes')
|
|
331
|
+
if (value = attributes[:'includes']).is_a?(Array)
|
|
332
|
+
self.includes = value
|
|
333
|
+
end
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
if attributes.key?(:'excludes')
|
|
337
|
+
if (value = attributes[:'excludes']).is_a?(Array)
|
|
338
|
+
self.excludes = value
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
|
|
318
342
|
if attributes.key?(:'include_tags')
|
|
319
343
|
if (value = attributes[:'include_tags']).is_a?(Array)
|
|
320
344
|
self.include_tags = value
|
|
@@ -660,6 +684,8 @@ module PulpContainerClient
|
|
|
660
684
|
download_concurrency == o.download_concurrency &&
|
|
661
685
|
rate_limit == o.rate_limit &&
|
|
662
686
|
upstream_name == o.upstream_name &&
|
|
687
|
+
includes == o.includes &&
|
|
688
|
+
excludes == o.excludes &&
|
|
663
689
|
include_tags == o.include_tags &&
|
|
664
690
|
exclude_tags == o.exclude_tags &&
|
|
665
691
|
sigstore == o.sigstore
|
|
@@ -674,7 +700,7 @@ module PulpContainerClient
|
|
|
674
700
|
# Calculates hash code according to all attributes.
|
|
675
701
|
# @return [Integer] Hash code
|
|
676
702
|
def hash
|
|
677
|
-
[name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, upstream_name, include_tags, exclude_tags, sigstore].hash
|
|
703
|
+
[name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, upstream_name, includes, excludes, include_tags, exclude_tags, sigstore].hash
|
|
678
704
|
end
|
|
679
705
|
|
|
680
706
|
# Builds the object from hash
|
|
@@ -80,11 +80,11 @@ module PulpContainerClient
|
|
|
80
80
|
# Name of the upstream repository
|
|
81
81
|
attr_accessor :upstream_name
|
|
82
82
|
|
|
83
|
-
#
|
|
84
|
-
attr_accessor :
|
|
83
|
+
# A list of tags (wildcards *, ? are recognized) and/or digests (format: 'sha256:<hex>') to include during sync. 'includes' is evaluated before 'excludes'.
|
|
84
|
+
attr_accessor :includes
|
|
85
85
|
|
|
86
|
-
#
|
|
87
|
-
attr_accessor :
|
|
86
|
+
# A list of tag patterns to exclude during sync. Wildcards *, ? are recognized. 'excludes' is evaluated after 'includes'.
|
|
87
|
+
attr_accessor :excludes
|
|
88
88
|
|
|
89
89
|
# A URL to a sigstore to download image signatures from
|
|
90
90
|
attr_accessor :sigstore
|
|
@@ -136,8 +136,8 @@ module PulpContainerClient
|
|
|
136
136
|
:'download_concurrency' => :'download_concurrency',
|
|
137
137
|
:'rate_limit' => :'rate_limit',
|
|
138
138
|
:'upstream_name' => :'upstream_name',
|
|
139
|
-
:'
|
|
140
|
-
:'
|
|
139
|
+
:'includes' => :'includes',
|
|
140
|
+
:'excludes' => :'excludes',
|
|
141
141
|
:'sigstore' => :'sigstore'
|
|
142
142
|
}
|
|
143
143
|
end
|
|
@@ -172,8 +172,8 @@ module PulpContainerClient
|
|
|
172
172
|
:'download_concurrency' => :'Integer',
|
|
173
173
|
:'rate_limit' => :'Integer',
|
|
174
174
|
:'upstream_name' => :'String',
|
|
175
|
-
:'
|
|
176
|
-
:'
|
|
175
|
+
:'includes' => :'Array<String>',
|
|
176
|
+
:'excludes' => :'Array<String>',
|
|
177
177
|
:'sigstore' => :'String'
|
|
178
178
|
}
|
|
179
179
|
end
|
|
@@ -191,8 +191,8 @@ module PulpContainerClient
|
|
|
191
191
|
:'sock_read_timeout',
|
|
192
192
|
:'download_concurrency',
|
|
193
193
|
:'rate_limit',
|
|
194
|
-
:'
|
|
195
|
-
:'
|
|
194
|
+
:'includes',
|
|
195
|
+
:'excludes',
|
|
196
196
|
])
|
|
197
197
|
end
|
|
198
198
|
|
|
@@ -311,15 +311,15 @@ module PulpContainerClient
|
|
|
311
311
|
self.upstream_name = nil
|
|
312
312
|
end
|
|
313
313
|
|
|
314
|
-
if attributes.key?(:'
|
|
315
|
-
if (value = attributes[:'
|
|
316
|
-
self.
|
|
314
|
+
if attributes.key?(:'includes')
|
|
315
|
+
if (value = attributes[:'includes']).is_a?(Array)
|
|
316
|
+
self.includes = value
|
|
317
317
|
end
|
|
318
318
|
end
|
|
319
319
|
|
|
320
|
-
if attributes.key?(:'
|
|
321
|
-
if (value = attributes[:'
|
|
322
|
-
self.
|
|
320
|
+
if attributes.key?(:'excludes')
|
|
321
|
+
if (value = attributes[:'excludes']).is_a?(Array)
|
|
322
|
+
self.excludes = value
|
|
323
323
|
end
|
|
324
324
|
end
|
|
325
325
|
|
|
@@ -460,8 +460,8 @@ module PulpContainerClient
|
|
|
460
460
|
download_concurrency == o.download_concurrency &&
|
|
461
461
|
rate_limit == o.rate_limit &&
|
|
462
462
|
upstream_name == o.upstream_name &&
|
|
463
|
-
|
|
464
|
-
|
|
463
|
+
includes == o.includes &&
|
|
464
|
+
excludes == o.excludes &&
|
|
465
465
|
sigstore == o.sigstore
|
|
466
466
|
end
|
|
467
467
|
|
|
@@ -474,7 +474,7 @@ module PulpContainerClient
|
|
|
474
474
|
# Calculates hash code according to all attributes.
|
|
475
475
|
# @return [Integer] Hash code
|
|
476
476
|
def hash
|
|
477
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, name, url, pulp_labels, policy, hidden_fields, ca_cert, client_cert, tls_validation, proxy_url, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, upstream_name,
|
|
477
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, name, url, pulp_labels, policy, hidden_fields, ca_cert, client_cert, tls_validation, proxy_url, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, upstream_name, includes, excludes, sigstore].hash
|
|
478
478
|
end
|
|
479
479
|
|
|
480
480
|
# Builds the object from hash
|