pulp_container_client 2.16.0 → 2.16.1
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 +36 -25
- data/docs/ContainerContainerDistribution.md +4 -4
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- data/docs/ContentBlobsApi.md +3 -1
- data/docs/ContentManifestsApi.md +3 -1
- data/docs/ContentSignaturesApi.md +7 -1
- data/docs/ContentTagsApi.md +3 -1
- data/docs/DistributionsContainerApi.md +132 -10
- data/docs/IndexDynamicApi.md +1 -1
- data/docs/IndexStaticApi.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/docs/PulpContainerNamespacesApi.md +19 -9
- data/docs/RemotesContainerApi.md +131 -9
- data/docs/RepositoriesContainerApi.md +132 -10
- data/docs/RepositoriesContainerPushApi.md +20 -10
- data/docs/RepositoriesContainerPushVersionsApi.md +3 -1
- data/docs/RepositoriesContainerVersionsApi.md +3 -1
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/TokenApi.md +1 -1
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulp_container_client/api/content_blobs_api.rb +3 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +3 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +9 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +3 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +157 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +17 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +157 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +157 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +17 -0
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +3 -0
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +3 -0
- data/lib/pulp_container_client/configuration.rb +2 -2
- data/lib/pulp_container_client/models/container_container_distribution.rb +21 -21
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +35 -35
- data/lib/pulp_container_client/models/container_container_push_repository.rb +45 -45
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +39 -39
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +21 -21
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +45 -45
- data/lib/pulp_container_client/models/set_label.rb +252 -0
- data/lib/pulp_container_client/models/set_label_response.rb +243 -0
- data/lib/pulp_container_client/models/unset_label.rb +242 -0
- data/lib/pulp_container_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +4 -0
- data/spec/api/content_blobs_api_spec.rb +1 -0
- data/spec/api/content_manifests_api_spec.rb +1 -0
- data/spec/api/content_signatures_api_spec.rb +3 -0
- data/spec/api/content_tags_api_spec.rb +1 -0
- data/spec/api/distributions_container_api_spec.rb +33 -0
- data/spec/api/pulp_container_namespaces_api_spec.rb +7 -0
- data/spec/api/remotes_container_api_spec.rb +33 -0
- data/spec/api/repositories_container_api_spec.rb +33 -0
- data/spec/api/repositories_container_push_api_spec.rb +7 -0
- data/spec/api/repositories_container_push_versions_api_spec.rb +1 -0
- data/spec/api/repositories_container_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +6 -6
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +60 -44
@@ -103,6 +103,7 @@ module PulpContainerClient
|
|
103
103
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
104
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
105
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
106
|
+
# @option opts [String] :q
|
106
107
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
107
108
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
108
109
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -133,6 +134,7 @@ module PulpContainerClient
|
|
133
134
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
134
135
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
135
136
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
137
|
+
# @option opts [String] :q
|
136
138
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
137
139
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
138
140
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -171,6 +173,7 @@ module PulpContainerClient
|
|
171
173
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
172
174
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
173
175
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
176
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
174
177
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
175
178
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
176
179
|
|
@@ -103,6 +103,7 @@ module PulpContainerClient
|
|
103
103
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
104
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
105
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
106
|
+
# @option opts [String] :q
|
106
107
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
107
108
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
108
109
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -133,6 +134,7 @@ module PulpContainerClient
|
|
133
134
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
134
135
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
135
136
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
137
|
+
# @option opts [String] :q
|
136
138
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
137
139
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
138
140
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -171,6 +173,7 @@ module PulpContainerClient
|
|
171
173
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
172
174
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
173
175
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
176
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
174
177
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
175
178
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
176
179
|
|
@@ -127,7 +127,7 @@ module PulpContainerClient
|
|
127
127
|
attr_accessor :force_ending_format
|
128
128
|
|
129
129
|
def initialize
|
130
|
-
@scheme = '
|
130
|
+
@scheme = 'http'
|
131
131
|
@host = 'pulp'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
@@ -210,7 +210,7 @@ module PulpContainerClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "
|
213
|
+
url: "http://pulp/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -20,18 +20,18 @@ module PulpContainerClient
|
|
20
20
|
|
21
21
|
attr_accessor :pulp_labels
|
22
22
|
|
23
|
-
# The latest RepositoryVersion for this Repository will be served.
|
24
|
-
attr_accessor :repository
|
25
|
-
|
26
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
27
|
-
attr_accessor :content_guard
|
28
|
-
|
29
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\")
|
30
24
|
attr_accessor :base_path
|
31
25
|
|
32
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
33
27
|
attr_accessor :name
|
34
28
|
|
29
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
30
|
+
attr_accessor :content_guard
|
31
|
+
|
32
|
+
# The latest RepositoryVersion for this Repository will be served.
|
33
|
+
attr_accessor :repository
|
34
|
+
|
35
35
|
# RepositoryVersion to be served
|
36
36
|
attr_accessor :repository_version
|
37
37
|
|
@@ -46,10 +46,10 @@ module PulpContainerClient
|
|
46
46
|
{
|
47
47
|
:'hidden' => :'hidden',
|
48
48
|
:'pulp_labels' => :'pulp_labels',
|
49
|
-
:'repository' => :'repository',
|
50
|
-
:'content_guard' => :'content_guard',
|
51
49
|
:'base_path' => :'base_path',
|
52
50
|
:'name' => :'name',
|
51
|
+
:'content_guard' => :'content_guard',
|
52
|
+
:'repository' => :'repository',
|
53
53
|
:'repository_version' => :'repository_version',
|
54
54
|
:'private' => :'private',
|
55
55
|
:'description' => :'description'
|
@@ -61,10 +61,10 @@ module PulpContainerClient
|
|
61
61
|
{
|
62
62
|
:'hidden' => :'Boolean',
|
63
63
|
:'pulp_labels' => :'Hash<String, String>',
|
64
|
-
:'repository' => :'String',
|
65
|
-
:'content_guard' => :'String',
|
66
64
|
:'base_path' => :'String',
|
67
65
|
:'name' => :'String',
|
66
|
+
:'content_guard' => :'String',
|
67
|
+
:'repository' => :'String',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
70
70
|
:'description' => :'String'
|
@@ -107,14 +107,6 @@ module PulpContainerClient
|
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
110
|
-
if attributes.key?(:'repository')
|
111
|
-
self.repository = attributes[:'repository']
|
112
|
-
end
|
113
|
-
|
114
|
-
if attributes.key?(:'content_guard')
|
115
|
-
self.content_guard = attributes[:'content_guard']
|
116
|
-
end
|
117
|
-
|
118
110
|
if attributes.key?(:'base_path')
|
119
111
|
self.base_path = attributes[:'base_path']
|
120
112
|
end
|
@@ -123,6 +115,14 @@ module PulpContainerClient
|
|
123
115
|
self.name = attributes[:'name']
|
124
116
|
end
|
125
117
|
|
118
|
+
if attributes.key?(:'content_guard')
|
119
|
+
self.content_guard = attributes[:'content_guard']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'repository')
|
123
|
+
self.repository = attributes[:'repository']
|
124
|
+
end
|
125
|
+
|
126
126
|
if attributes.key?(:'repository_version')
|
127
127
|
self.repository_version = attributes[:'repository_version']
|
128
128
|
end
|
@@ -219,10 +219,10 @@ module PulpContainerClient
|
|
219
219
|
self.class == o.class &&
|
220
220
|
hidden == o.hidden &&
|
221
221
|
pulp_labels == o.pulp_labels &&
|
222
|
-
repository == o.repository &&
|
223
|
-
content_guard == o.content_guard &&
|
224
222
|
base_path == o.base_path &&
|
225
223
|
name == o.name &&
|
224
|
+
content_guard == o.content_guard &&
|
225
|
+
repository == o.repository &&
|
226
226
|
repository_version == o.repository_version &&
|
227
227
|
private == o.private &&
|
228
228
|
description == o.description
|
@@ -237,7 +237,7 @@ module PulpContainerClient
|
|
237
237
|
# Calculates hash code according to all attributes.
|
238
238
|
# @return [Integer] Hash code
|
239
239
|
def hash
|
240
|
-
[hidden, pulp_labels,
|
240
|
+
[hidden, pulp_labels, base_path, name, content_guard, repository, repository_version, private, description].hash
|
241
241
|
end
|
242
242
|
|
243
243
|
# Builds the object from hash
|
@@ -15,27 +15,27 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
# Timestamp of creation.
|
19
|
-
attr_accessor :pulp_created
|
20
|
-
|
21
18
|
# Whether this distribution should be shown in the content app.
|
22
19
|
attr_accessor :hidden
|
23
20
|
|
21
|
+
# Timestamp of creation.
|
22
|
+
attr_accessor :pulp_created
|
23
|
+
|
24
24
|
attr_accessor :pulp_labels
|
25
25
|
|
26
|
-
# The
|
27
|
-
attr_accessor :
|
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
|
+
attr_accessor :base_path
|
28
28
|
|
29
|
-
|
29
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
30
|
+
attr_accessor :name
|
30
31
|
|
31
32
|
# An optional content-guard. If none is specified, a default one will be used.
|
32
33
|
attr_accessor :content_guard
|
33
34
|
|
34
|
-
# The
|
35
|
-
attr_accessor :
|
35
|
+
# The latest RepositoryVersion for this Repository will be served.
|
36
|
+
attr_accessor :repository
|
36
37
|
|
37
|
-
|
38
|
-
attr_accessor :name
|
38
|
+
attr_accessor :pulp_href
|
39
39
|
|
40
40
|
# RepositoryVersion to be served
|
41
41
|
attr_accessor :repository_version
|
@@ -55,14 +55,14 @@ module PulpContainerClient
|
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
56
|
def self.attribute_map
|
57
57
|
{
|
58
|
-
:'pulp_created' => :'pulp_created',
|
59
58
|
:'hidden' => :'hidden',
|
59
|
+
:'pulp_created' => :'pulp_created',
|
60
60
|
:'pulp_labels' => :'pulp_labels',
|
61
|
-
:'repository' => :'repository',
|
62
|
-
:'pulp_href' => :'pulp_href',
|
63
|
-
:'content_guard' => :'content_guard',
|
64
61
|
:'base_path' => :'base_path',
|
65
62
|
:'name' => :'name',
|
63
|
+
:'content_guard' => :'content_guard',
|
64
|
+
:'repository' => :'repository',
|
65
|
+
:'pulp_href' => :'pulp_href',
|
66
66
|
:'repository_version' => :'repository_version',
|
67
67
|
:'registry_path' => :'registry_path',
|
68
68
|
:'namespace' => :'namespace',
|
@@ -74,14 +74,14 @@ module PulpContainerClient
|
|
74
74
|
# Attribute type mapping.
|
75
75
|
def self.openapi_types
|
76
76
|
{
|
77
|
-
:'pulp_created' => :'DateTime',
|
78
77
|
:'hidden' => :'Boolean',
|
78
|
+
:'pulp_created' => :'DateTime',
|
79
79
|
:'pulp_labels' => :'Hash<String, String>',
|
80
|
-
:'repository' => :'String',
|
81
|
-
:'pulp_href' => :'String',
|
82
|
-
:'content_guard' => :'String',
|
83
80
|
:'base_path' => :'String',
|
84
81
|
:'name' => :'String',
|
82
|
+
:'content_guard' => :'String',
|
83
|
+
:'repository' => :'String',
|
84
|
+
:'pulp_href' => :'String',
|
85
85
|
:'repository_version' => :'String',
|
86
86
|
:'registry_path' => :'String',
|
87
87
|
:'namespace' => :'String',
|
@@ -114,40 +114,40 @@ module PulpContainerClient
|
|
114
114
|
h[k.to_sym] = v
|
115
115
|
}
|
116
116
|
|
117
|
-
if attributes.key?(:'pulp_created')
|
118
|
-
self.pulp_created = attributes[:'pulp_created']
|
119
|
-
end
|
120
|
-
|
121
117
|
if attributes.key?(:'hidden')
|
122
118
|
self.hidden = attributes[:'hidden']
|
123
119
|
else
|
124
120
|
self.hidden = false
|
125
121
|
end
|
126
122
|
|
123
|
+
if attributes.key?(:'pulp_created')
|
124
|
+
self.pulp_created = attributes[:'pulp_created']
|
125
|
+
end
|
126
|
+
|
127
127
|
if attributes.key?(:'pulp_labels')
|
128
128
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
129
129
|
self.pulp_labels = value
|
130
130
|
end
|
131
131
|
end
|
132
132
|
|
133
|
-
if attributes.key?(:'
|
134
|
-
self.
|
133
|
+
if attributes.key?(:'base_path')
|
134
|
+
self.base_path = attributes[:'base_path']
|
135
135
|
end
|
136
136
|
|
137
|
-
if attributes.key?(:'
|
138
|
-
self.
|
137
|
+
if attributes.key?(:'name')
|
138
|
+
self.name = attributes[:'name']
|
139
139
|
end
|
140
140
|
|
141
141
|
if attributes.key?(:'content_guard')
|
142
142
|
self.content_guard = attributes[:'content_guard']
|
143
143
|
end
|
144
144
|
|
145
|
-
if attributes.key?(:'
|
146
|
-
self.
|
145
|
+
if attributes.key?(:'repository')
|
146
|
+
self.repository = attributes[:'repository']
|
147
147
|
end
|
148
148
|
|
149
|
-
if attributes.key?(:'
|
150
|
-
self.
|
149
|
+
if attributes.key?(:'pulp_href')
|
150
|
+
self.pulp_href = attributes[:'pulp_href']
|
151
151
|
end
|
152
152
|
|
153
153
|
if attributes.key?(:'repository_version')
|
@@ -199,14 +199,14 @@ module PulpContainerClient
|
|
199
199
|
def ==(o)
|
200
200
|
return true if self.equal?(o)
|
201
201
|
self.class == o.class &&
|
202
|
-
pulp_created == o.pulp_created &&
|
203
202
|
hidden == o.hidden &&
|
203
|
+
pulp_created == o.pulp_created &&
|
204
204
|
pulp_labels == o.pulp_labels &&
|
205
|
-
repository == o.repository &&
|
206
|
-
pulp_href == o.pulp_href &&
|
207
|
-
content_guard == o.content_guard &&
|
208
205
|
base_path == o.base_path &&
|
209
206
|
name == o.name &&
|
207
|
+
content_guard == o.content_guard &&
|
208
|
+
repository == o.repository &&
|
209
|
+
pulp_href == o.pulp_href &&
|
210
210
|
repository_version == o.repository_version &&
|
211
211
|
registry_path == o.registry_path &&
|
212
212
|
namespace == o.namespace &&
|
@@ -223,7 +223,7 @@ module PulpContainerClient
|
|
223
223
|
# Calculates hash code according to all attributes.
|
224
224
|
# @return [Integer] Hash code
|
225
225
|
def hash
|
226
|
-
[
|
226
|
+
[hidden, pulp_created, pulp_labels, base_path, name, content_guard, repository, pulp_href, repository_version, registry_path, namespace, private, description].hash
|
227
227
|
end
|
228
228
|
|
229
229
|
# 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 ContainerContainerPushRepository
|
18
|
-
# A reference to an associated signing service.
|
19
|
-
attr_accessor :manifest_signing_service
|
20
|
-
|
21
|
-
attr_accessor :pulp_labels
|
22
|
-
|
23
18
|
# Retain X versions of the repository. Default is null which retains all versions.
|
24
19
|
attr_accessor :retain_repo_versions
|
25
20
|
|
26
|
-
|
27
|
-
attr_accessor :description
|
21
|
+
attr_accessor :pulp_labels
|
28
22
|
|
29
23
|
# A unique name for this repository.
|
30
24
|
attr_accessor :name
|
31
25
|
|
26
|
+
# A reference to an associated signing service.
|
27
|
+
attr_accessor :manifest_signing_service
|
28
|
+
|
29
|
+
# An optional description.
|
30
|
+
attr_accessor :description
|
31
|
+
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
36
|
-
:'pulp_labels' => :'pulp_labels',
|
37
35
|
:'retain_repo_versions' => :'retain_repo_versions',
|
38
|
-
:'
|
39
|
-
:'name' => :'name'
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
37
|
+
:'name' => :'name',
|
38
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
39
|
+
:'description' => :'description'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'manifest_signing_service' => :'String',
|
47
|
-
:'pulp_labels' => :'Hash<String, String>',
|
48
46
|
:'retain_repo_versions' => :'Integer',
|
49
|
-
:'
|
50
|
-
:'name' => :'String'
|
47
|
+
:'pulp_labels' => :'Hash<String, String>',
|
48
|
+
:'name' => :'String',
|
49
|
+
:'manifest_signing_service' => :'String',
|
50
|
+
:'description' => :'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
|
-
:'manifest_signing_service',
|
58
57
|
:'retain_repo_versions',
|
59
|
-
:'
|
58
|
+
:'manifest_signing_service',
|
59
|
+
:'description'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,8 +75,8 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
78
|
+
if attributes.key?(:'retain_repo_versions')
|
79
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
80
80
|
end
|
81
81
|
|
82
82
|
if attributes.key?(:'pulp_labels')
|
@@ -85,16 +85,16 @@ module PulpContainerClient
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
-
if attributes.key?(:'
|
89
|
-
self.
|
88
|
+
if attributes.key?(:'name')
|
89
|
+
self.name = attributes[:'name']
|
90
90
|
end
|
91
91
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
92
|
+
if attributes.key?(:'manifest_signing_service')
|
93
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
94
94
|
end
|
95
95
|
|
96
|
-
if attributes.key?(:'
|
97
|
-
self.
|
96
|
+
if attributes.key?(:'description')
|
97
|
+
self.description = attributes[:'description']
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -106,10 +106,6 @@ module PulpContainerClient
|
|
106
106
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
107
107
|
end
|
108
108
|
|
109
|
-
if !@description.nil? && @description.to_s.length < 1
|
110
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
111
|
-
end
|
112
|
-
|
113
109
|
if @name.nil?
|
114
110
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
115
111
|
end
|
@@ -118,6 +114,10 @@ module PulpContainerClient
|
|
118
114
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
119
115
|
end
|
120
116
|
|
117
|
+
if !@description.nil? && @description.to_s.length < 1
|
118
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
119
|
+
end
|
120
|
+
|
121
121
|
invalid_properties
|
122
122
|
end
|
123
123
|
|
@@ -125,9 +125,9 @@ module PulpContainerClient
|
|
125
125
|
# @return true if the model is valid
|
126
126
|
def valid?
|
127
127
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
128
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
129
128
|
return false if @name.nil?
|
130
129
|
return false if @name.to_s.length < 1
|
130
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
131
131
|
true
|
132
132
|
end
|
133
133
|
|
@@ -141,16 +141,6 @@ module PulpContainerClient
|
|
141
141
|
@retain_repo_versions = retain_repo_versions
|
142
142
|
end
|
143
143
|
|
144
|
-
# Custom attribute writer method with validation
|
145
|
-
# @param [Object] description Value to be assigned
|
146
|
-
def description=(description)
|
147
|
-
if !description.nil? && description.to_s.length < 1
|
148
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
149
|
-
end
|
150
|
-
|
151
|
-
@description = description
|
152
|
-
end
|
153
|
-
|
154
144
|
# Custom attribute writer method with validation
|
155
145
|
# @param [Object] name Value to be assigned
|
156
146
|
def name=(name)
|
@@ -165,16 +155,26 @@ module PulpContainerClient
|
|
165
155
|
@name = name
|
166
156
|
end
|
167
157
|
|
158
|
+
# Custom attribute writer method with validation
|
159
|
+
# @param [Object] description Value to be assigned
|
160
|
+
def description=(description)
|
161
|
+
if !description.nil? && description.to_s.length < 1
|
162
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
163
|
+
end
|
164
|
+
|
165
|
+
@description = description
|
166
|
+
end
|
167
|
+
|
168
168
|
# Checks equality by comparing each attribute.
|
169
169
|
# @param [Object] Object to be compared
|
170
170
|
def ==(o)
|
171
171
|
return true if self.equal?(o)
|
172
172
|
self.class == o.class &&
|
173
|
-
manifest_signing_service == o.manifest_signing_service &&
|
174
|
-
pulp_labels == o.pulp_labels &&
|
175
173
|
retain_repo_versions == o.retain_repo_versions &&
|
176
|
-
|
177
|
-
name == o.name
|
174
|
+
pulp_labels == o.pulp_labels &&
|
175
|
+
name == o.name &&
|
176
|
+
manifest_signing_service == o.manifest_signing_service &&
|
177
|
+
description == o.description
|
178
178
|
end
|
179
179
|
|
180
180
|
# @see the `==` method
|
@@ -186,7 +186,7 @@ module PulpContainerClient
|
|
186
186
|
# Calculates hash code according to all attributes.
|
187
187
|
# @return [Integer] Hash code
|
188
188
|
def hash
|
189
|
-
[
|
189
|
+
[retain_repo_versions, pulp_labels, name, manifest_signing_service, description].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# 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
|
-
# A reference to an associated signing service.
|
22
|
-
attr_accessor :manifest_signing_service
|
23
|
-
|
24
|
-
attr_accessor :pulp_labels
|
25
|
-
|
26
21
|
# Retain X versions of the repository. Default is null which retains all versions.
|
27
22
|
attr_accessor :retain_repo_versions
|
28
23
|
|
29
|
-
|
30
|
-
attr_accessor :description
|
24
|
+
attr_accessor :pulp_labels
|
31
25
|
|
32
|
-
|
26
|
+
# A unique name for this repository.
|
27
|
+
attr_accessor :name
|
33
28
|
|
34
29
|
attr_accessor :versions_href
|
35
30
|
|
31
|
+
# A reference to an associated signing service.
|
32
|
+
attr_accessor :manifest_signing_service
|
33
|
+
|
34
|
+
# An optional description.
|
35
|
+
attr_accessor :description
|
36
|
+
|
36
37
|
attr_accessor :pulp_href
|
37
38
|
|
38
|
-
|
39
|
-
attr_accessor :name
|
39
|
+
attr_accessor :latest_version_href
|
40
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
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
46
|
-
:'pulp_labels' => :'pulp_labels',
|
47
45
|
:'retain_repo_versions' => :'retain_repo_versions',
|
48
|
-
:'
|
49
|
-
:'
|
46
|
+
:'pulp_labels' => :'pulp_labels',
|
47
|
+
:'name' => :'name',
|
50
48
|
:'versions_href' => :'versions_href',
|
49
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
50
|
+
:'description' => :'description',
|
51
51
|
:'pulp_href' => :'pulp_href',
|
52
|
-
:'
|
52
|
+
:'latest_version_href' => :'latest_version_href'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
@@ -57,22 +57,22 @@ module PulpContainerClient
|
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
59
|
:'pulp_created' => :'DateTime',
|
60
|
-
:'manifest_signing_service' => :'String',
|
61
|
-
:'pulp_labels' => :'Hash<String, String>',
|
62
60
|
:'retain_repo_versions' => :'Integer',
|
63
|
-
:'
|
64
|
-
:'
|
61
|
+
:'pulp_labels' => :'Hash<String, String>',
|
62
|
+
:'name' => :'String',
|
65
63
|
:'versions_href' => :'String',
|
64
|
+
:'manifest_signing_service' => :'String',
|
65
|
+
:'description' => :'String',
|
66
66
|
:'pulp_href' => :'String',
|
67
|
-
:'
|
67
|
+
:'latest_version_href' => :'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
|
-
:'manifest_signing_service',
|
75
74
|
:'retain_repo_versions',
|
75
|
+
:'manifest_signing_service',
|
76
76
|
:'description',
|
77
77
|
])
|
78
78
|
end
|
@@ -96,8 +96,8 @@ module PulpContainerClient
|
|
96
96
|
self.pulp_created = attributes[:'pulp_created']
|
97
97
|
end
|
98
98
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
99
|
+
if attributes.key?(:'retain_repo_versions')
|
100
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
101
101
|
end
|
102
102
|
|
103
103
|
if attributes.key?(:'pulp_labels')
|
@@ -106,28 +106,28 @@ module PulpContainerClient
|
|
106
106
|
end
|
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
|
-
if attributes.key?(:'
|
114
|
-
self.
|
113
|
+
if attributes.key?(:'versions_href')
|
114
|
+
self.versions_href = attributes[:'versions_href']
|
115
115
|
end
|
116
116
|
|
117
|
-
if attributes.key?(:'
|
118
|
-
self.
|
117
|
+
if attributes.key?(:'manifest_signing_service')
|
118
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
119
119
|
end
|
120
120
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
121
|
+
if attributes.key?(:'description')
|
122
|
+
self.description = attributes[:'description']
|
123
123
|
end
|
124
124
|
|
125
125
|
if attributes.key?(:'pulp_href')
|
126
126
|
self.pulp_href = attributes[:'pulp_href']
|
127
127
|
end
|
128
128
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
self.
|
129
|
+
if attributes.key?(:'latest_version_href')
|
130
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
@@ -170,14 +170,14 @@ module PulpContainerClient
|
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
172
|
pulp_created == o.pulp_created &&
|
173
|
-
manifest_signing_service == o.manifest_signing_service &&
|
174
|
-
pulp_labels == o.pulp_labels &&
|
175
173
|
retain_repo_versions == o.retain_repo_versions &&
|
176
|
-
|
177
|
-
|
174
|
+
pulp_labels == o.pulp_labels &&
|
175
|
+
name == o.name &&
|
178
176
|
versions_href == o.versions_href &&
|
177
|
+
manifest_signing_service == o.manifest_signing_service &&
|
178
|
+
description == o.description &&
|
179
179
|
pulp_href == o.pulp_href &&
|
180
|
-
|
180
|
+
latest_version_href == o.latest_version_href
|
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
|
-
[pulp_created,
|
192
|
+
[pulp_created, retain_repo_versions, pulp_labels, name, versions_href, manifest_signing_service, description, pulp_href, latest_version_href].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|