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