pulp_container_client 2.10.3 → 2.10.6
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 +5 -6
- data/docs/ContainerContainerDistribution.md +2 -2
- data/docs/ContainerContainerDistributionResponse.md +5 -5
- data/docs/ContainerContainerPushRepository.md +3 -3
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- data/docs/PatchedcontainerContainerDistribution.md +2 -2
- data/docs/PatchedcontainerContainerPushRepository.md +3 -3
- data/docs/Repair.md +17 -0
- data/docs/RepositoriesContainerPushVersionsApi.md +4 -4
- data/docs/RepositoriesContainerVersionsApi.md +4 -4
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +9 -9
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +9 -9
- data/lib/pulp_container_client/api_client.rb +1 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +11 -11
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +20 -20
- 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 +41 -41
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +11 -11
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +31 -31
- data/lib/pulp_container_client/models/{repository_version.rb → repair.rb} +13 -12
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +1 -2
- data/pulp_container_client.gemspec +3 -3
- data/spec/api/repositories_container_push_versions_api_spec.rb +1 -1
- data/spec/api/repositories_container_versions_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +3 -3
- data/spec/models/container_container_push_repository_response_spec.rb +7 -7
- data/spec/models/container_container_push_repository_spec.rb +2 -2
- data/spec/models/patchedcontainer_container_distribution_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
- data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
- metadata +53 -58
- data/docs/ContentSummary.md +0 -21
- data/docs/RepositoryVersion.md +0 -17
- data/git_push.sh +0 -58
- data/lib/pulp_container_client/models/content_summary.rb +0 -246
- data/spec/models/content_summary_spec.rb +0 -53
|
@@ -20,19 +20,19 @@ module PulpContainerClient
|
|
|
20
20
|
# A unique name for this repository.
|
|
21
21
|
attr_accessor :name
|
|
22
22
|
|
|
23
|
-
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
24
|
-
attr_accessor :retain_repo_versions
|
|
25
|
-
|
|
26
23
|
# An optional description.
|
|
27
24
|
attr_accessor :description
|
|
28
25
|
|
|
26
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
27
|
+
attr_accessor :retain_repo_versions
|
|
28
|
+
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
30
|
def self.attribute_map
|
|
31
31
|
{
|
|
32
32
|
:'pulp_labels' => :'pulp_labels',
|
|
33
33
|
:'name' => :'name',
|
|
34
|
-
:'
|
|
35
|
-
:'
|
|
34
|
+
:'description' => :'description',
|
|
35
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
|
36
36
|
}
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -41,16 +41,16 @@ module PulpContainerClient
|
|
|
41
41
|
{
|
|
42
42
|
:'pulp_labels' => :'Object',
|
|
43
43
|
:'name' => :'String',
|
|
44
|
-
:'
|
|
45
|
-
:'
|
|
44
|
+
:'description' => :'String',
|
|
45
|
+
:'retain_repo_versions' => :'Integer'
|
|
46
46
|
}
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
# List of attributes with nullable: true
|
|
50
50
|
def self.openapi_nullable
|
|
51
51
|
Set.new([
|
|
52
|
-
:'
|
|
53
|
-
:'
|
|
52
|
+
:'description',
|
|
53
|
+
:'retain_repo_versions'
|
|
54
54
|
])
|
|
55
55
|
end
|
|
56
56
|
|
|
@@ -77,13 +77,13 @@ module PulpContainerClient
|
|
|
77
77
|
self.name = attributes[:'name']
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
-
if attributes.key?(:'retain_repo_versions')
|
|
81
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
82
|
-
end
|
|
83
|
-
|
|
84
80
|
if attributes.key?(:'description')
|
|
85
81
|
self.description = attributes[:'description']
|
|
86
82
|
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'retain_repo_versions')
|
|
85
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
86
|
+
end
|
|
87
87
|
end
|
|
88
88
|
|
|
89
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -98,14 +98,14 @@ module PulpContainerClient
|
|
|
98
98
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
102
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
103
|
-
end
|
|
104
|
-
|
|
105
101
|
if !@description.nil? && @description.to_s.length < 1
|
|
106
102
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
107
103
|
end
|
|
108
104
|
|
|
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
109
|
invalid_properties
|
|
110
110
|
end
|
|
111
111
|
|
|
@@ -114,8 +114,8 @@ module PulpContainerClient
|
|
|
114
114
|
def valid?
|
|
115
115
|
return false if @name.nil?
|
|
116
116
|
return false if @name.to_s.length < 1
|
|
117
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
118
117
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
118
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
119
119
|
true
|
|
120
120
|
end
|
|
121
121
|
|
|
@@ -133,16 +133,6 @@ module PulpContainerClient
|
|
|
133
133
|
@name = name
|
|
134
134
|
end
|
|
135
135
|
|
|
136
|
-
# Custom attribute writer method with validation
|
|
137
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
138
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
139
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
140
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
@retain_repo_versions = retain_repo_versions
|
|
144
|
-
end
|
|
145
|
-
|
|
146
136
|
# Custom attribute writer method with validation
|
|
147
137
|
# @param [Object] description Value to be assigned
|
|
148
138
|
def description=(description)
|
|
@@ -153,6 +143,16 @@ module PulpContainerClient
|
|
|
153
143
|
@description = description
|
|
154
144
|
end
|
|
155
145
|
|
|
146
|
+
# Custom attribute writer method with validation
|
|
147
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
148
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
149
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
150
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
@retain_repo_versions = retain_repo_versions
|
|
154
|
+
end
|
|
155
|
+
|
|
156
156
|
# Checks equality by comparing each attribute.
|
|
157
157
|
# @param [Object] Object to be compared
|
|
158
158
|
def ==(o)
|
|
@@ -160,8 +160,8 @@ module PulpContainerClient
|
|
|
160
160
|
self.class == o.class &&
|
|
161
161
|
pulp_labels == o.pulp_labels &&
|
|
162
162
|
name == o.name &&
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
description == o.description &&
|
|
164
|
+
retain_repo_versions == o.retain_repo_versions
|
|
165
165
|
end
|
|
166
166
|
|
|
167
167
|
# @see the `==` method
|
|
@@ -173,7 +173,7 @@ module PulpContainerClient
|
|
|
173
173
|
# Calculates hash code according to all attributes.
|
|
174
174
|
# @return [Integer] Hash code
|
|
175
175
|
def hash
|
|
176
|
-
[pulp_labels, name,
|
|
176
|
+
[pulp_labels, name, description, retain_repo_versions].hash
|
|
177
177
|
end
|
|
178
178
|
|
|
179
179
|
# Builds the object from hash
|
|
@@ -15,59 +15,59 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
|
18
|
-
attr_accessor :
|
|
18
|
+
attr_accessor :pulp_href
|
|
19
19
|
|
|
20
|
-
attr_accessor :
|
|
20
|
+
attr_accessor :pulp_labels
|
|
21
21
|
|
|
22
22
|
# A unique name for this repository.
|
|
23
23
|
attr_accessor :name
|
|
24
24
|
|
|
25
|
-
# Timestamp of creation.
|
|
26
|
-
attr_accessor :pulp_created
|
|
27
|
-
|
|
28
|
-
attr_accessor :pulp_href
|
|
29
|
-
|
|
30
25
|
attr_accessor :versions_href
|
|
31
26
|
|
|
32
|
-
|
|
33
|
-
attr_accessor :retain_repo_versions
|
|
27
|
+
attr_accessor :latest_version_href
|
|
34
28
|
|
|
35
29
|
# An optional description.
|
|
36
30
|
attr_accessor :description
|
|
37
31
|
|
|
32
|
+
# Timestamp of creation.
|
|
33
|
+
attr_accessor :pulp_created
|
|
34
|
+
|
|
35
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
36
|
+
attr_accessor :retain_repo_versions
|
|
37
|
+
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
39
|
def self.attribute_map
|
|
40
40
|
{
|
|
41
|
+
:'pulp_href' => :'pulp_href',
|
|
41
42
|
:'pulp_labels' => :'pulp_labels',
|
|
42
|
-
:'latest_version_href' => :'latest_version_href',
|
|
43
43
|
:'name' => :'name',
|
|
44
|
-
:'pulp_created' => :'pulp_created',
|
|
45
|
-
:'pulp_href' => :'pulp_href',
|
|
46
44
|
:'versions_href' => :'versions_href',
|
|
47
|
-
:'
|
|
48
|
-
:'description' => :'description'
|
|
45
|
+
:'latest_version_href' => :'latest_version_href',
|
|
46
|
+
:'description' => :'description',
|
|
47
|
+
:'pulp_created' => :'pulp_created',
|
|
48
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
|
49
49
|
}
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
# Attribute type mapping.
|
|
53
53
|
def self.openapi_types
|
|
54
54
|
{
|
|
55
|
+
:'pulp_href' => :'String',
|
|
55
56
|
:'pulp_labels' => :'Object',
|
|
56
|
-
:'latest_version_href' => :'String',
|
|
57
57
|
:'name' => :'String',
|
|
58
|
-
:'pulp_created' => :'DateTime',
|
|
59
|
-
:'pulp_href' => :'String',
|
|
60
58
|
:'versions_href' => :'String',
|
|
61
|
-
:'
|
|
62
|
-
:'description' => :'String'
|
|
59
|
+
:'latest_version_href' => :'String',
|
|
60
|
+
:'description' => :'String',
|
|
61
|
+
:'pulp_created' => :'DateTime',
|
|
62
|
+
:'retain_repo_versions' => :'Integer'
|
|
63
63
|
}
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
# List of attributes with nullable: true
|
|
67
67
|
def self.openapi_nullable
|
|
68
68
|
Set.new([
|
|
69
|
-
:'
|
|
70
|
-
:'
|
|
69
|
+
:'description',
|
|
70
|
+
:'retain_repo_versions'
|
|
71
71
|
])
|
|
72
72
|
end
|
|
73
73
|
|
|
@@ -86,37 +86,37 @@ module PulpContainerClient
|
|
|
86
86
|
h[k.to_sym] = v
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
if attributes.key?(:'
|
|
90
|
-
self.
|
|
89
|
+
if attributes.key?(:'pulp_href')
|
|
90
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
-
if attributes.key?(:'
|
|
94
|
-
self.
|
|
93
|
+
if attributes.key?(:'pulp_labels')
|
|
94
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
if attributes.key?(:'name')
|
|
98
98
|
self.name = attributes[:'name']
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
-
if attributes.key?(:'pulp_created')
|
|
102
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
if attributes.key?(:'pulp_href')
|
|
106
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
107
|
-
end
|
|
108
|
-
|
|
109
101
|
if attributes.key?(:'versions_href')
|
|
110
102
|
self.versions_href = attributes[:'versions_href']
|
|
111
103
|
end
|
|
112
104
|
|
|
113
|
-
if attributes.key?(:'
|
|
114
|
-
self.
|
|
105
|
+
if attributes.key?(:'latest_version_href')
|
|
106
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
115
107
|
end
|
|
116
108
|
|
|
117
109
|
if attributes.key?(:'description')
|
|
118
110
|
self.description = attributes[:'description']
|
|
119
111
|
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'pulp_created')
|
|
114
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
if attributes.key?(:'retain_repo_versions')
|
|
118
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
119
|
+
end
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -157,14 +157,14 @@ module PulpContainerClient
|
|
|
157
157
|
def ==(o)
|
|
158
158
|
return true if self.equal?(o)
|
|
159
159
|
self.class == o.class &&
|
|
160
|
+
pulp_href == o.pulp_href &&
|
|
160
161
|
pulp_labels == o.pulp_labels &&
|
|
161
|
-
latest_version_href == o.latest_version_href &&
|
|
162
162
|
name == o.name &&
|
|
163
|
-
pulp_created == o.pulp_created &&
|
|
164
|
-
pulp_href == o.pulp_href &&
|
|
165
163
|
versions_href == o.versions_href &&
|
|
166
|
-
|
|
167
|
-
description == o.description
|
|
164
|
+
latest_version_href == o.latest_version_href &&
|
|
165
|
+
description == o.description &&
|
|
166
|
+
pulp_created == o.pulp_created &&
|
|
167
|
+
retain_repo_versions == o.retain_repo_versions
|
|
168
168
|
end
|
|
169
169
|
|
|
170
170
|
# @see the `==` method
|
|
@@ -176,7 +176,7 @@ module PulpContainerClient
|
|
|
176
176
|
# Calculates hash code according to all attributes.
|
|
177
177
|
# @return [Integer] Hash code
|
|
178
178
|
def hash
|
|
179
|
-
[
|
|
179
|
+
[pulp_href, pulp_labels, name, versions_href, latest_version_href, description, pulp_created, retain_repo_versions].hash
|
|
180
180
|
end
|
|
181
181
|
|
|
182
182
|
# Builds the object from hash
|
|
@@ -17,15 +17,15 @@ module PulpContainerClient
|
|
|
17
17
|
class PatchedcontainerContainerDistribution
|
|
18
18
|
attr_accessor :pulp_labels
|
|
19
19
|
|
|
20
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
21
|
+
attr_accessor :content_guard
|
|
22
|
+
|
|
20
23
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
21
24
|
attr_accessor :name
|
|
22
25
|
|
|
23
26
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
24
27
|
attr_accessor :base_path
|
|
25
28
|
|
|
26
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
27
|
-
attr_accessor :content_guard
|
|
28
|
-
|
|
29
29
|
# The latest RepositoryVersion for this Repository will be served.
|
|
30
30
|
attr_accessor :repository
|
|
31
31
|
|
|
@@ -42,9 +42,9 @@ module PulpContainerClient
|
|
|
42
42
|
def self.attribute_map
|
|
43
43
|
{
|
|
44
44
|
:'pulp_labels' => :'pulp_labels',
|
|
45
|
+
:'content_guard' => :'content_guard',
|
|
45
46
|
:'name' => :'name',
|
|
46
47
|
:'base_path' => :'base_path',
|
|
47
|
-
:'content_guard' => :'content_guard',
|
|
48
48
|
:'repository' => :'repository',
|
|
49
49
|
:'repository_version' => :'repository_version',
|
|
50
50
|
:'private' => :'private',
|
|
@@ -56,9 +56,9 @@ module PulpContainerClient
|
|
|
56
56
|
def self.openapi_types
|
|
57
57
|
{
|
|
58
58
|
:'pulp_labels' => :'Object',
|
|
59
|
+
:'content_guard' => :'String',
|
|
59
60
|
:'name' => :'String',
|
|
60
61
|
:'base_path' => :'String',
|
|
61
|
-
:'content_guard' => :'String',
|
|
62
62
|
:'repository' => :'String',
|
|
63
63
|
:'repository_version' => :'String',
|
|
64
64
|
:'private' => :'Boolean',
|
|
@@ -94,6 +94,10 @@ module PulpContainerClient
|
|
|
94
94
|
self.pulp_labels = attributes[:'pulp_labels']
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
+
if attributes.key?(:'content_guard')
|
|
98
|
+
self.content_guard = attributes[:'content_guard']
|
|
99
|
+
end
|
|
100
|
+
|
|
97
101
|
if attributes.key?(:'name')
|
|
98
102
|
self.name = attributes[:'name']
|
|
99
103
|
end
|
|
@@ -102,10 +106,6 @@ module PulpContainerClient
|
|
|
102
106
|
self.base_path = attributes[:'base_path']
|
|
103
107
|
end
|
|
104
108
|
|
|
105
|
-
if attributes.key?(:'content_guard')
|
|
106
|
-
self.content_guard = attributes[:'content_guard']
|
|
107
|
-
end
|
|
108
|
-
|
|
109
109
|
if attributes.key?(:'repository')
|
|
110
110
|
self.repository = attributes[:'repository']
|
|
111
111
|
end
|
|
@@ -187,9 +187,9 @@ module PulpContainerClient
|
|
|
187
187
|
return true if self.equal?(o)
|
|
188
188
|
self.class == o.class &&
|
|
189
189
|
pulp_labels == o.pulp_labels &&
|
|
190
|
+
content_guard == o.content_guard &&
|
|
190
191
|
name == o.name &&
|
|
191
192
|
base_path == o.base_path &&
|
|
192
|
-
content_guard == o.content_guard &&
|
|
193
193
|
repository == o.repository &&
|
|
194
194
|
repository_version == o.repository_version &&
|
|
195
195
|
private == o.private &&
|
|
@@ -205,7 +205,7 @@ module PulpContainerClient
|
|
|
205
205
|
# Calculates hash code according to all attributes.
|
|
206
206
|
# @return [Integer] Hash code
|
|
207
207
|
def hash
|
|
208
|
-
[pulp_labels, name, base_path,
|
|
208
|
+
[pulp_labels, content_guard, name, base_path, repository, repository_version, private, description].hash
|
|
209
209
|
end
|
|
210
210
|
|
|
211
211
|
# Builds the object from hash
|
|
@@ -20,19 +20,19 @@ module PulpContainerClient
|
|
|
20
20
|
# A unique name for this repository.
|
|
21
21
|
attr_accessor :name
|
|
22
22
|
|
|
23
|
-
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
24
|
-
attr_accessor :retain_repo_versions
|
|
25
|
-
|
|
26
23
|
# An optional description.
|
|
27
24
|
attr_accessor :description
|
|
28
25
|
|
|
26
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
27
|
+
attr_accessor :retain_repo_versions
|
|
28
|
+
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
30
|
def self.attribute_map
|
|
31
31
|
{
|
|
32
32
|
:'pulp_labels' => :'pulp_labels',
|
|
33
33
|
:'name' => :'name',
|
|
34
|
-
:'
|
|
35
|
-
:'
|
|
34
|
+
:'description' => :'description',
|
|
35
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
|
36
36
|
}
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -41,16 +41,16 @@ module PulpContainerClient
|
|
|
41
41
|
{
|
|
42
42
|
:'pulp_labels' => :'Object',
|
|
43
43
|
:'name' => :'String',
|
|
44
|
-
:'
|
|
45
|
-
:'
|
|
44
|
+
:'description' => :'String',
|
|
45
|
+
:'retain_repo_versions' => :'Integer'
|
|
46
46
|
}
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
# List of attributes with nullable: true
|
|
50
50
|
def self.openapi_nullable
|
|
51
51
|
Set.new([
|
|
52
|
-
:'
|
|
53
|
-
:'
|
|
52
|
+
:'description',
|
|
53
|
+
:'retain_repo_versions'
|
|
54
54
|
])
|
|
55
55
|
end
|
|
56
56
|
|
|
@@ -77,13 +77,13 @@ module PulpContainerClient
|
|
|
77
77
|
self.name = attributes[:'name']
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
-
if attributes.key?(:'retain_repo_versions')
|
|
81
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
82
|
-
end
|
|
83
|
-
|
|
84
80
|
if attributes.key?(:'description')
|
|
85
81
|
self.description = attributes[:'description']
|
|
86
82
|
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'retain_repo_versions')
|
|
85
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
86
|
+
end
|
|
87
87
|
end
|
|
88
88
|
|
|
89
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -94,14 +94,14 @@ module PulpContainerClient
|
|
|
94
94
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
98
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
99
|
-
end
|
|
100
|
-
|
|
101
97
|
if !@description.nil? && @description.to_s.length < 1
|
|
102
98
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
103
99
|
end
|
|
104
100
|
|
|
101
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
102
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
103
|
+
end
|
|
104
|
+
|
|
105
105
|
invalid_properties
|
|
106
106
|
end
|
|
107
107
|
|
|
@@ -109,8 +109,8 @@ module PulpContainerClient
|
|
|
109
109
|
# @return true if the model is valid
|
|
110
110
|
def valid?
|
|
111
111
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
112
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
113
112
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
113
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
114
114
|
true
|
|
115
115
|
end
|
|
116
116
|
|
|
@@ -124,16 +124,6 @@ module PulpContainerClient
|
|
|
124
124
|
@name = name
|
|
125
125
|
end
|
|
126
126
|
|
|
127
|
-
# Custom attribute writer method with validation
|
|
128
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
129
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
130
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
131
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
@retain_repo_versions = retain_repo_versions
|
|
135
|
-
end
|
|
136
|
-
|
|
137
127
|
# Custom attribute writer method with validation
|
|
138
128
|
# @param [Object] description Value to be assigned
|
|
139
129
|
def description=(description)
|
|
@@ -144,6 +134,16 @@ module PulpContainerClient
|
|
|
144
134
|
@description = description
|
|
145
135
|
end
|
|
146
136
|
|
|
137
|
+
# Custom attribute writer method with validation
|
|
138
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
139
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
140
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
141
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
@retain_repo_versions = retain_repo_versions
|
|
145
|
+
end
|
|
146
|
+
|
|
147
147
|
# Checks equality by comparing each attribute.
|
|
148
148
|
# @param [Object] Object to be compared
|
|
149
149
|
def ==(o)
|
|
@@ -151,8 +151,8 @@ module PulpContainerClient
|
|
|
151
151
|
self.class == o.class &&
|
|
152
152
|
pulp_labels == o.pulp_labels &&
|
|
153
153
|
name == o.name &&
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
description == o.description &&
|
|
155
|
+
retain_repo_versions == o.retain_repo_versions
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
# @see the `==` method
|
|
@@ -164,7 +164,7 @@ module PulpContainerClient
|
|
|
164
164
|
# Calculates hash code according to all attributes.
|
|
165
165
|
# @return [Integer] Hash code
|
|
166
166
|
def hash
|
|
167
|
-
[pulp_labels, name,
|
|
167
|
+
[pulp_labels, name, description, retain_repo_versions].hash
|
|
168
168
|
end
|
|
169
169
|
|
|
170
170
|
# Builds the object from hash
|
|
@@ -13,22 +13,21 @@ OpenAPI Generator version: 4.3.1
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpContainerClient
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
attr_accessor :base_version
|
|
16
|
+
class Repair
|
|
17
|
+
# Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default
|
|
18
|
+
attr_accessor :verify_checksums
|
|
20
19
|
|
|
21
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
21
|
def self.attribute_map
|
|
23
22
|
{
|
|
24
|
-
:'
|
|
23
|
+
:'verify_checksums' => :'verify_checksums'
|
|
25
24
|
}
|
|
26
25
|
end
|
|
27
26
|
|
|
28
27
|
# Attribute type mapping.
|
|
29
28
|
def self.openapi_types
|
|
30
29
|
{
|
|
31
|
-
:'
|
|
30
|
+
:'verify_checksums' => :'Boolean'
|
|
32
31
|
}
|
|
33
32
|
end
|
|
34
33
|
|
|
@@ -42,19 +41,21 @@ module PulpContainerClient
|
|
|
42
41
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
43
42
|
def initialize(attributes = {})
|
|
44
43
|
if (!attributes.is_a?(Hash))
|
|
45
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::
|
|
44
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::Repair` initialize method"
|
|
46
45
|
end
|
|
47
46
|
|
|
48
47
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
49
48
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
50
49
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
51
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::
|
|
50
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::Repair`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
52
51
|
end
|
|
53
52
|
h[k.to_sym] = v
|
|
54
53
|
}
|
|
55
54
|
|
|
56
|
-
if attributes.key?(:'
|
|
57
|
-
self.
|
|
55
|
+
if attributes.key?(:'verify_checksums')
|
|
56
|
+
self.verify_checksums = attributes[:'verify_checksums']
|
|
57
|
+
else
|
|
58
|
+
self.verify_checksums = true
|
|
58
59
|
end
|
|
59
60
|
end
|
|
60
61
|
|
|
@@ -76,7 +77,7 @@ module PulpContainerClient
|
|
|
76
77
|
def ==(o)
|
|
77
78
|
return true if self.equal?(o)
|
|
78
79
|
self.class == o.class &&
|
|
79
|
-
|
|
80
|
+
verify_checksums == o.verify_checksums
|
|
80
81
|
end
|
|
81
82
|
|
|
82
83
|
# @see the `==` method
|
|
@@ -88,7 +89,7 @@ module PulpContainerClient
|
|
|
88
89
|
# Calculates hash code according to all attributes.
|
|
89
90
|
# @return [Integer] Hash code
|
|
90
91
|
def hash
|
|
91
|
-
[
|
|
92
|
+
[verify_checksums].hash
|
|
92
93
|
end
|
|
93
94
|
|
|
94
95
|
# Builds the object from hash
|
|
@@ -33,7 +33,6 @@ require 'pulp_container_client/models/container_content_redirect_content_guard'
|
|
|
33
33
|
require 'pulp_container_client/models/container_content_redirect_content_guard_response'
|
|
34
34
|
require 'pulp_container_client/models/container_manifest_response'
|
|
35
35
|
require 'pulp_container_client/models/container_tag_response'
|
|
36
|
-
require 'pulp_container_client/models/content_summary'
|
|
37
36
|
require 'pulp_container_client/models/content_summary_response'
|
|
38
37
|
require 'pulp_container_client/models/manifest_copy'
|
|
39
38
|
require 'pulp_container_client/models/media_types_enum'
|
|
@@ -56,8 +55,8 @@ require 'pulp_container_client/models/patchedcontainer_content_redirect_content_
|
|
|
56
55
|
require 'pulp_container_client/models/policy_enum'
|
|
57
56
|
require 'pulp_container_client/models/recursive_manage'
|
|
58
57
|
require 'pulp_container_client/models/remove_image'
|
|
58
|
+
require 'pulp_container_client/models/repair'
|
|
59
59
|
require 'pulp_container_client/models/repository_sync_url'
|
|
60
|
-
require 'pulp_container_client/models/repository_version'
|
|
61
60
|
require 'pulp_container_client/models/repository_version_response'
|
|
62
61
|
require 'pulp_container_client/models/tag_copy'
|
|
63
62
|
require 'pulp_container_client/models/tag_image'
|
|
@@ -21,13 +21,13 @@ Gem::Specification.new do |s|
|
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
|
22
22
|
s.authors = ["OpenAPI-Generator"]
|
|
23
23
|
s.email = ["pulp-list@redhat.com"]
|
|
24
|
-
s.homepage = "https://
|
|
24
|
+
s.homepage = "https://github.com/pulp/pulp_container"
|
|
25
25
|
s.summary = "Pulp 3 API Ruby Gem"
|
|
26
26
|
s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
|
|
27
|
-
s.license = '
|
|
27
|
+
s.license = 'GPLv2+'
|
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
|
29
29
|
|
|
30
|
-
s.add_runtime_dependency 'faraday', '
|
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 0.17', '< 2.0'
|
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
|
32
32
|
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
|
@@ -92,7 +92,7 @@ describe 'RepositoriesContainerPushVersionsApi' do
|
|
|
92
92
|
# unit tests for repair
|
|
93
93
|
# Trigger an asynchronous task to repair a repository version.
|
|
94
94
|
# @param container_container_push_repository_version_href
|
|
95
|
-
# @param
|
|
95
|
+
# @param repair
|
|
96
96
|
# @param [Hash] opts the optional parameters
|
|
97
97
|
# @return [AsyncOperationResponse]
|
|
98
98
|
describe 'repair test' do
|
|
@@ -92,7 +92,7 @@ describe 'RepositoriesContainerVersionsApi' do
|
|
|
92
92
|
# unit tests for repair
|
|
93
93
|
# Trigger an asynchronous task to repair a repository version.
|
|
94
94
|
# @param container_container_repository_version_href
|
|
95
|
-
# @param
|
|
95
|
+
# @param repair
|
|
96
96
|
# @param [Hash] opts the optional parameters
|
|
97
97
|
# @return [AsyncOperationResponse]
|
|
98
98
|
describe 'repair test' do
|