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