pulp_container_client 2.10.3 → 2.10.4
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 +6 -6
- data/docs/ContainerContainerPushRepository.md +4 -4
- data/docs/ContainerContainerPushRepositoryResponse.md +8 -8
- data/docs/PatchedcontainerContainerDistribution.md +2 -2
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- 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/models/container_container_distribution.rb +11 -11
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +24 -24
- data/lib/pulp_container_client/models/container_container_push_repository.rb +40 -40
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +40 -40
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +11 -11
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +32 -32
- 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/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 +5 -5
- data/spec/models/container_container_distribution_spec.rb +2 -2
- data/spec/models/container_container_push_repository_response_spec.rb +6 -6
- data/spec/models/container_container_push_repository_spec.rb +2 -2
- data/spec/models/patchedcontainer_container_distribution_spec.rb +2 -2
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
- data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
- metadata +49 -53
- data/docs/ContentSummary.md +0 -21
- data/docs/RepositoryVersion.md +0 -17
- data/lib/pulp_container_client/models/content_summary.rb +0 -246
- data/spec/models/content_summary_spec.rb +0 -53
|
@@ -17,22 +17,22 @@ module PulpContainerClient
|
|
|
17
17
|
class ContainerContainerPushRepository
|
|
18
18
|
attr_accessor :pulp_labels
|
|
19
19
|
|
|
20
|
-
#
|
|
21
|
-
attr_accessor :
|
|
20
|
+
# An optional description.
|
|
21
|
+
attr_accessor :description
|
|
22
22
|
|
|
23
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
24
|
attr_accessor :retain_repo_versions
|
|
25
25
|
|
|
26
|
-
#
|
|
27
|
-
attr_accessor :
|
|
26
|
+
# A unique name for this repository.
|
|
27
|
+
attr_accessor :name
|
|
28
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
|
+
:'description' => :'description',
|
|
34
34
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
35
|
-
:'
|
|
35
|
+
:'name' => :'name'
|
|
36
36
|
}
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -40,17 +40,17 @@ module PulpContainerClient
|
|
|
40
40
|
def self.openapi_types
|
|
41
41
|
{
|
|
42
42
|
:'pulp_labels' => :'Object',
|
|
43
|
-
:'
|
|
43
|
+
:'description' => :'String',
|
|
44
44
|
:'retain_repo_versions' => :'Integer',
|
|
45
|
-
:'
|
|
45
|
+
:'name' => :'String'
|
|
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
|
+
:'description',
|
|
52
53
|
:'retain_repo_versions',
|
|
53
|
-
:'description'
|
|
54
54
|
])
|
|
55
55
|
end
|
|
56
56
|
|
|
@@ -73,16 +73,16 @@ module PulpContainerClient
|
|
|
73
73
|
self.pulp_labels = attributes[:'pulp_labels']
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
-
if attributes.key?(:'
|
|
77
|
-
self.
|
|
76
|
+
if attributes.key?(:'description')
|
|
77
|
+
self.description = attributes[:'description']
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
if attributes.key?(:'retain_repo_versions')
|
|
81
81
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
if attributes.key?(:'
|
|
85
|
-
self.
|
|
84
|
+
if attributes.key?(:'name')
|
|
85
|
+
self.name = attributes[:'name']
|
|
86
86
|
end
|
|
87
87
|
end
|
|
88
88
|
|
|
@@ -90,20 +90,20 @@ module PulpContainerClient
|
|
|
90
90
|
# @return Array for valid properties with the reasons
|
|
91
91
|
def list_invalid_properties
|
|
92
92
|
invalid_properties = Array.new
|
|
93
|
-
if
|
|
94
|
-
invalid_properties.push('invalid value for "
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
if @name.to_s.length < 1
|
|
98
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
93
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
94
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
99
95
|
end
|
|
100
96
|
|
|
101
97
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
102
98
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
103
99
|
end
|
|
104
100
|
|
|
105
|
-
if
|
|
106
|
-
invalid_properties.push('invalid value for "
|
|
101
|
+
if @name.nil?
|
|
102
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
if @name.to_s.length < 1
|
|
106
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
107
107
|
end
|
|
108
108
|
|
|
109
109
|
invalid_properties
|
|
@@ -112,25 +112,21 @@ module PulpContainerClient
|
|
|
112
112
|
# Check to see if the all the properties in the model are valid
|
|
113
113
|
# @return true if the model is valid
|
|
114
114
|
def valid?
|
|
115
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
116
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
115
117
|
return false if @name.nil?
|
|
116
118
|
return false if @name.to_s.length < 1
|
|
117
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
118
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
119
119
|
true
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
# Custom attribute writer method with validation
|
|
123
|
-
# @param [Object]
|
|
124
|
-
def
|
|
125
|
-
if
|
|
126
|
-
fail ArgumentError, '
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
if name.to_s.length < 1
|
|
130
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
123
|
+
# @param [Object] description Value to be assigned
|
|
124
|
+
def description=(description)
|
|
125
|
+
if !description.nil? && description.to_s.length < 1
|
|
126
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
131
127
|
end
|
|
132
128
|
|
|
133
|
-
@
|
|
129
|
+
@description = description
|
|
134
130
|
end
|
|
135
131
|
|
|
136
132
|
# Custom attribute writer method with validation
|
|
@@ -144,13 +140,17 @@ module PulpContainerClient
|
|
|
144
140
|
end
|
|
145
141
|
|
|
146
142
|
# Custom attribute writer method with validation
|
|
147
|
-
# @param [Object]
|
|
148
|
-
def
|
|
149
|
-
if
|
|
150
|
-
fail ArgumentError, '
|
|
143
|
+
# @param [Object] name Value to be assigned
|
|
144
|
+
def name=(name)
|
|
145
|
+
if name.nil?
|
|
146
|
+
fail ArgumentError, 'name cannot be nil'
|
|
151
147
|
end
|
|
152
148
|
|
|
153
|
-
|
|
149
|
+
if name.to_s.length < 1
|
|
150
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
@name = name
|
|
154
154
|
end
|
|
155
155
|
|
|
156
156
|
# Checks equality by comparing each attribute.
|
|
@@ -159,9 +159,9 @@ module PulpContainerClient
|
|
|
159
159
|
return true if self.equal?(o)
|
|
160
160
|
self.class == o.class &&
|
|
161
161
|
pulp_labels == o.pulp_labels &&
|
|
162
|
-
|
|
162
|
+
description == o.description &&
|
|
163
163
|
retain_repo_versions == o.retain_repo_versions &&
|
|
164
|
-
|
|
164
|
+
name == o.name
|
|
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,
|
|
176
|
+
[pulp_labels, description, retain_repo_versions, name].hash
|
|
177
177
|
end
|
|
178
178
|
|
|
179
179
|
# Builds the object from hash
|
|
@@ -17,35 +17,35 @@ module PulpContainerClient
|
|
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
|
18
18
|
attr_accessor :pulp_labels
|
|
19
19
|
|
|
20
|
-
attr_accessor :latest_version_href
|
|
21
|
-
|
|
22
|
-
# A unique name for this repository.
|
|
23
|
-
attr_accessor :name
|
|
24
|
-
|
|
25
20
|
# Timestamp of creation.
|
|
26
21
|
attr_accessor :pulp_created
|
|
27
22
|
|
|
28
|
-
|
|
23
|
+
# An optional description.
|
|
24
|
+
attr_accessor :description
|
|
29
25
|
|
|
30
|
-
attr_accessor :
|
|
26
|
+
attr_accessor :pulp_href
|
|
31
27
|
|
|
32
28
|
# 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.
|
|
33
29
|
attr_accessor :retain_repo_versions
|
|
34
30
|
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
attr_accessor :versions_href
|
|
32
|
+
|
|
33
|
+
# A unique name for this repository.
|
|
34
|
+
attr_accessor :name
|
|
35
|
+
|
|
36
|
+
attr_accessor :latest_version_href
|
|
37
37
|
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
39
|
def self.attribute_map
|
|
40
40
|
{
|
|
41
41
|
:'pulp_labels' => :'pulp_labels',
|
|
42
|
-
:'latest_version_href' => :'latest_version_href',
|
|
43
|
-
:'name' => :'name',
|
|
44
42
|
:'pulp_created' => :'pulp_created',
|
|
43
|
+
:'description' => :'description',
|
|
45
44
|
:'pulp_href' => :'pulp_href',
|
|
46
|
-
:'versions_href' => :'versions_href',
|
|
47
45
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
48
|
-
:'
|
|
46
|
+
:'versions_href' => :'versions_href',
|
|
47
|
+
:'name' => :'name',
|
|
48
|
+
:'latest_version_href' => :'latest_version_href'
|
|
49
49
|
}
|
|
50
50
|
end
|
|
51
51
|
|
|
@@ -53,21 +53,21 @@ module PulpContainerClient
|
|
|
53
53
|
def self.openapi_types
|
|
54
54
|
{
|
|
55
55
|
:'pulp_labels' => :'Object',
|
|
56
|
-
:'latest_version_href' => :'String',
|
|
57
|
-
:'name' => :'String',
|
|
58
56
|
:'pulp_created' => :'DateTime',
|
|
57
|
+
:'description' => :'String',
|
|
59
58
|
:'pulp_href' => :'String',
|
|
60
|
-
:'versions_href' => :'String',
|
|
61
59
|
:'retain_repo_versions' => :'Integer',
|
|
62
|
-
:'
|
|
60
|
+
:'versions_href' => :'String',
|
|
61
|
+
:'name' => :'String',
|
|
62
|
+
:'latest_version_href' => :'String'
|
|
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
|
+
:'description',
|
|
69
70
|
:'retain_repo_versions',
|
|
70
|
-
:'description'
|
|
71
71
|
])
|
|
72
72
|
end
|
|
73
73
|
|
|
@@ -90,32 +90,32 @@ module PulpContainerClient
|
|
|
90
90
|
self.pulp_labels = attributes[:'pulp_labels']
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
-
if attributes.key?(:'latest_version_href')
|
|
94
|
-
self.latest_version_href = attributes[:'latest_version_href']
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
if attributes.key?(:'name')
|
|
98
|
-
self.name = attributes[:'name']
|
|
99
|
-
end
|
|
100
|
-
|
|
101
93
|
if attributes.key?(:'pulp_created')
|
|
102
94
|
self.pulp_created = attributes[:'pulp_created']
|
|
103
95
|
end
|
|
104
96
|
|
|
97
|
+
if attributes.key?(:'description')
|
|
98
|
+
self.description = attributes[:'description']
|
|
99
|
+
end
|
|
100
|
+
|
|
105
101
|
if attributes.key?(:'pulp_href')
|
|
106
102
|
self.pulp_href = attributes[:'pulp_href']
|
|
107
103
|
end
|
|
108
104
|
|
|
105
|
+
if attributes.key?(:'retain_repo_versions')
|
|
106
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
107
|
+
end
|
|
108
|
+
|
|
109
109
|
if attributes.key?(:'versions_href')
|
|
110
110
|
self.versions_href = attributes[:'versions_href']
|
|
111
111
|
end
|
|
112
112
|
|
|
113
|
-
if attributes.key?(:'
|
|
114
|
-
self.
|
|
113
|
+
if attributes.key?(:'name')
|
|
114
|
+
self.name = attributes[:'name']
|
|
115
115
|
end
|
|
116
116
|
|
|
117
|
-
if attributes.key?(:'
|
|
118
|
-
self.
|
|
117
|
+
if attributes.key?(:'latest_version_href')
|
|
118
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
119
119
|
end
|
|
120
120
|
end
|
|
121
121
|
|
|
@@ -123,22 +123,22 @@ module PulpContainerClient
|
|
|
123
123
|
# @return Array for valid properties with the reasons
|
|
124
124
|
def list_invalid_properties
|
|
125
125
|
invalid_properties = Array.new
|
|
126
|
-
if @name.nil?
|
|
127
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
128
|
-
end
|
|
129
|
-
|
|
130
126
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
131
127
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
132
128
|
end
|
|
133
129
|
|
|
130
|
+
if @name.nil?
|
|
131
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
132
|
+
end
|
|
133
|
+
|
|
134
134
|
invalid_properties
|
|
135
135
|
end
|
|
136
136
|
|
|
137
137
|
# Check to see if the all the properties in the model are valid
|
|
138
138
|
# @return true if the model is valid
|
|
139
139
|
def valid?
|
|
140
|
-
return false if @name.nil?
|
|
141
140
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
141
|
+
return false if @name.nil?
|
|
142
142
|
true
|
|
143
143
|
end
|
|
144
144
|
|
|
@@ -158,13 +158,13 @@ module PulpContainerClient
|
|
|
158
158
|
return true if self.equal?(o)
|
|
159
159
|
self.class == o.class &&
|
|
160
160
|
pulp_labels == o.pulp_labels &&
|
|
161
|
-
latest_version_href == o.latest_version_href &&
|
|
162
|
-
name == o.name &&
|
|
163
161
|
pulp_created == o.pulp_created &&
|
|
162
|
+
description == o.description &&
|
|
164
163
|
pulp_href == o.pulp_href &&
|
|
165
|
-
versions_href == o.versions_href &&
|
|
166
164
|
retain_repo_versions == o.retain_repo_versions &&
|
|
167
|
-
|
|
165
|
+
versions_href == o.versions_href &&
|
|
166
|
+
name == o.name &&
|
|
167
|
+
latest_version_href == o.latest_version_href
|
|
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
|
-
[pulp_labels,
|
|
179
|
+
[pulp_labels, pulp_created, description, pulp_href, retain_repo_versions, versions_href, name, latest_version_href].hash
|
|
180
180
|
end
|
|
181
181
|
|
|
182
182
|
# Builds the object from hash
|
|
@@ -23,12 +23,12 @@ module PulpContainerClient
|
|
|
23
23
|
# 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
24
|
attr_accessor :base_path
|
|
25
25
|
|
|
26
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
27
|
-
attr_accessor :content_guard
|
|
28
|
-
|
|
29
26
|
# The latest RepositoryVersion for this Repository will be served.
|
|
30
27
|
attr_accessor :repository
|
|
31
28
|
|
|
29
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
30
|
+
attr_accessor :content_guard
|
|
31
|
+
|
|
32
32
|
# RepositoryVersion to be served
|
|
33
33
|
attr_accessor :repository_version
|
|
34
34
|
|
|
@@ -44,8 +44,8 @@ module PulpContainerClient
|
|
|
44
44
|
:'pulp_labels' => :'pulp_labels',
|
|
45
45
|
:'name' => :'name',
|
|
46
46
|
:'base_path' => :'base_path',
|
|
47
|
-
:'content_guard' => :'content_guard',
|
|
48
47
|
:'repository' => :'repository',
|
|
48
|
+
:'content_guard' => :'content_guard',
|
|
49
49
|
:'repository_version' => :'repository_version',
|
|
50
50
|
:'private' => :'private',
|
|
51
51
|
:'description' => :'description'
|
|
@@ -58,8 +58,8 @@ module PulpContainerClient
|
|
|
58
58
|
:'pulp_labels' => :'Object',
|
|
59
59
|
:'name' => :'String',
|
|
60
60
|
:'base_path' => :'String',
|
|
61
|
-
:'content_guard' => :'String',
|
|
62
61
|
:'repository' => :'String',
|
|
62
|
+
:'content_guard' => :'String',
|
|
63
63
|
:'repository_version' => :'String',
|
|
64
64
|
:'private' => :'Boolean',
|
|
65
65
|
:'description' => :'String'
|
|
@@ -102,14 +102,14 @@ module PulpContainerClient
|
|
|
102
102
|
self.base_path = attributes[:'base_path']
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
-
if attributes.key?(:'content_guard')
|
|
106
|
-
self.content_guard = attributes[:'content_guard']
|
|
107
|
-
end
|
|
108
|
-
|
|
109
105
|
if attributes.key?(:'repository')
|
|
110
106
|
self.repository = attributes[:'repository']
|
|
111
107
|
end
|
|
112
108
|
|
|
109
|
+
if attributes.key?(:'content_guard')
|
|
110
|
+
self.content_guard = attributes[:'content_guard']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
113
|
if attributes.key?(:'repository_version')
|
|
114
114
|
self.repository_version = attributes[:'repository_version']
|
|
115
115
|
end
|
|
@@ -189,8 +189,8 @@ module PulpContainerClient
|
|
|
189
189
|
pulp_labels == o.pulp_labels &&
|
|
190
190
|
name == o.name &&
|
|
191
191
|
base_path == o.base_path &&
|
|
192
|
-
content_guard == o.content_guard &&
|
|
193
192
|
repository == o.repository &&
|
|
193
|
+
content_guard == o.content_guard &&
|
|
194
194
|
repository_version == o.repository_version &&
|
|
195
195
|
private == o.private &&
|
|
196
196
|
description == o.description
|
|
@@ -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, name, base_path, repository, content_guard, repository_version, private, description].hash
|
|
209
209
|
end
|
|
210
210
|
|
|
211
211
|
# Builds the object from hash
|
|
@@ -17,22 +17,22 @@ module PulpContainerClient
|
|
|
17
17
|
class PatchedcontainerContainerPushRepository
|
|
18
18
|
attr_accessor :pulp_labels
|
|
19
19
|
|
|
20
|
-
#
|
|
21
|
-
attr_accessor :
|
|
20
|
+
# An optional description.
|
|
21
|
+
attr_accessor :description
|
|
22
22
|
|
|
23
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
24
|
attr_accessor :retain_repo_versions
|
|
25
25
|
|
|
26
|
-
#
|
|
27
|
-
attr_accessor :
|
|
26
|
+
# A unique name for this repository.
|
|
27
|
+
attr_accessor :name
|
|
28
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
|
+
:'description' => :'description',
|
|
34
34
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
35
|
-
:'
|
|
35
|
+
:'name' => :'name'
|
|
36
36
|
}
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -40,17 +40,17 @@ module PulpContainerClient
|
|
|
40
40
|
def self.openapi_types
|
|
41
41
|
{
|
|
42
42
|
:'pulp_labels' => :'Object',
|
|
43
|
-
:'
|
|
43
|
+
:'description' => :'String',
|
|
44
44
|
:'retain_repo_versions' => :'Integer',
|
|
45
|
-
:'
|
|
45
|
+
:'name' => :'String'
|
|
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
|
+
:'description',
|
|
52
53
|
:'retain_repo_versions',
|
|
53
|
-
:'description'
|
|
54
54
|
])
|
|
55
55
|
end
|
|
56
56
|
|
|
@@ -73,16 +73,16 @@ module PulpContainerClient
|
|
|
73
73
|
self.pulp_labels = attributes[:'pulp_labels']
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
-
if attributes.key?(:'
|
|
77
|
-
self.
|
|
76
|
+
if attributes.key?(:'description')
|
|
77
|
+
self.description = attributes[:'description']
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
if attributes.key?(:'retain_repo_versions')
|
|
81
81
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
if attributes.key?(:'
|
|
85
|
-
self.
|
|
84
|
+
if attributes.key?(:'name')
|
|
85
|
+
self.name = attributes[:'name']
|
|
86
86
|
end
|
|
87
87
|
end
|
|
88
88
|
|
|
@@ -90,16 +90,16 @@ module PulpContainerClient
|
|
|
90
90
|
# @return Array for valid properties with the reasons
|
|
91
91
|
def list_invalid_properties
|
|
92
92
|
invalid_properties = Array.new
|
|
93
|
-
if !@
|
|
94
|
-
invalid_properties.push('invalid value for "
|
|
93
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
94
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
98
98
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
-
if !@
|
|
102
|
-
invalid_properties.push('invalid value for "
|
|
101
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
102
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
103
103
|
end
|
|
104
104
|
|
|
105
105
|
invalid_properties
|
|
@@ -108,20 +108,20 @@ module PulpContainerClient
|
|
|
108
108
|
# Check to see if the all the properties in the model are valid
|
|
109
109
|
# @return true if the model is valid
|
|
110
110
|
def valid?
|
|
111
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
|
112
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
113
111
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
112
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
113
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
|
114
114
|
true
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
# Custom attribute writer method with validation
|
|
118
|
-
# @param [Object]
|
|
119
|
-
def
|
|
120
|
-
if !
|
|
121
|
-
fail ArgumentError, 'invalid value for "
|
|
118
|
+
# @param [Object] description Value to be assigned
|
|
119
|
+
def description=(description)
|
|
120
|
+
if !description.nil? && description.to_s.length < 1
|
|
121
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
122
122
|
end
|
|
123
123
|
|
|
124
|
-
@
|
|
124
|
+
@description = description
|
|
125
125
|
end
|
|
126
126
|
|
|
127
127
|
# Custom attribute writer method with validation
|
|
@@ -135,13 +135,13 @@ module PulpContainerClient
|
|
|
135
135
|
end
|
|
136
136
|
|
|
137
137
|
# Custom attribute writer method with validation
|
|
138
|
-
# @param [Object]
|
|
139
|
-
def
|
|
140
|
-
if !
|
|
141
|
-
fail ArgumentError, 'invalid value for "
|
|
138
|
+
# @param [Object] name Value to be assigned
|
|
139
|
+
def name=(name)
|
|
140
|
+
if !name.nil? && name.to_s.length < 1
|
|
141
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
142
142
|
end
|
|
143
143
|
|
|
144
|
-
@
|
|
144
|
+
@name = name
|
|
145
145
|
end
|
|
146
146
|
|
|
147
147
|
# Checks equality by comparing each attribute.
|
|
@@ -150,9 +150,9 @@ module PulpContainerClient
|
|
|
150
150
|
return true if self.equal?(o)
|
|
151
151
|
self.class == o.class &&
|
|
152
152
|
pulp_labels == o.pulp_labels &&
|
|
153
|
-
|
|
153
|
+
description == o.description &&
|
|
154
154
|
retain_repo_versions == o.retain_repo_versions &&
|
|
155
|
-
|
|
155
|
+
name == o.name
|
|
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,
|
|
167
|
+
[pulp_labels, description, retain_repo_versions, name].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
|