pulp_container_client 2.10.2 → 2.10.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 +5 -6
- data/docs/ContainerContainerDistribution.md +4 -4
- data/docs/ContainerContainerDistributionResponse.md +7 -7
- data/docs/ContainerContainerPushRepository.md +3 -3
- data/docs/ContainerContainerPushRepositoryResponse.md +9 -9
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- 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 -4
- data/lib/pulp_container_client/configuration.rb +1 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +39 -39
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +33 -33
- data/lib/pulp_container_client/models/container_container_push_repository.rb +30 -30
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +42 -42
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +30 -30
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +30 -30
- 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 +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 +50 -55
- 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
@@ -15,24 +15,24 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
+
attr_accessor :pulp_href
|
19
|
+
|
18
20
|
attr_accessor :pulp_labels
|
19
21
|
|
20
22
|
# An optional content-guard. If none is specified, a default one will be used.
|
21
23
|
attr_accessor :content_guard
|
22
24
|
|
23
|
-
#
|
24
|
-
attr_accessor :
|
25
|
-
|
26
|
-
# Timestamp of creation.
|
27
|
-
attr_accessor :pulp_created
|
25
|
+
# The latest RepositoryVersion for this Repository will be served.
|
26
|
+
attr_accessor :repository
|
28
27
|
|
29
28
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
30
29
|
attr_accessor :base_path
|
31
30
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
31
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
32
|
+
attr_accessor :name
|
34
33
|
|
35
|
-
|
34
|
+
# Timestamp of creation.
|
35
|
+
attr_accessor :pulp_created
|
36
36
|
|
37
37
|
# RepositoryVersion to be served
|
38
38
|
attr_accessor :repository_version
|
@@ -52,13 +52,13 @@ module PulpContainerClient
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
|
+
:'pulp_href' => :'pulp_href',
|
55
56
|
:'pulp_labels' => :'pulp_labels',
|
56
57
|
:'content_guard' => :'content_guard',
|
58
|
+
:'repository' => :'repository',
|
59
|
+
:'base_path' => :'base_path',
|
57
60
|
:'name' => :'name',
|
58
61
|
:'pulp_created' => :'pulp_created',
|
59
|
-
:'base_path' => :'base_path',
|
60
|
-
:'repository' => :'repository',
|
61
|
-
:'pulp_href' => :'pulp_href',
|
62
62
|
:'repository_version' => :'repository_version',
|
63
63
|
:'registry_path' => :'registry_path',
|
64
64
|
:'namespace' => :'namespace',
|
@@ -70,13 +70,13 @@ module PulpContainerClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
+
:'pulp_href' => :'String',
|
73
74
|
:'pulp_labels' => :'Object',
|
74
75
|
:'content_guard' => :'String',
|
76
|
+
:'repository' => :'String',
|
77
|
+
:'base_path' => :'String',
|
75
78
|
:'name' => :'String',
|
76
79
|
:'pulp_created' => :'DateTime',
|
77
|
-
:'base_path' => :'String',
|
78
|
-
:'repository' => :'String',
|
79
|
-
:'pulp_href' => :'String',
|
80
80
|
:'repository_version' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
82
82
|
:'namespace' => :'String',
|
@@ -109,6 +109,10 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
+
if attributes.key?(:'pulp_href')
|
113
|
+
self.pulp_href = attributes[:'pulp_href']
|
114
|
+
end
|
115
|
+
|
112
116
|
if attributes.key?(:'pulp_labels')
|
113
117
|
self.pulp_labels = attributes[:'pulp_labels']
|
114
118
|
end
|
@@ -117,24 +121,20 @@ module PulpContainerClient
|
|
117
121
|
self.content_guard = attributes[:'content_guard']
|
118
122
|
end
|
119
123
|
|
120
|
-
if attributes.key?(:'
|
121
|
-
self.
|
122
|
-
end
|
123
|
-
|
124
|
-
if attributes.key?(:'pulp_created')
|
125
|
-
self.pulp_created = attributes[:'pulp_created']
|
124
|
+
if attributes.key?(:'repository')
|
125
|
+
self.repository = attributes[:'repository']
|
126
126
|
end
|
127
127
|
|
128
128
|
if attributes.key?(:'base_path')
|
129
129
|
self.base_path = attributes[:'base_path']
|
130
130
|
end
|
131
131
|
|
132
|
-
if attributes.key?(:'
|
133
|
-
self.
|
132
|
+
if attributes.key?(:'name')
|
133
|
+
self.name = attributes[:'name']
|
134
134
|
end
|
135
135
|
|
136
|
-
if attributes.key?(:'
|
137
|
-
self.
|
136
|
+
if attributes.key?(:'pulp_created')
|
137
|
+
self.pulp_created = attributes[:'pulp_created']
|
138
138
|
end
|
139
139
|
|
140
140
|
if attributes.key?(:'repository_version')
|
@@ -162,22 +162,22 @@ module PulpContainerClient
|
|
162
162
|
# @return Array for valid properties with the reasons
|
163
163
|
def list_invalid_properties
|
164
164
|
invalid_properties = Array.new
|
165
|
-
if @name.nil?
|
166
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
167
|
-
end
|
168
|
-
|
169
165
|
if @base_path.nil?
|
170
166
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
171
167
|
end
|
172
168
|
|
169
|
+
if @name.nil?
|
170
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
171
|
+
end
|
172
|
+
|
173
173
|
invalid_properties
|
174
174
|
end
|
175
175
|
|
176
176
|
# Check to see if the all the properties in the model are valid
|
177
177
|
# @return true if the model is valid
|
178
178
|
def valid?
|
179
|
-
return false if @name.nil?
|
180
179
|
return false if @base_path.nil?
|
180
|
+
return false if @name.nil?
|
181
181
|
true
|
182
182
|
end
|
183
183
|
|
@@ -186,13 +186,13 @@ module PulpContainerClient
|
|
186
186
|
def ==(o)
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
|
+
pulp_href == o.pulp_href &&
|
189
190
|
pulp_labels == o.pulp_labels &&
|
190
191
|
content_guard == o.content_guard &&
|
192
|
+
repository == o.repository &&
|
193
|
+
base_path == o.base_path &&
|
191
194
|
name == o.name &&
|
192
195
|
pulp_created == o.pulp_created &&
|
193
|
-
base_path == o.base_path &&
|
194
|
-
repository == o.repository &&
|
195
|
-
pulp_href == o.pulp_href &&
|
196
196
|
repository_version == o.repository_version &&
|
197
197
|
registry_path == o.registry_path &&
|
198
198
|
namespace == o.namespace &&
|
@@ -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, content_guard,
|
212
|
+
[pulp_href, pulp_labels, content_guard, repository, base_path, name, pulp_created, repository_version, registry_path, namespace, private, description].hash
|
213
213
|
end
|
214
214
|
|
215
215
|
# Builds the object from hash
|
@@ -20,19 +20,19 @@ module PulpContainerClient
|
|
20
20
|
# An optional description.
|
21
21
|
attr_accessor :description
|
22
22
|
|
23
|
-
# A unique name for this repository.
|
24
|
-
attr_accessor :name
|
25
|
-
|
26
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.
|
27
24
|
attr_accessor :retain_repo_versions
|
28
25
|
|
26
|
+
# A unique name for this repository.
|
27
|
+
attr_accessor :name
|
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
|
-
:'
|
35
|
-
:'
|
34
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
35
|
+
:'name' => :'name'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -41,8 +41,8 @@ module PulpContainerClient
|
|
41
41
|
{
|
42
42
|
:'pulp_labels' => :'Object',
|
43
43
|
:'description' => :'String',
|
44
|
-
:'
|
45
|
-
:'
|
44
|
+
:'retain_repo_versions' => :'Integer',
|
45
|
+
:'name' => :'String'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -50,7 +50,7 @@ module PulpContainerClient
|
|
50
50
|
def self.openapi_nullable
|
51
51
|
Set.new([
|
52
52
|
:'description',
|
53
|
-
:'retain_repo_versions'
|
53
|
+
:'retain_repo_versions',
|
54
54
|
])
|
55
55
|
end
|
56
56
|
|
@@ -77,13 +77,13 @@ module PulpContainerClient
|
|
77
77
|
self.description = attributes[:'description']
|
78
78
|
end
|
79
79
|
|
80
|
-
if attributes.key?(:'name')
|
81
|
-
self.name = attributes[:'name']
|
82
|
-
end
|
83
|
-
|
84
80
|
if attributes.key?(:'retain_repo_versions')
|
85
81
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
86
82
|
end
|
83
|
+
|
84
|
+
if attributes.key?(:'name')
|
85
|
+
self.name = attributes[:'name']
|
86
|
+
end
|
87
87
|
end
|
88
88
|
|
89
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -94,6 +94,10 @@ module PulpContainerClient
|
|
94
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
|
+
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
|
+
|
97
101
|
if @name.nil?
|
98
102
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
99
103
|
end
|
@@ -102,10 +106,6 @@ module PulpContainerClient
|
|
102
106
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
103
107
|
end
|
104
108
|
|
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
|
|
@@ -113,9 +113,9 @@ module PulpContainerClient
|
|
113
113
|
# @return true if the model is valid
|
114
114
|
def valid?
|
115
115
|
return false if !@description.nil? && @description.to_s.length < 1
|
116
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
116
117
|
return false if @name.nil?
|
117
118
|
return false if @name.to_s.length < 1
|
118
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
119
119
|
true
|
120
120
|
end
|
121
121
|
|
@@ -129,6 +129,16 @@ module PulpContainerClient
|
|
129
129
|
@description = description
|
130
130
|
end
|
131
131
|
|
132
|
+
# Custom attribute writer method with validation
|
133
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
134
|
+
def retain_repo_versions=(retain_repo_versions)
|
135
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
136
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
137
|
+
end
|
138
|
+
|
139
|
+
@retain_repo_versions = retain_repo_versions
|
140
|
+
end
|
141
|
+
|
132
142
|
# Custom attribute writer method with validation
|
133
143
|
# @param [Object] name Value to be assigned
|
134
144
|
def name=(name)
|
@@ -143,16 +153,6 @@ module PulpContainerClient
|
|
143
153
|
@name = name
|
144
154
|
end
|
145
155
|
|
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
|
description == o.description &&
|
163
|
-
|
164
|
-
|
163
|
+
retain_repo_versions == o.retain_repo_versions &&
|
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, description,
|
176
|
+
[pulp_labels, description, retain_repo_versions, name].hash
|
177
177
|
end
|
178
178
|
|
179
179
|
# Builds the object from hash
|
@@ -15,51 +15,51 @@ 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
20
|
attr_accessor :versions_href
|
21
21
|
|
22
|
+
attr_accessor :pulp_labels
|
23
|
+
|
22
24
|
# An optional description.
|
23
25
|
attr_accessor :description
|
24
26
|
|
27
|
+
# 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.
|
28
|
+
attr_accessor :retain_repo_versions
|
29
|
+
|
30
|
+
attr_accessor :latest_version_href
|
31
|
+
|
25
32
|
# A unique name for this repository.
|
26
33
|
attr_accessor :name
|
27
34
|
|
28
35
|
# Timestamp of creation.
|
29
36
|
attr_accessor :pulp_created
|
30
37
|
|
31
|
-
attr_accessor :latest_version_href
|
32
|
-
|
33
|
-
attr_accessor :pulp_href
|
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
|
-
:'
|
41
|
+
:'pulp_href' => :'pulp_href',
|
42
42
|
:'versions_href' => :'versions_href',
|
43
|
+
:'pulp_labels' => :'pulp_labels',
|
43
44
|
:'description' => :'description',
|
44
|
-
:'
|
45
|
-
:'pulp_created' => :'pulp_created',
|
45
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
46
46
|
:'latest_version_href' => :'latest_version_href',
|
47
|
-
:'
|
48
|
-
:'
|
47
|
+
:'name' => :'name',
|
48
|
+
:'pulp_created' => :'pulp_created'
|
49
49
|
}
|
50
50
|
end
|
51
51
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
-
:'
|
55
|
+
:'pulp_href' => :'String',
|
56
56
|
:'versions_href' => :'String',
|
57
|
+
:'pulp_labels' => :'Object',
|
57
58
|
:'description' => :'String',
|
58
|
-
:'
|
59
|
-
:'pulp_created' => :'DateTime',
|
59
|
+
:'retain_repo_versions' => :'Integer',
|
60
60
|
:'latest_version_href' => :'String',
|
61
|
-
:'
|
62
|
-
:'
|
61
|
+
:'name' => :'String',
|
62
|
+
:'pulp_created' => :'DateTime'
|
63
63
|
}
|
64
64
|
end
|
65
65
|
|
@@ -67,7 +67,7 @@ module PulpContainerClient
|
|
67
67
|
def self.openapi_nullable
|
68
68
|
Set.new([
|
69
69
|
:'description',
|
70
|
-
:'retain_repo_versions'
|
70
|
+
:'retain_repo_versions',
|
71
71
|
])
|
72
72
|
end
|
73
73
|
|
@@ -86,36 +86,36 @@ 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
93
|
if attributes.key?(:'versions_href')
|
94
94
|
self.versions_href = attributes[:'versions_href']
|
95
95
|
end
|
96
96
|
|
97
|
-
if attributes.key?(:'
|
98
|
-
self.
|
97
|
+
if attributes.key?(:'pulp_labels')
|
98
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
99
99
|
end
|
100
100
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
101
|
+
if attributes.key?(:'description')
|
102
|
+
self.description = attributes[:'description']
|
103
103
|
end
|
104
104
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
105
|
+
if attributes.key?(:'retain_repo_versions')
|
106
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
107
107
|
end
|
108
108
|
|
109
109
|
if attributes.key?(:'latest_version_href')
|
110
110
|
self.latest_version_href = attributes[:'latest_version_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?(:'pulp_created')
|
118
|
+
self.pulp_created = attributes[:'pulp_created']
|
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
|
|
@@ -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
|
-
|
160
|
+
pulp_href == o.pulp_href &&
|
161
161
|
versions_href == o.versions_href &&
|
162
|
+
pulp_labels == o.pulp_labels &&
|
162
163
|
description == o.description &&
|
163
|
-
|
164
|
-
pulp_created == o.pulp_created &&
|
164
|
+
retain_repo_versions == o.retain_repo_versions &&
|
165
165
|
latest_version_href == o.latest_version_href &&
|
166
|
-
|
167
|
-
|
166
|
+
name == o.name &&
|
167
|
+
pulp_created == o.pulp_created
|
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, versions_href, pulp_labels, description, retain_repo_versions, latest_version_href, name, pulp_created].hash
|
180
180
|
end
|
181
181
|
|
182
182
|
# Builds the object from hash
|
@@ -20,14 +20,14 @@ module PulpContainerClient
|
|
20
20
|
# An optional content-guard. If none is specified, a default one will be used.
|
21
21
|
attr_accessor :content_guard
|
22
22
|
|
23
|
-
#
|
24
|
-
attr_accessor :
|
23
|
+
# The latest RepositoryVersion for this Repository will be served.
|
24
|
+
attr_accessor :repository
|
25
25
|
|
26
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\")
|
27
27
|
attr_accessor :base_path
|
28
28
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
29
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
30
|
+
attr_accessor :name
|
31
31
|
|
32
32
|
# RepositoryVersion to be served
|
33
33
|
attr_accessor :repository_version
|
@@ -43,9 +43,9 @@ module PulpContainerClient
|
|
43
43
|
{
|
44
44
|
:'pulp_labels' => :'pulp_labels',
|
45
45
|
:'content_guard' => :'content_guard',
|
46
|
-
:'name' => :'name',
|
47
|
-
:'base_path' => :'base_path',
|
48
46
|
:'repository' => :'repository',
|
47
|
+
:'base_path' => :'base_path',
|
48
|
+
:'name' => :'name',
|
49
49
|
:'repository_version' => :'repository_version',
|
50
50
|
:'private' => :'private',
|
51
51
|
:'description' => :'description'
|
@@ -57,9 +57,9 @@ module PulpContainerClient
|
|
57
57
|
{
|
58
58
|
:'pulp_labels' => :'Object',
|
59
59
|
:'content_guard' => :'String',
|
60
|
-
:'name' => :'String',
|
61
|
-
:'base_path' => :'String',
|
62
60
|
:'repository' => :'String',
|
61
|
+
:'base_path' => :'String',
|
62
|
+
:'name' => :'String',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
@@ -98,16 +98,16 @@ module PulpContainerClient
|
|
98
98
|
self.content_guard = attributes[:'content_guard']
|
99
99
|
end
|
100
100
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
101
|
+
if attributes.key?(:'repository')
|
102
|
+
self.repository = attributes[:'repository']
|
103
103
|
end
|
104
104
|
|
105
105
|
if attributes.key?(:'base_path')
|
106
106
|
self.base_path = attributes[:'base_path']
|
107
107
|
end
|
108
108
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
109
|
+
if attributes.key?(:'name')
|
110
|
+
self.name = attributes[:'name']
|
111
111
|
end
|
112
112
|
|
113
113
|
if attributes.key?(:'repository_version')
|
@@ -127,14 +127,14 @@ module PulpContainerClient
|
|
127
127
|
# @return Array for valid properties with the reasons
|
128
128
|
def list_invalid_properties
|
129
129
|
invalid_properties = Array.new
|
130
|
-
if !@name.nil? && @name.to_s.length < 1
|
131
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
132
|
-
end
|
133
|
-
|
134
130
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
135
131
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
136
132
|
end
|
137
133
|
|
134
|
+
if !@name.nil? && @name.to_s.length < 1
|
135
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
136
|
+
end
|
137
|
+
|
138
138
|
if !@description.nil? && @description.to_s.length < 1
|
139
139
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
140
140
|
end
|
@@ -145,22 +145,12 @@ module PulpContainerClient
|
|
145
145
|
# Check to see if the all the properties in the model are valid
|
146
146
|
# @return true if the model is valid
|
147
147
|
def valid?
|
148
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
149
148
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
149
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
150
150
|
return false if !@description.nil? && @description.to_s.length < 1
|
151
151
|
true
|
152
152
|
end
|
153
153
|
|
154
|
-
# Custom attribute writer method with validation
|
155
|
-
# @param [Object] name Value to be assigned
|
156
|
-
def name=(name)
|
157
|
-
if !name.nil? && name.to_s.length < 1
|
158
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
159
|
-
end
|
160
|
-
|
161
|
-
@name = name
|
162
|
-
end
|
163
|
-
|
164
154
|
# Custom attribute writer method with validation
|
165
155
|
# @param [Object] base_path Value to be assigned
|
166
156
|
def base_path=(base_path)
|
@@ -171,6 +161,16 @@ module PulpContainerClient
|
|
171
161
|
@base_path = base_path
|
172
162
|
end
|
173
163
|
|
164
|
+
# Custom attribute writer method with validation
|
165
|
+
# @param [Object] name Value to be assigned
|
166
|
+
def name=(name)
|
167
|
+
if !name.nil? && name.to_s.length < 1
|
168
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
169
|
+
end
|
170
|
+
|
171
|
+
@name = name
|
172
|
+
end
|
173
|
+
|
174
174
|
# Custom attribute writer method with validation
|
175
175
|
# @param [Object] description Value to be assigned
|
176
176
|
def description=(description)
|
@@ -188,9 +188,9 @@ module PulpContainerClient
|
|
188
188
|
self.class == o.class &&
|
189
189
|
pulp_labels == o.pulp_labels &&
|
190
190
|
content_guard == o.content_guard &&
|
191
|
-
name == o.name &&
|
192
|
-
base_path == o.base_path &&
|
193
191
|
repository == o.repository &&
|
192
|
+
base_path == o.base_path &&
|
193
|
+
name == o.name &&
|
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, content_guard,
|
208
|
+
[pulp_labels, content_guard, repository, base_path, name, repository_version, private, description].hash
|
209
209
|
end
|
210
210
|
|
211
211
|
# Builds the object from hash
|