pulp_container_client 2.16.2 → 2.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
- data/docs/ContentSignaturesApi.md +4 -0
- data/docs/DistributionsContainerApi.md +4 -0
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/docs/PulpContainerNamespacesApi.md +4 -0
- data/docs/RemotesContainerApi.md +4 -0
- data/docs/RepositoriesContainerApi.md +4 -0
- data/docs/RepositoriesContainerPushApi.md +4 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +6 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +6 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +6 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +6 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +6 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +6 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +53 -53
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +46 -46
- data/lib/pulp_container_client/models/container_container_push_repository.rb +43 -43
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +45 -45
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +44 -44
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +43 -43
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_signatures_api_spec.rb +2 -0
- data/spec/api/distributions_container_api_spec.rb +2 -0
- data/spec/api/pulp_container_namespaces_api_spec.rb +2 -0
- data/spec/api/remotes_container_api_spec.rb +2 -0
- data/spec/api/repositories_container_api_spec.rb +2 -0
- data/spec/api/repositories_container_push_api_spec.rb +2 -0
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +6 -6
- 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 +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +53 -53
@@ -15,65 +15,65 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
19
|
-
attr_accessor :retain_repo_versions
|
20
|
-
|
21
18
|
# A reference to an associated signing service.
|
22
19
|
attr_accessor :manifest_signing_service
|
23
20
|
|
24
|
-
attr_accessor :
|
21
|
+
attr_accessor :versions_href
|
22
|
+
|
23
|
+
# An optional description.
|
24
|
+
attr_accessor :description
|
25
25
|
|
26
26
|
attr_accessor :latest_version_href
|
27
27
|
|
28
|
+
attr_accessor :pulp_href
|
29
|
+
|
30
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
31
|
+
attr_accessor :retain_repo_versions
|
32
|
+
|
28
33
|
# Timestamp of creation.
|
29
34
|
attr_accessor :pulp_created
|
30
35
|
|
31
36
|
# A unique name for this repository.
|
32
37
|
attr_accessor :name
|
33
38
|
|
34
|
-
attr_accessor :
|
35
|
-
|
36
|
-
# An optional description.
|
37
|
-
attr_accessor :description
|
38
|
-
|
39
|
-
attr_accessor :versions_href
|
39
|
+
attr_accessor :pulp_labels
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
45
44
|
:'manifest_signing_service' => :'manifest_signing_service',
|
46
|
-
:'
|
45
|
+
:'versions_href' => :'versions_href',
|
46
|
+
:'description' => :'description',
|
47
47
|
:'latest_version_href' => :'latest_version_href',
|
48
|
+
:'pulp_href' => :'pulp_href',
|
49
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
48
50
|
:'pulp_created' => :'pulp_created',
|
49
51
|
:'name' => :'name',
|
50
|
-
:'
|
51
|
-
:'description' => :'description',
|
52
|
-
:'versions_href' => :'versions_href'
|
52
|
+
:'pulp_labels' => :'pulp_labels'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
-
:'retain_repo_versions' => :'Integer',
|
60
59
|
:'manifest_signing_service' => :'String',
|
61
|
-
:'
|
60
|
+
:'versions_href' => :'String',
|
61
|
+
:'description' => :'String',
|
62
62
|
:'latest_version_href' => :'String',
|
63
|
+
:'pulp_href' => :'String',
|
64
|
+
:'retain_repo_versions' => :'Integer',
|
63
65
|
:'pulp_created' => :'DateTime',
|
64
66
|
:'name' => :'String',
|
65
|
-
:'
|
66
|
-
:'description' => :'String',
|
67
|
-
:'versions_href' => :'String'
|
67
|
+
:'pulp_labels' => :'Hash<String, 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
|
-
:'retain_repo_versions',
|
75
74
|
:'manifest_signing_service',
|
76
75
|
:'description',
|
76
|
+
:'retain_repo_versions',
|
77
77
|
])
|
78
78
|
end
|
79
79
|
|
@@ -92,42 +92,42 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'retain_repo_versions')
|
96
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
97
|
-
end
|
98
|
-
|
99
95
|
if attributes.key?(:'manifest_signing_service')
|
100
96
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
101
97
|
end
|
102
98
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
|
105
|
-
|
106
|
-
|
99
|
+
if attributes.key?(:'versions_href')
|
100
|
+
self.versions_href = attributes[:'versions_href']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'description')
|
104
|
+
self.description = attributes[:'description']
|
107
105
|
end
|
108
106
|
|
109
107
|
if attributes.key?(:'latest_version_href')
|
110
108
|
self.latest_version_href = attributes[:'latest_version_href']
|
111
109
|
end
|
112
110
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
111
|
+
if attributes.key?(:'pulp_href')
|
112
|
+
self.pulp_href = attributes[:'pulp_href']
|
115
113
|
end
|
116
114
|
|
117
|
-
if attributes.key?(:'
|
118
|
-
self.
|
115
|
+
if attributes.key?(:'retain_repo_versions')
|
116
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
119
117
|
end
|
120
118
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
119
|
+
if attributes.key?(:'pulp_created')
|
120
|
+
self.pulp_created = attributes[:'pulp_created']
|
123
121
|
end
|
124
122
|
|
125
|
-
if attributes.key?(:'
|
126
|
-
self.
|
123
|
+
if attributes.key?(:'name')
|
124
|
+
self.name = attributes[:'name']
|
127
125
|
end
|
128
126
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
|
127
|
+
if attributes.key?(:'pulp_labels')
|
128
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
129
|
+
self.pulp_labels = value
|
130
|
+
end
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
@@ -169,15 +169,15 @@ module PulpContainerClient
|
|
169
169
|
def ==(o)
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
|
-
retain_repo_versions == o.retain_repo_versions &&
|
173
172
|
manifest_signing_service == o.manifest_signing_service &&
|
174
|
-
|
173
|
+
versions_href == o.versions_href &&
|
174
|
+
description == o.description &&
|
175
175
|
latest_version_href == o.latest_version_href &&
|
176
|
+
pulp_href == o.pulp_href &&
|
177
|
+
retain_repo_versions == o.retain_repo_versions &&
|
176
178
|
pulp_created == o.pulp_created &&
|
177
179
|
name == o.name &&
|
178
|
-
|
179
|
-
description == o.description &&
|
180
|
-
versions_href == o.versions_href
|
180
|
+
pulp_labels == o.pulp_labels
|
181
181
|
end
|
182
182
|
|
183
183
|
# @see the `==` method
|
@@ -189,7 +189,7 @@ module PulpContainerClient
|
|
189
189
|
# Calculates hash code according to all attributes.
|
190
190
|
# @return [Integer] Hash code
|
191
191
|
def hash
|
192
|
-
[
|
192
|
+
[manifest_signing_service, versions_href, description, latest_version_href, pulp_href, retain_repo_versions, pulp_created, name, pulp_labels].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|
@@ -15,16 +15,11 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
# Whether this distribution should be shown in the content app.
|
19
|
-
attr_accessor :hidden
|
20
|
-
|
21
|
-
attr_accessor :pulp_labels
|
22
|
-
|
23
18
|
# An optional content-guard. If none is specified, a default one will be used.
|
24
19
|
attr_accessor :content_guard
|
25
20
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
21
|
+
# Whether this distribution should be shown in the content app.
|
22
|
+
attr_accessor :hidden
|
28
23
|
|
29
24
|
# 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
25
|
attr_accessor :base_path
|
@@ -32,6 +27,11 @@ module PulpContainerClient
|
|
32
27
|
# The latest RepositoryVersion for this Repository will be served.
|
33
28
|
attr_accessor :repository
|
34
29
|
|
30
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
31
|
+
attr_accessor :name
|
32
|
+
|
33
|
+
attr_accessor :pulp_labels
|
34
|
+
|
35
35
|
# RepositoryVersion to be served
|
36
36
|
attr_accessor :repository_version
|
37
37
|
|
@@ -44,12 +44,12 @@ module PulpContainerClient
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
|
-
:'hidden' => :'hidden',
|
48
|
-
:'pulp_labels' => :'pulp_labels',
|
49
47
|
:'content_guard' => :'content_guard',
|
50
|
-
:'
|
48
|
+
:'hidden' => :'hidden',
|
51
49
|
:'base_path' => :'base_path',
|
52
50
|
:'repository' => :'repository',
|
51
|
+
:'name' => :'name',
|
52
|
+
:'pulp_labels' => :'pulp_labels',
|
53
53
|
:'repository_version' => :'repository_version',
|
54
54
|
:'private' => :'private',
|
55
55
|
:'description' => :'description'
|
@@ -59,12 +59,12 @@ module PulpContainerClient
|
|
59
59
|
# Attribute type mapping.
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
|
-
:'hidden' => :'Boolean',
|
63
|
-
:'pulp_labels' => :'Hash<String, String>',
|
64
62
|
:'content_guard' => :'String',
|
65
|
-
:'
|
63
|
+
:'hidden' => :'Boolean',
|
66
64
|
:'base_path' => :'String',
|
67
65
|
:'repository' => :'String',
|
66
|
+
:'name' => :'String',
|
67
|
+
:'pulp_labels' => :'Hash<String, String>',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
70
70
|
:'description' => :'String'
|
@@ -95,32 +95,32 @@ module PulpContainerClient
|
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
97
97
|
|
98
|
+
if attributes.key?(:'content_guard')
|
99
|
+
self.content_guard = attributes[:'content_guard']
|
100
|
+
end
|
101
|
+
|
98
102
|
if attributes.key?(:'hidden')
|
99
103
|
self.hidden = attributes[:'hidden']
|
100
104
|
else
|
101
105
|
self.hidden = false
|
102
106
|
end
|
103
107
|
|
104
|
-
if attributes.key?(:'
|
105
|
-
|
106
|
-
self.pulp_labels = value
|
107
|
-
end
|
108
|
+
if attributes.key?(:'base_path')
|
109
|
+
self.base_path = attributes[:'base_path']
|
108
110
|
end
|
109
111
|
|
110
|
-
if attributes.key?(:'
|
111
|
-
self.
|
112
|
+
if attributes.key?(:'repository')
|
113
|
+
self.repository = attributes[:'repository']
|
112
114
|
end
|
113
115
|
|
114
116
|
if attributes.key?(:'name')
|
115
117
|
self.name = attributes[:'name']
|
116
118
|
end
|
117
119
|
|
118
|
-
if attributes.key?(:'
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
if attributes.key?(:'repository')
|
123
|
-
self.repository = attributes[:'repository']
|
120
|
+
if attributes.key?(:'pulp_labels')
|
121
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
122
|
+
self.pulp_labels = value
|
123
|
+
end
|
124
124
|
end
|
125
125
|
|
126
126
|
if attributes.key?(:'repository_version')
|
@@ -140,14 +140,14 @@ module PulpContainerClient
|
|
140
140
|
# @return Array for valid properties with the reasons
|
141
141
|
def list_invalid_properties
|
142
142
|
invalid_properties = Array.new
|
143
|
-
if !@name.nil? && @name.to_s.length < 1
|
144
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
145
|
-
end
|
146
|
-
|
147
143
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
148
144
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
149
145
|
end
|
150
146
|
|
147
|
+
if !@name.nil? && @name.to_s.length < 1
|
148
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
149
|
+
end
|
150
|
+
|
151
151
|
if !@description.nil? && @description.to_s.length < 1
|
152
152
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
153
153
|
end
|
@@ -158,22 +158,12 @@ module PulpContainerClient
|
|
158
158
|
# Check to see if the all the properties in the model are valid
|
159
159
|
# @return true if the model is valid
|
160
160
|
def valid?
|
161
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
162
161
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
162
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
163
163
|
return false if !@description.nil? && @description.to_s.length < 1
|
164
164
|
true
|
165
165
|
end
|
166
166
|
|
167
|
-
# Custom attribute writer method with validation
|
168
|
-
# @param [Object] name Value to be assigned
|
169
|
-
def name=(name)
|
170
|
-
if !name.nil? && name.to_s.length < 1
|
171
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
172
|
-
end
|
173
|
-
|
174
|
-
@name = name
|
175
|
-
end
|
176
|
-
|
177
167
|
# Custom attribute writer method with validation
|
178
168
|
# @param [Object] base_path Value to be assigned
|
179
169
|
def base_path=(base_path)
|
@@ -184,6 +174,16 @@ module PulpContainerClient
|
|
184
174
|
@base_path = base_path
|
185
175
|
end
|
186
176
|
|
177
|
+
# Custom attribute writer method with validation
|
178
|
+
# @param [Object] name Value to be assigned
|
179
|
+
def name=(name)
|
180
|
+
if !name.nil? && name.to_s.length < 1
|
181
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
182
|
+
end
|
183
|
+
|
184
|
+
@name = name
|
185
|
+
end
|
186
|
+
|
187
187
|
# Custom attribute writer method with validation
|
188
188
|
# @param [Object] description Value to be assigned
|
189
189
|
def description=(description)
|
@@ -199,12 +199,12 @@ module PulpContainerClient
|
|
199
199
|
def ==(o)
|
200
200
|
return true if self.equal?(o)
|
201
201
|
self.class == o.class &&
|
202
|
-
hidden == o.hidden &&
|
203
|
-
pulp_labels == o.pulp_labels &&
|
204
202
|
content_guard == o.content_guard &&
|
205
|
-
|
203
|
+
hidden == o.hidden &&
|
206
204
|
base_path == o.base_path &&
|
207
205
|
repository == o.repository &&
|
206
|
+
name == o.name &&
|
207
|
+
pulp_labels == o.pulp_labels &&
|
208
208
|
repository_version == o.repository_version &&
|
209
209
|
private == o.private &&
|
210
210
|
description == o.description
|
@@ -219,7 +219,7 @@ module PulpContainerClient
|
|
219
219
|
# Calculates hash code according to all attributes.
|
220
220
|
# @return [Integer] Hash code
|
221
221
|
def hash
|
222
|
-
[hidden,
|
222
|
+
[content_guard, hidden, base_path, repository, name, pulp_labels, repository_version, private, description].hash
|
223
223
|
end
|
224
224
|
|
225
225
|
# Builds the object from hash
|
@@ -15,48 +15,48 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
18
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
19
|
-
attr_accessor :retain_repo_versions
|
20
|
-
|
21
18
|
# A reference to an associated signing service.
|
22
19
|
attr_accessor :manifest_signing_service
|
23
20
|
|
24
|
-
|
21
|
+
# An optional description.
|
22
|
+
attr_accessor :description
|
23
|
+
|
24
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
25
|
+
attr_accessor :retain_repo_versions
|
25
26
|
|
26
27
|
# A unique name for this repository.
|
27
28
|
attr_accessor :name
|
28
29
|
|
29
|
-
|
30
|
-
attr_accessor :description
|
30
|
+
attr_accessor :pulp_labels
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
36
35
|
:'manifest_signing_service' => :'manifest_signing_service',
|
37
|
-
:'
|
36
|
+
:'description' => :'description',
|
37
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
38
38
|
:'name' => :'name',
|
39
|
-
:'
|
39
|
+
:'pulp_labels' => :'pulp_labels'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'retain_repo_versions' => :'Integer',
|
47
46
|
:'manifest_signing_service' => :'String',
|
48
|
-
:'
|
47
|
+
:'description' => :'String',
|
48
|
+
:'retain_repo_versions' => :'Integer',
|
49
49
|
:'name' => :'String',
|
50
|
-
:'
|
50
|
+
:'pulp_labels' => :'Hash<String, String>'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
-
:'retain_repo_versions',
|
58
57
|
:'manifest_signing_service',
|
59
|
-
:'description'
|
58
|
+
:'description',
|
59
|
+
:'retain_repo_versions',
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,26 +75,26 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'retain_repo_versions')
|
79
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
80
|
-
end
|
81
|
-
|
82
78
|
if attributes.key?(:'manifest_signing_service')
|
83
79
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
84
80
|
end
|
85
81
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
|
88
|
-
|
89
|
-
|
82
|
+
if attributes.key?(:'description')
|
83
|
+
self.description = attributes[:'description']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'retain_repo_versions')
|
87
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
90
88
|
end
|
91
89
|
|
92
90
|
if attributes.key?(:'name')
|
93
91
|
self.name = attributes[:'name']
|
94
92
|
end
|
95
93
|
|
96
|
-
if attributes.key?(:'
|
97
|
-
|
94
|
+
if attributes.key?(:'pulp_labels')
|
95
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
96
|
+
self.pulp_labels = value
|
97
|
+
end
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -102,6 +102,10 @@ module PulpContainerClient
|
|
102
102
|
# @return Array for valid properties with the reasons
|
103
103
|
def list_invalid_properties
|
104
104
|
invalid_properties = Array.new
|
105
|
+
if !@description.nil? && @description.to_s.length < 1
|
106
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
107
|
+
end
|
108
|
+
|
105
109
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
106
110
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
107
111
|
end
|
@@ -110,22 +114,28 @@ module PulpContainerClient
|
|
110
114
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
111
115
|
end
|
112
116
|
|
113
|
-
if !@description.nil? && @description.to_s.length < 1
|
114
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
115
|
-
end
|
116
|
-
|
117
117
|
invalid_properties
|
118
118
|
end
|
119
119
|
|
120
120
|
# Check to see if the all the properties in the model are valid
|
121
121
|
# @return true if the model is valid
|
122
122
|
def valid?
|
123
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
123
124
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
124
125
|
return false if !@name.nil? && @name.to_s.length < 1
|
125
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
126
126
|
true
|
127
127
|
end
|
128
128
|
|
129
|
+
# Custom attribute writer method with validation
|
130
|
+
# @param [Object] description Value to be assigned
|
131
|
+
def description=(description)
|
132
|
+
if !description.nil? && description.to_s.length < 1
|
133
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
134
|
+
end
|
135
|
+
|
136
|
+
@description = description
|
137
|
+
end
|
138
|
+
|
129
139
|
# Custom attribute writer method with validation
|
130
140
|
# @param [Object] retain_repo_versions Value to be assigned
|
131
141
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -146,26 +156,16 @@ module PulpContainerClient
|
|
146
156
|
@name = name
|
147
157
|
end
|
148
158
|
|
149
|
-
# Custom attribute writer method with validation
|
150
|
-
# @param [Object] description Value to be assigned
|
151
|
-
def description=(description)
|
152
|
-
if !description.nil? && description.to_s.length < 1
|
153
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
154
|
-
end
|
155
|
-
|
156
|
-
@description = description
|
157
|
-
end
|
158
|
-
|
159
159
|
# Checks equality by comparing each attribute.
|
160
160
|
# @param [Object] Object to be compared
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
-
retain_repo_versions == o.retain_repo_versions &&
|
165
164
|
manifest_signing_service == o.manifest_signing_service &&
|
166
|
-
|
165
|
+
description == o.description &&
|
166
|
+
retain_repo_versions == o.retain_repo_versions &&
|
167
167
|
name == o.name &&
|
168
|
-
|
168
|
+
pulp_labels == o.pulp_labels
|
169
169
|
end
|
170
170
|
|
171
171
|
# @see the `==` method
|
@@ -177,7 +177,7 @@ module PulpContainerClient
|
|
177
177
|
# Calculates hash code according to all attributes.
|
178
178
|
# @return [Integer] Hash code
|
179
179
|
def hash
|
180
|
-
[
|
180
|
+
[manifest_signing_service, description, retain_repo_versions, name, pulp_labels].hash
|
181
181
|
end
|
182
182
|
|
183
183
|
# Builds the object from hash
|
@@ -47,7 +47,9 @@ describe 'ContentSignaturesApi' do
|
|
47
47
|
# @option opts [String] :name__icontains Filter results where name contains value
|
48
48
|
# @option opts [String] :name__iexact Filter results where name matches value
|
49
49
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
50
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
50
51
|
# @option opts [String] :name__istartswith Filter results where name starts with value
|
52
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
51
53
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
52
54
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
53
55
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `digest` - Digest * `-digest` - Digest (descending) * `type` - Type * `-type` - Type (descending) * `key_id` - Key id * `-key_id` - Key id (descending) * `timestamp` - Timestamp * `-timestamp` - Timestamp (descending) * `creator` - Creator * `-creator` - Creator (descending) * `data` - Data * `-data` - Data (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -83,7 +83,9 @@ describe 'DistributionsContainerApi' do
|
|
83
83
|
# @option opts [String] :name__icontains Filter results where name contains value
|
84
84
|
# @option opts [String] :name__iexact Filter results where name matches value
|
85
85
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
86
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
86
87
|
# @option opts [String] :name__istartswith Filter results where name starts with value
|
88
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
87
89
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
88
90
|
# @option opts [String] :namespace__name
|
89
91
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
@@ -79,7 +79,9 @@ describe 'PulpContainerNamespacesApi' do
|
|
79
79
|
# @option opts [String] :name__icontains Filter results where name contains value
|
80
80
|
# @option opts [String] :name__iexact Filter results where name matches value
|
81
81
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
82
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
82
83
|
# @option opts [String] :name__istartswith Filter results where name starts with value
|
84
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
83
85
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
84
86
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
85
87
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -79,7 +79,9 @@ describe 'RemotesContainerApi' do
|
|
79
79
|
# @option opts [String] :name__icontains Filter results where name contains value
|
80
80
|
# @option opts [String] :name__iexact Filter results where name matches value
|
81
81
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
82
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
82
83
|
# @option opts [String] :name__istartswith Filter results where name starts with value
|
84
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
83
85
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
84
86
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
85
87
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -135,7 +135,9 @@ describe 'RepositoriesContainerApi' do
|
|
135
135
|
# @option opts [String] :name__icontains Filter results where name contains value
|
136
136
|
# @option opts [String] :name__iexact Filter results where name matches value
|
137
137
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
138
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
138
139
|
# @option opts [String] :name__istartswith Filter results where name starts with value
|
140
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
139
141
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
140
142
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
141
143
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -56,7 +56,9 @@ describe 'RepositoriesContainerPushApi' do
|
|
56
56
|
# @option opts [String] :name__icontains Filter results where name contains value
|
57
57
|
# @option opts [String] :name__iexact Filter results where name matches value
|
58
58
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
59
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
59
60
|
# @option opts [String] :name__istartswith Filter results where name starts with value
|
61
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
60
62
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
61
63
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
62
64
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|