pulp_container_client 2.27.10 → 2.27.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +14 -14
- data/docs/ContainerContainerPullThroughDistribution.md +7 -7
- data/docs/ContainerContainerPullThroughDistributionResponse.md +15 -15
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +17 -17
- data/docs/DistributionsPullThroughApi.md +10 -10
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +4 -8
- data/lib/pulp_container_client/models/container_container_distribution.rb +28 -28
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +59 -59
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +29 -29
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +60 -60
- 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 +79 -79
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +26 -26
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +27 -27
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +54 -54
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/distributions_pull_through_api_spec.rb +2 -4
- data/spec/models/container_container_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
- 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/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +62 -62
|
@@ -16,32 +16,32 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepository
|
|
19
|
+
# An optional description.
|
|
20
|
+
attr_accessor :description
|
|
21
|
+
|
|
19
22
|
# A reference to an associated signing service.
|
|
20
23
|
attr_accessor :manifest_signing_service
|
|
21
24
|
|
|
22
|
-
attr_accessor :pulp_labels
|
|
23
|
-
|
|
24
25
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
25
26
|
attr_accessor :retain_repo_versions
|
|
26
27
|
|
|
27
|
-
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
28
|
-
attr_accessor :retain_checkpoints
|
|
29
|
-
|
|
30
28
|
# A unique name for this repository.
|
|
31
29
|
attr_accessor :name
|
|
32
30
|
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
attr_accessor :pulp_labels
|
|
32
|
+
|
|
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
|
+
:'description' => :'description',
|
|
39
40
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
40
|
-
:'pulp_labels' => :'pulp_labels',
|
|
41
41
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
42
|
-
:'retain_checkpoints' => :'retain_checkpoints',
|
|
43
42
|
:'name' => :'name',
|
|
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
|
+
:'description' => :'String',
|
|
56
57
|
:'manifest_signing_service' => :'String',
|
|
57
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
58
58
|
:'retain_repo_versions' => :'Integer',
|
|
59
|
-
:'retain_checkpoints' => :'Integer',
|
|
60
59
|
:'name' => :'String',
|
|
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
|
+
:'description',
|
|
68
69
|
:'manifest_signing_service',
|
|
69
70
|
:'retain_repo_versions',
|
|
70
|
-
:'retain_checkpoints'
|
|
71
|
-
:'description'
|
|
71
|
+
:'retain_checkpoints'
|
|
72
72
|
])
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -87,32 +87,32 @@ module PulpContainerClient
|
|
|
87
87
|
h[k.to_sym] = v
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
if attributes.key?(:'
|
|
91
|
-
self.
|
|
90
|
+
if attributes.key?(:'description')
|
|
91
|
+
self.description = attributes[:'description']
|
|
92
92
|
end
|
|
93
93
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
|
|
96
|
-
self.pulp_labels = value
|
|
97
|
-
end
|
|
94
|
+
if attributes.key?(:'manifest_signing_service')
|
|
95
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
98
96
|
end
|
|
99
97
|
|
|
100
98
|
if attributes.key?(:'retain_repo_versions')
|
|
101
99
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
102
100
|
end
|
|
103
101
|
|
|
104
|
-
if attributes.key?(:'retain_checkpoints')
|
|
105
|
-
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
106
|
-
end
|
|
107
|
-
|
|
108
102
|
if attributes.key?(:'name')
|
|
109
103
|
self.name = attributes[:'name']
|
|
110
104
|
else
|
|
111
105
|
self.name = nil
|
|
112
106
|
end
|
|
113
107
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
|
|
108
|
+
if attributes.key?(:'pulp_labels')
|
|
109
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
110
|
+
self.pulp_labels = value
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'retain_checkpoints')
|
|
115
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
@@ -121,12 +121,12 @@ 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 !@
|
|
125
|
-
invalid_properties.push('invalid value for "
|
|
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
126
|
end
|
|
127
127
|
|
|
128
|
-
if !@
|
|
129
|
-
invalid_properties.push('invalid value for "
|
|
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
130
|
end
|
|
131
131
|
|
|
132
132
|
if @name.nil?
|
|
@@ -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 !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
141
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
invalid_properties
|
|
@@ -148,32 +148,32 @@ 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
|
|
151
152
|
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 !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
156
156
|
true
|
|
157
157
|
end
|
|
158
158
|
|
|
159
159
|
# Custom attribute writer method with validation
|
|
160
|
-
# @param [Object]
|
|
161
|
-
def
|
|
162
|
-
if !
|
|
163
|
-
fail ArgumentError, 'invalid value for "
|
|
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
164
|
end
|
|
165
165
|
|
|
166
|
-
@
|
|
166
|
+
@description = description
|
|
167
167
|
end
|
|
168
168
|
|
|
169
169
|
# Custom attribute writer method with validation
|
|
170
|
-
# @param [Object]
|
|
171
|
-
def
|
|
172
|
-
if !
|
|
173
|
-
fail ArgumentError, 'invalid value for "
|
|
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
174
|
end
|
|
175
175
|
|
|
176
|
-
@
|
|
176
|
+
@retain_repo_versions = retain_repo_versions
|
|
177
177
|
end
|
|
178
178
|
|
|
179
179
|
# Custom attribute writer method with validation
|
|
@@ -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] 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
198
|
end
|
|
199
199
|
|
|
200
|
-
@
|
|
200
|
+
@retain_checkpoints = retain_checkpoints
|
|
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 &&
|
|
208
209
|
manifest_signing_service == o.manifest_signing_service &&
|
|
209
|
-
pulp_labels == o.pulp_labels &&
|
|
210
210
|
retain_repo_versions == o.retain_repo_versions &&
|
|
211
|
-
retain_checkpoints == o.retain_checkpoints &&
|
|
212
211
|
name == o.name &&
|
|
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
|
+
[description, manifest_signing_service, retain_repo_versions, name, pulp_labels, 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
|
+
attr_accessor :pulp_href
|
|
20
|
+
|
|
21
|
+
# Timestamp of creation.
|
|
22
|
+
attr_accessor :pulp_created
|
|
23
|
+
|
|
24
|
+
attr_accessor :versions_href
|
|
25
|
+
|
|
26
|
+
# The Pulp Resource Name (PRN).
|
|
27
|
+
attr_accessor :prn
|
|
28
|
+
|
|
29
|
+
# An optional description.
|
|
30
|
+
attr_accessor :description
|
|
31
|
+
|
|
19
32
|
# A reference to an associated signing service.
|
|
20
33
|
attr_accessor :manifest_signing_service
|
|
21
34
|
|
|
22
|
-
attr_accessor :pulp_labels
|
|
23
|
-
|
|
24
35
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
25
36
|
attr_accessor :retain_repo_versions
|
|
26
37
|
|
|
27
|
-
attr_accessor :
|
|
28
|
-
|
|
29
|
-
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
30
|
-
attr_accessor :retain_checkpoints
|
|
38
|
+
attr_accessor :latest_version_href
|
|
31
39
|
|
|
32
40
|
# A unique name for this repository.
|
|
33
41
|
attr_accessor :name
|
|
34
42
|
|
|
35
|
-
|
|
36
|
-
attr_accessor :prn
|
|
43
|
+
attr_accessor :pulp_labels
|
|
37
44
|
|
|
38
|
-
#
|
|
39
|
-
attr_accessor :
|
|
45
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
46
|
+
attr_accessor :retain_checkpoints
|
|
40
47
|
|
|
41
48
|
# 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.
|
|
42
49
|
attr_accessor :pulp_last_updated
|
|
43
50
|
|
|
44
|
-
attr_accessor :latest_version_href
|
|
45
|
-
|
|
46
|
-
attr_accessor :versions_href
|
|
47
|
-
|
|
48
|
-
# An optional description.
|
|
49
|
-
attr_accessor :description
|
|
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',
|
|
55
|
-
:'pulp_labels' => :'pulp_labels',
|
|
56
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
57
54
|
:'pulp_href' => :'pulp_href',
|
|
58
|
-
:'retain_checkpoints' => :'retain_checkpoints',
|
|
59
|
-
:'name' => :'name',
|
|
60
|
-
:'prn' => :'prn',
|
|
61
55
|
:'pulp_created' => :'pulp_created',
|
|
62
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
63
|
-
:'latest_version_href' => :'latest_version_href',
|
|
64
56
|
:'versions_href' => :'versions_href',
|
|
65
|
-
:'
|
|
57
|
+
:'prn' => :'prn',
|
|
58
|
+
:'description' => :'description',
|
|
59
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
60
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
61
|
+
:'latest_version_href' => :'latest_version_href',
|
|
62
|
+
:'name' => :'name',
|
|
63
|
+
:'pulp_labels' => :'pulp_labels',
|
|
64
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
65
|
+
:'pulp_last_updated' => :'pulp_last_updated'
|
|
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',
|
|
78
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
79
|
-
:'retain_repo_versions' => :'Integer',
|
|
80
77
|
:'pulp_href' => :'String',
|
|
81
|
-
:'retain_checkpoints' => :'Integer',
|
|
82
|
-
:'name' => :'String',
|
|
83
|
-
:'prn' => :'String',
|
|
84
78
|
:'pulp_created' => :'Time',
|
|
85
|
-
:'pulp_last_updated' => :'Time',
|
|
86
|
-
:'latest_version_href' => :'String',
|
|
87
79
|
:'versions_href' => :'String',
|
|
88
|
-
:'
|
|
80
|
+
:'prn' => :'String',
|
|
81
|
+
:'description' => :'String',
|
|
82
|
+
:'manifest_signing_service' => :'String',
|
|
83
|
+
:'retain_repo_versions' => :'Integer',
|
|
84
|
+
:'latest_version_href' => :'String',
|
|
85
|
+
:'name' => :'String',
|
|
86
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
87
|
+
:'retain_checkpoints' => :'Integer',
|
|
88
|
+
:'pulp_last_updated' => :'Time'
|
|
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',
|
|
95
96
|
:'manifest_signing_service',
|
|
96
97
|
:'retain_repo_versions',
|
|
97
98
|
:'retain_checkpoints',
|
|
98
|
-
:'description'
|
|
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
|
-
|
|
121
|
-
if attributes.key?(:'pulp_labels')
|
|
122
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
123
|
-
self.pulp_labels = value
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
if attributes.key?(:'retain_repo_versions')
|
|
128
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
129
|
-
end
|
|
130
|
-
|
|
131
117
|
if attributes.key?(:'pulp_href')
|
|
132
118
|
self.pulp_href = attributes[:'pulp_href']
|
|
133
119
|
end
|
|
134
120
|
|
|
135
|
-
if attributes.key?(:'
|
|
136
|
-
self.
|
|
121
|
+
if attributes.key?(:'pulp_created')
|
|
122
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
137
123
|
end
|
|
138
124
|
|
|
139
|
-
if attributes.key?(:'
|
|
140
|
-
self.
|
|
141
|
-
else
|
|
142
|
-
self.name = nil
|
|
125
|
+
if attributes.key?(:'versions_href')
|
|
126
|
+
self.versions_href = attributes[:'versions_href']
|
|
143
127
|
end
|
|
144
128
|
|
|
145
129
|
if attributes.key?(:'prn')
|
|
146
130
|
self.prn = attributes[:'prn']
|
|
147
131
|
end
|
|
148
132
|
|
|
149
|
-
if attributes.key?(:'
|
|
150
|
-
self.
|
|
133
|
+
if attributes.key?(:'description')
|
|
134
|
+
self.description = attributes[:'description']
|
|
151
135
|
end
|
|
152
136
|
|
|
153
|
-
if attributes.key?(:'
|
|
154
|
-
self.
|
|
137
|
+
if attributes.key?(:'manifest_signing_service')
|
|
138
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'retain_repo_versions')
|
|
142
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
155
143
|
end
|
|
156
144
|
|
|
157
145
|
if attributes.key?(:'latest_version_href')
|
|
158
146
|
self.latest_version_href = attributes[:'latest_version_href']
|
|
159
147
|
end
|
|
160
148
|
|
|
161
|
-
if attributes.key?(:'
|
|
162
|
-
self.
|
|
149
|
+
if attributes.key?(:'name')
|
|
150
|
+
self.name = attributes[:'name']
|
|
151
|
+
else
|
|
152
|
+
self.name = nil
|
|
163
153
|
end
|
|
164
154
|
|
|
165
|
-
if attributes.key?(:'
|
|
166
|
-
|
|
155
|
+
if attributes.key?(:'pulp_labels')
|
|
156
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
157
|
+
self.pulp_labels = value
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'retain_checkpoints')
|
|
162
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'pulp_last_updated')
|
|
166
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
167
167
|
end
|
|
168
168
|
end
|
|
169
169
|
|
|
@@ -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 !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
180
|
-
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
181
|
-
end
|
|
182
|
-
|
|
183
179
|
if @name.nil?
|
|
184
180
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
185
181
|
end
|
|
186
182
|
|
|
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
|
+
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 !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
196
195
|
return false if @name.nil?
|
|
196
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
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
|
-
manifest_signing_service == o.manifest_signing_service &&
|
|
226
|
-
pulp_labels == o.pulp_labels &&
|
|
227
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
228
225
|
pulp_href == o.pulp_href &&
|
|
229
|
-
retain_checkpoints == o.retain_checkpoints &&
|
|
230
|
-
name == o.name &&
|
|
231
|
-
prn == o.prn &&
|
|
232
226
|
pulp_created == o.pulp_created &&
|
|
233
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
234
|
-
latest_version_href == o.latest_version_href &&
|
|
235
227
|
versions_href == o.versions_href &&
|
|
236
|
-
|
|
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
|
+
latest_version_href == o.latest_version_href &&
|
|
233
|
+
name == o.name &&
|
|
234
|
+
pulp_labels == o.pulp_labels &&
|
|
235
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
236
|
+
pulp_last_updated == o.pulp_last_updated
|
|
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_href, pulp_created, versions_href, prn, description, manifest_signing_service, retain_repo_versions, latest_version_href, name, pulp_labels, retain_checkpoints, pulp_last_updated].hash
|
|
249
249
|
end
|
|
250
250
|
|
|
251
251
|
# Builds the object from hash
|
|
@@ -16,20 +16,20 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class PatchedcontainerContainerDistribution
|
|
19
|
-
|
|
19
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
20
|
+
attr_accessor :content_guard
|
|
20
21
|
|
|
21
22
|
# Whether this distribution should be shown in the content app.
|
|
22
23
|
attr_accessor :hidden
|
|
23
24
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
25
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
26
|
+
attr_accessor :name
|
|
27
|
+
|
|
28
|
+
attr_accessor :pulp_labels
|
|
26
29
|
|
|
27
30
|
# The latest RepositoryVersion for this Repository will be served.
|
|
28
31
|
attr_accessor :repository
|
|
29
32
|
|
|
30
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
31
|
-
attr_accessor :name
|
|
32
|
-
|
|
33
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
34
|
attr_accessor :base_path
|
|
35
35
|
|
|
@@ -45,11 +45,11 @@ module PulpContainerClient
|
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
46
|
def self.attribute_map
|
|
47
47
|
{
|
|
48
|
-
:'pulp_labels' => :'pulp_labels',
|
|
49
|
-
:'hidden' => :'hidden',
|
|
50
48
|
:'content_guard' => :'content_guard',
|
|
51
|
-
:'
|
|
49
|
+
:'hidden' => :'hidden',
|
|
52
50
|
:'name' => :'name',
|
|
51
|
+
:'pulp_labels' => :'pulp_labels',
|
|
52
|
+
:'repository' => :'repository',
|
|
53
53
|
:'base_path' => :'base_path',
|
|
54
54
|
:'repository_version' => :'repository_version',
|
|
55
55
|
:'private' => :'private',
|
|
@@ -65,11 +65,11 @@ module PulpContainerClient
|
|
|
65
65
|
# Attribute type mapping.
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
69
|
-
:'hidden' => :'Boolean',
|
|
70
68
|
:'content_guard' => :'String',
|
|
71
|
-
:'
|
|
69
|
+
:'hidden' => :'Boolean',
|
|
72
70
|
:'name' => :'String',
|
|
71
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
72
|
+
:'repository' => :'String',
|
|
73
73
|
:'base_path' => :'String',
|
|
74
74
|
:'repository_version' => :'String',
|
|
75
75
|
:'private' => :'Boolean',
|
|
@@ -101,10 +101,8 @@ module PulpContainerClient
|
|
|
101
101
|
h[k.to_sym] = v
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
if attributes.key?(:'
|
|
105
|
-
|
|
106
|
-
self.pulp_labels = value
|
|
107
|
-
end
|
|
104
|
+
if attributes.key?(:'content_guard')
|
|
105
|
+
self.content_guard = attributes[:'content_guard']
|
|
108
106
|
end
|
|
109
107
|
|
|
110
108
|
if attributes.key?(:'hidden')
|
|
@@ -113,16 +111,18 @@ module PulpContainerClient
|
|
|
113
111
|
self.hidden = false
|
|
114
112
|
end
|
|
115
113
|
|
|
116
|
-
if attributes.key?(:'
|
|
117
|
-
self.
|
|
114
|
+
if attributes.key?(:'name')
|
|
115
|
+
self.name = attributes[:'name']
|
|
118
116
|
end
|
|
119
117
|
|
|
120
|
-
if attributes.key?(:'
|
|
121
|
-
|
|
118
|
+
if attributes.key?(:'pulp_labels')
|
|
119
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
120
|
+
self.pulp_labels = value
|
|
121
|
+
end
|
|
122
122
|
end
|
|
123
123
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
self.
|
|
124
|
+
if attributes.key?(:'repository')
|
|
125
|
+
self.repository = attributes[:'repository']
|
|
126
126
|
end
|
|
127
127
|
|
|
128
128
|
if attributes.key?(:'base_path')
|
|
@@ -215,11 +215,11 @@ module PulpContainerClient
|
|
|
215
215
|
def ==(o)
|
|
216
216
|
return true if self.equal?(o)
|
|
217
217
|
self.class == o.class &&
|
|
218
|
-
pulp_labels == o.pulp_labels &&
|
|
219
|
-
hidden == o.hidden &&
|
|
220
218
|
content_guard == o.content_guard &&
|
|
221
|
-
|
|
219
|
+
hidden == o.hidden &&
|
|
222
220
|
name == o.name &&
|
|
221
|
+
pulp_labels == o.pulp_labels &&
|
|
222
|
+
repository == o.repository &&
|
|
223
223
|
base_path == o.base_path &&
|
|
224
224
|
repository_version == o.repository_version &&
|
|
225
225
|
private == o.private &&
|
|
@@ -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
|
+
[content_guard, hidden, name, pulp_labels, repository, base_path, repository_version, private, description].hash
|
|
239
239
|
end
|
|
240
240
|
|
|
241
241
|
# Builds the object from hash
|