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