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