pulp_container_client 2.19.2 → 2.19.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -7
- data/docs/ContainerBlobResponse.md +2 -0
- data/docs/ContainerContainerDistribution.md +4 -4
- data/docs/ContainerContainerDistributionResponse.md +9 -7
- data/docs/ContainerContainerNamespaceResponse.md +2 -0
- data/docs/ContainerContainerPullThroughDistribution.md +4 -4
- data/docs/ContainerContainerPullThroughDistributionResponse.md +9 -7
- data/docs/ContainerContainerPullThroughRemoteResponse.md +2 -2
- data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +2 -2
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +12 -10
- data/docs/ContainerContainerRemoteResponse.md +2 -2
- data/docs/ContainerContainerRepositoryResponse.md +2 -0
- data/docs/ContainerManifestResponse.md +2 -0
- data/docs/ContainerManifestSignatureResponse.md +2 -0
- data/docs/ContainerTagResponse.md +2 -0
- data/docs/ContentBlobsApi.md +1 -1
- data/docs/ContentManifestsApi.md +1 -1
- data/docs/ContentSignaturesApi.md +1 -1
- data/docs/ContentTagsApi.md +1 -1
- data/docs/DistributionsContainerApi.md +1 -1
- data/docs/DistributionsPullThroughApi.md +1 -1
- data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
- data/docs/PaginatedcontainerBlobResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerDistributionResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerNamespaceResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerPushRepositoryResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerRemoteResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerRepositoryResponseList.md +2 -2
- data/docs/PaginatedcontainerManifestResponseList.md +2 -2
- data/docs/PaginatedcontainerManifestSignatureResponseList.md +2 -2
- data/docs/PaginatedcontainerTagResponseList.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/docs/PulpContainerNamespacesApi.md +1 -1
- data/docs/RemotesContainerApi.md +1 -1
- data/docs/RemotesPullThroughApi.md +1 -1
- data/docs/RepositoriesContainerApi.md +1 -1
- data/docs/RepositoriesContainerPushApi.md +1 -1
- data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
- data/docs/RepositoriesContainerVersionsApi.md +1 -1
- data/docs/RepositoryVersionResponse.md +2 -0
- data/docs/TokenApi.md +1 -1
- data/lib/pulp_container_client/configuration.rb +2 -2
- data/lib/pulp_container_client/models/container_blob_response.rb +11 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +18 -18
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +37 -27
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +11 -1
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +18 -18
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +37 -27
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +11 -11
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_container_client/models/container_container_push_repository.rb +38 -38
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +48 -38
- data/lib/pulp_container_client/models/container_container_remote_response.rb +11 -11
- data/lib/pulp_container_client/models/container_container_repository_response.rb +11 -1
- data/lib/pulp_container_client/models/container_manifest_response.rb +11 -1
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +11 -1
- data/lib/pulp_container_client/models/container_tag_response.rb +11 -1
- data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +10 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +18 -18
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +18 -18
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +38 -38
- data/lib/pulp_container_client/models/repository_version_response.rb +11 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +0 -2
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_blob_response_spec.rb +6 -0
- data/spec/models/container_container_distribution_response_spec.rb +12 -6
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_namespace_response_spec.rb +6 -0
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -6
- data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
- data/spec/models/container_container_pull_through_remote_response_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +11 -5
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/container_container_remote_response_spec.rb +6 -6
- data/spec/models/container_container_repository_response_spec.rb +6 -0
- data/spec/models/container_manifest_response_spec.rb +6 -0
- data/spec/models/container_manifest_signature_response_spec.rb +6 -0
- data/spec/models/container_tag_response_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +76 -84
- data/docs/IndexDynamicApi.md +0 -50
- data/docs/IndexStaticApi.md +0 -50
- data/lib/pulp_container_client/api/index_dynamic_api.rb +0 -74
- data/lib/pulp_container_client/api/index_static_api.rb +0 -74
- data/spec/api/index_dynamic_api_spec.rb +0 -45
- data/spec/api/index_static_api_spec.rb +0 -45
data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb
CHANGED
|
@@ -88,12 +88,22 @@ module PulpContainerClient
|
|
|
88
88
|
# @return Array for valid properties with the reasons
|
|
89
89
|
def list_invalid_properties
|
|
90
90
|
invalid_properties = Array.new
|
|
91
|
+
if @count.nil?
|
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if @results.nil?
|
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
97
|
+
end
|
|
98
|
+
|
|
91
99
|
invalid_properties
|
|
92
100
|
end
|
|
93
101
|
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
|
95
103
|
# @return true if the model is valid
|
|
96
104
|
def valid?
|
|
105
|
+
return false if @count.nil?
|
|
106
|
+
return false if @results.nil?
|
|
97
107
|
true
|
|
98
108
|
end
|
|
99
109
|
|
|
@@ -88,12 +88,22 @@ module PulpContainerClient
|
|
|
88
88
|
# @return Array for valid properties with the reasons
|
|
89
89
|
def list_invalid_properties
|
|
90
90
|
invalid_properties = Array.new
|
|
91
|
+
if @count.nil?
|
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if @results.nil?
|
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
97
|
+
end
|
|
98
|
+
|
|
91
99
|
invalid_properties
|
|
92
100
|
end
|
|
93
101
|
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
|
95
103
|
# @return true if the model is valid
|
|
96
104
|
def valid?
|
|
105
|
+
return false if @count.nil?
|
|
106
|
+
return false if @results.nil?
|
|
97
107
|
true
|
|
98
108
|
end
|
|
99
109
|
|
data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb
CHANGED
|
@@ -88,12 +88,22 @@ module PulpContainerClient
|
|
|
88
88
|
# @return Array for valid properties with the reasons
|
|
89
89
|
def list_invalid_properties
|
|
90
90
|
invalid_properties = Array.new
|
|
91
|
+
if @count.nil?
|
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if @results.nil?
|
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
97
|
+
end
|
|
98
|
+
|
|
91
99
|
invalid_properties
|
|
92
100
|
end
|
|
93
101
|
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
|
95
103
|
# @return true if the model is valid
|
|
96
104
|
def valid?
|
|
105
|
+
return false if @count.nil?
|
|
106
|
+
return false if @results.nil?
|
|
97
107
|
true
|
|
98
108
|
end
|
|
99
109
|
|
|
@@ -88,12 +88,22 @@ module PulpContainerClient
|
|
|
88
88
|
# @return Array for valid properties with the reasons
|
|
89
89
|
def list_invalid_properties
|
|
90
90
|
invalid_properties = Array.new
|
|
91
|
+
if @count.nil?
|
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if @results.nil?
|
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
97
|
+
end
|
|
98
|
+
|
|
91
99
|
invalid_properties
|
|
92
100
|
end
|
|
93
101
|
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
|
95
103
|
# @return true if the model is valid
|
|
96
104
|
def valid?
|
|
105
|
+
return false if @count.nil?
|
|
106
|
+
return false if @results.nil?
|
|
97
107
|
true
|
|
98
108
|
end
|
|
99
109
|
|
|
@@ -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
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\")
|
|
27
24
|
attr_accessor :base_path
|
|
28
25
|
|
|
29
|
-
#
|
|
30
|
-
attr_accessor :
|
|
26
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
27
|
+
attr_accessor :repository
|
|
31
28
|
|
|
32
29
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
33
30
|
attr_accessor :content_guard
|
|
34
31
|
|
|
32
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
33
|
+
attr_accessor :name
|
|
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
49
|
:'base_path' => :'base_path',
|
|
51
|
-
:'
|
|
50
|
+
:'repository' => :'repository',
|
|
52
51
|
:'content_guard' => :'content_guard',
|
|
52
|
+
:'name' => :'name',
|
|
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
64
|
:'base_path' => :'String',
|
|
66
|
-
:'
|
|
65
|
+
:'repository' => :'String',
|
|
67
66
|
:'content_guard' => :'String',
|
|
67
|
+
:'name' => :'String',
|
|
68
68
|
:'repository_version' => :'String',
|
|
69
69
|
:'private' => :'Boolean',
|
|
70
70
|
:'description' => :'String'
|
|
@@ -107,22 +107,22 @@ module PulpContainerClient
|
|
|
107
107
|
end
|
|
108
108
|
end
|
|
109
109
|
|
|
110
|
-
if attributes.key?(:'repository')
|
|
111
|
-
self.repository = attributes[:'repository']
|
|
112
|
-
end
|
|
113
|
-
|
|
114
110
|
if attributes.key?(:'base_path')
|
|
115
111
|
self.base_path = attributes[:'base_path']
|
|
116
112
|
end
|
|
117
113
|
|
|
118
|
-
if attributes.key?(:'
|
|
119
|
-
self.
|
|
114
|
+
if attributes.key?(:'repository')
|
|
115
|
+
self.repository = attributes[:'repository']
|
|
120
116
|
end
|
|
121
117
|
|
|
122
118
|
if attributes.key?(:'content_guard')
|
|
123
119
|
self.content_guard = attributes[:'content_guard']
|
|
124
120
|
end
|
|
125
121
|
|
|
122
|
+
if attributes.key?(:'name')
|
|
123
|
+
self.name = attributes[:'name']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
126
|
if attributes.key?(:'repository_version')
|
|
127
127
|
self.repository_version = attributes[:'repository_version']
|
|
128
128
|
end
|
|
@@ -201,10 +201,10 @@ module PulpContainerClient
|
|
|
201
201
|
self.class == o.class &&
|
|
202
202
|
hidden == o.hidden &&
|
|
203
203
|
pulp_labels == o.pulp_labels &&
|
|
204
|
-
repository == o.repository &&
|
|
205
204
|
base_path == o.base_path &&
|
|
206
|
-
|
|
205
|
+
repository == o.repository &&
|
|
207
206
|
content_guard == o.content_guard &&
|
|
207
|
+
name == o.name &&
|
|
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, pulp_labels, repository,
|
|
222
|
+
[hidden, pulp_labels, base_path, repository, content_guard, name, repository_version, private, description].hash
|
|
223
223
|
end
|
|
224
224
|
|
|
225
225
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
|
@@ -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
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\")
|
|
27
24
|
attr_accessor :base_path
|
|
28
25
|
|
|
29
|
-
#
|
|
30
|
-
attr_accessor :
|
|
26
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
27
|
+
attr_accessor :repository
|
|
31
28
|
|
|
32
29
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
33
30
|
attr_accessor :content_guard
|
|
34
31
|
|
|
32
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
33
|
+
attr_accessor :name
|
|
34
|
+
|
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
36
36
|
attr_accessor :remote
|
|
37
37
|
|
|
@@ -49,10 +49,10 @@ module PulpContainerClient
|
|
|
49
49
|
{
|
|
50
50
|
:'hidden' => :'hidden',
|
|
51
51
|
:'pulp_labels' => :'pulp_labels',
|
|
52
|
-
:'repository' => :'repository',
|
|
53
52
|
:'base_path' => :'base_path',
|
|
54
|
-
:'
|
|
53
|
+
:'repository' => :'repository',
|
|
55
54
|
:'content_guard' => :'content_guard',
|
|
55
|
+
:'name' => :'name',
|
|
56
56
|
:'remote' => :'remote',
|
|
57
57
|
:'distributions' => :'distributions',
|
|
58
58
|
:'private' => :'private',
|
|
@@ -65,10 +65,10 @@ module PulpContainerClient
|
|
|
65
65
|
{
|
|
66
66
|
:'hidden' => :'Boolean',
|
|
67
67
|
:'pulp_labels' => :'Hash<String, String>',
|
|
68
|
-
:'repository' => :'String',
|
|
69
68
|
:'base_path' => :'String',
|
|
70
|
-
:'
|
|
69
|
+
:'repository' => :'String',
|
|
71
70
|
:'content_guard' => :'String',
|
|
71
|
+
:'name' => :'String',
|
|
72
72
|
:'remote' => :'String',
|
|
73
73
|
:'distributions' => :'Array<String>',
|
|
74
74
|
:'private' => :'Boolean',
|
|
@@ -111,22 +111,22 @@ module PulpContainerClient
|
|
|
111
111
|
end
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
-
if attributes.key?(:'repository')
|
|
115
|
-
self.repository = attributes[:'repository']
|
|
116
|
-
end
|
|
117
|
-
|
|
118
114
|
if attributes.key?(:'base_path')
|
|
119
115
|
self.base_path = attributes[:'base_path']
|
|
120
116
|
end
|
|
121
117
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
118
|
+
if attributes.key?(:'repository')
|
|
119
|
+
self.repository = attributes[:'repository']
|
|
124
120
|
end
|
|
125
121
|
|
|
126
122
|
if attributes.key?(:'content_guard')
|
|
127
123
|
self.content_guard = attributes[:'content_guard']
|
|
128
124
|
end
|
|
129
125
|
|
|
126
|
+
if attributes.key?(:'name')
|
|
127
|
+
self.name = attributes[:'name']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
130
|
if attributes.key?(:'remote')
|
|
131
131
|
self.remote = attributes[:'remote']
|
|
132
132
|
end
|
|
@@ -211,10 +211,10 @@ module PulpContainerClient
|
|
|
211
211
|
self.class == o.class &&
|
|
212
212
|
hidden == o.hidden &&
|
|
213
213
|
pulp_labels == o.pulp_labels &&
|
|
214
|
-
repository == o.repository &&
|
|
215
214
|
base_path == o.base_path &&
|
|
216
|
-
|
|
215
|
+
repository == o.repository &&
|
|
217
216
|
content_guard == o.content_guard &&
|
|
217
|
+
name == o.name &&
|
|
218
218
|
remote == o.remote &&
|
|
219
219
|
distributions == o.distributions &&
|
|
220
220
|
private == o.private &&
|
|
@@ -230,7 +230,7 @@ module PulpContainerClient
|
|
|
230
230
|
# Calculates hash code according to all attributes.
|
|
231
231
|
# @return [Integer] Hash code
|
|
232
232
|
def hash
|
|
233
|
-
[hidden, pulp_labels, repository,
|
|
233
|
+
[hidden, pulp_labels, base_path, repository, content_guard, name, remote, distributions, private, description].hash
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# Builds the object from hash
|
|
@@ -15,16 +15,16 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class PatchedcontainerContainerPushRepository
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
20
|
-
|
|
21
|
-
attr_accessor :pulp_labels
|
|
18
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
19
|
+
attr_accessor :retain_repo_versions
|
|
22
20
|
|
|
23
21
|
# An optional description.
|
|
24
22
|
attr_accessor :description
|
|
25
23
|
|
|
26
|
-
#
|
|
27
|
-
attr_accessor :
|
|
24
|
+
# A reference to an associated signing service.
|
|
25
|
+
attr_accessor :manifest_signing_service
|
|
26
|
+
|
|
27
|
+
attr_accessor :pulp_labels
|
|
28
28
|
|
|
29
29
|
# A unique name for this repository.
|
|
30
30
|
attr_accessor :name
|
|
@@ -32,10 +32,10 @@ module PulpContainerClient
|
|
|
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
|
+
:'description' => :'description',
|
|
35
37
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
36
38
|
:'pulp_labels' => :'pulp_labels',
|
|
37
|
-
:'description' => :'description',
|
|
38
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
39
39
|
:'name' => :'name'
|
|
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
|
+
:'retain_repo_versions' => :'Integer',
|
|
47
|
+
:'description' => :'String',
|
|
46
48
|
:'manifest_signing_service' => :'String',
|
|
47
49
|
:'pulp_labels' => :'Hash<String, String>',
|
|
48
|
-
:'description' => :'String',
|
|
49
|
-
:'retain_repo_versions' => :'Integer',
|
|
50
50
|
:'name' => :'String'
|
|
51
51
|
}
|
|
52
52
|
end
|
|
@@ -54,9 +54,9 @@ module PulpContainerClient
|
|
|
54
54
|
# List of attributes with nullable: true
|
|
55
55
|
def self.openapi_nullable
|
|
56
56
|
Set.new([
|
|
57
|
-
:'manifest_signing_service',
|
|
58
|
-
:'description',
|
|
59
57
|
:'retain_repo_versions',
|
|
58
|
+
:'description',
|
|
59
|
+
:'manifest_signing_service',
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -75,6 +75,14 @@ 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
|
+
if attributes.key?(:'description')
|
|
83
|
+
self.description = attributes[:'description']
|
|
84
|
+
end
|
|
85
|
+
|
|
78
86
|
if attributes.key?(:'manifest_signing_service')
|
|
79
87
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
80
88
|
end
|
|
@@ -85,14 +93,6 @@ module PulpContainerClient
|
|
|
85
93
|
end
|
|
86
94
|
end
|
|
87
95
|
|
|
88
|
-
if attributes.key?(:'description')
|
|
89
|
-
self.description = attributes[:'description']
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
if attributes.key?(:'retain_repo_versions')
|
|
93
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
94
|
-
end
|
|
95
|
-
|
|
96
96
|
if attributes.key?(:'name')
|
|
97
97
|
self.name = attributes[:'name']
|
|
98
98
|
end
|
|
@@ -102,14 +102,14 @@ 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
|
-
|
|
109
105
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
110
106
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
111
107
|
end
|
|
112
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
113
|
if !@name.nil? && @name.to_s.length < 1
|
|
114
114
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
115
115
|
end
|
|
@@ -120,22 +120,12 @@ module PulpContainerClient
|
|
|
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
|
|
124
123
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
124
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
125
125
|
return false if !@name.nil? && @name.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
|
-
|
|
139
129
|
# Custom attribute writer method with validation
|
|
140
130
|
# @param [Object] retain_repo_versions Value to be assigned
|
|
141
131
|
def retain_repo_versions=(retain_repo_versions)
|
|
@@ -146,6 +136,16 @@ module PulpContainerClient
|
|
|
146
136
|
@retain_repo_versions = retain_repo_versions
|
|
147
137
|
end
|
|
148
138
|
|
|
139
|
+
# Custom attribute writer method with validation
|
|
140
|
+
# @param [Object] description Value to be assigned
|
|
141
|
+
def description=(description)
|
|
142
|
+
if !description.nil? && description.to_s.length < 1
|
|
143
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
@description = description
|
|
147
|
+
end
|
|
148
|
+
|
|
149
149
|
# Custom attribute writer method with validation
|
|
150
150
|
# @param [Object] name Value to be assigned
|
|
151
151
|
def name=(name)
|
|
@@ -161,10 +161,10 @@ module PulpContainerClient
|
|
|
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
|
+
description == o.description &&
|
|
164
166
|
manifest_signing_service == o.manifest_signing_service &&
|
|
165
167
|
pulp_labels == o.pulp_labels &&
|
|
166
|
-
description == o.description &&
|
|
167
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
168
168
|
name == o.name
|
|
169
169
|
end
|
|
170
170
|
|
|
@@ -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
|
+
[retain_repo_versions, description, manifest_signing_service, pulp_labels, name].hash
|
|
181
181
|
end
|
|
182
182
|
|
|
183
183
|
# Builds the object from hash
|
|
@@ -20,6 +20,9 @@ module PulpContainerClient
|
|
|
20
20
|
# Timestamp of creation.
|
|
21
21
|
attr_accessor :pulp_created
|
|
22
22
|
|
|
23
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
24
|
+
attr_accessor :pulp_last_updated
|
|
25
|
+
|
|
23
26
|
attr_accessor :number
|
|
24
27
|
|
|
25
28
|
attr_accessor :repository
|
|
@@ -35,6 +38,7 @@ module PulpContainerClient
|
|
|
35
38
|
{
|
|
36
39
|
:'pulp_href' => :'pulp_href',
|
|
37
40
|
:'pulp_created' => :'pulp_created',
|
|
41
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
38
42
|
:'number' => :'number',
|
|
39
43
|
:'repository' => :'repository',
|
|
40
44
|
:'base_version' => :'base_version',
|
|
@@ -47,6 +51,7 @@ module PulpContainerClient
|
|
|
47
51
|
{
|
|
48
52
|
:'pulp_href' => :'String',
|
|
49
53
|
:'pulp_created' => :'DateTime',
|
|
54
|
+
:'pulp_last_updated' => :'DateTime',
|
|
50
55
|
:'number' => :'Integer',
|
|
51
56
|
:'repository' => :'String',
|
|
52
57
|
:'base_version' => :'String',
|
|
@@ -83,6 +88,10 @@ module PulpContainerClient
|
|
|
83
88
|
self.pulp_created = attributes[:'pulp_created']
|
|
84
89
|
end
|
|
85
90
|
|
|
91
|
+
if attributes.key?(:'pulp_last_updated')
|
|
92
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
93
|
+
end
|
|
94
|
+
|
|
86
95
|
if attributes.key?(:'number')
|
|
87
96
|
self.number = attributes[:'number']
|
|
88
97
|
end
|
|
@@ -120,6 +129,7 @@ module PulpContainerClient
|
|
|
120
129
|
self.class == o.class &&
|
|
121
130
|
pulp_href == o.pulp_href &&
|
|
122
131
|
pulp_created == o.pulp_created &&
|
|
132
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
123
133
|
number == o.number &&
|
|
124
134
|
repository == o.repository &&
|
|
125
135
|
base_version == o.base_version &&
|
|
@@ -135,7 +145,7 @@ module PulpContainerClient
|
|
|
135
145
|
# Calculates hash code according to all attributes.
|
|
136
146
|
# @return [Integer] Hash code
|
|
137
147
|
def hash
|
|
138
|
-
[pulp_href, pulp_created, number, repository, base_version, content_summary].hash
|
|
148
|
+
[pulp_href, pulp_created, pulp_last_updated, number, repository, base_version, content_summary].hash
|
|
139
149
|
end
|
|
140
150
|
|
|
141
151
|
# Builds the object from hash
|
|
@@ -88,8 +88,6 @@ require 'pulp_container_client/api/content_signatures_api'
|
|
|
88
88
|
require 'pulp_container_client/api/content_tags_api'
|
|
89
89
|
require 'pulp_container_client/api/distributions_container_api'
|
|
90
90
|
require 'pulp_container_client/api/distributions_pull_through_api'
|
|
91
|
-
require 'pulp_container_client/api/index_dynamic_api'
|
|
92
|
-
require 'pulp_container_client/api/index_static_api'
|
|
93
91
|
require 'pulp_container_client/api/pulp_container_namespaces_api'
|
|
94
92
|
require 'pulp_container_client/api/remotes_container_api'
|
|
95
93
|
require 'pulp_container_client/api/remotes_pull_through_api'
|
data/spec/configuration_spec.rb
CHANGED
|
@@ -18,7 +18,7 @@ describe PulpContainerClient::Configuration do
|
|
|
18
18
|
before(:each) do
|
|
19
19
|
# uncomment below to setup host and base_path
|
|
20
20
|
# require 'URI'
|
|
21
|
-
# uri = URI.parse("http://
|
|
21
|
+
# uri = URI.parse("http://localhost:24817")
|
|
22
22
|
# PulpContainerClient.configure do |c|
|
|
23
23
|
# c.host = uri.host
|
|
24
24
|
# c.base_path = uri.path
|
|
@@ -28,14 +28,14 @@ describe PulpContainerClient::Configuration do
|
|
|
28
28
|
describe '#base_url' do
|
|
29
29
|
it 'should have the default value' do
|
|
30
30
|
# uncomment below to test default value of the base path
|
|
31
|
-
# expect(config.base_url).to eq("http://
|
|
31
|
+
# expect(config.base_url).to eq("http://localhost:24817")
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
it 'should remove trailing slashes' do
|
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
|
36
36
|
config.base_path = base_path
|
|
37
37
|
# uncomment below to test trailing slashes
|
|
38
|
-
# expect(config.base_url).to eq("http://
|
|
38
|
+
# expect(config.base_url).to eq("http://localhost:24817")
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
end
|
|
@@ -44,6 +44,12 @@ describe 'ContainerBlobResponse' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
describe 'test attribute "pulp_last_updated"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
47
53
|
describe 'test attribute "artifact"' do
|
|
48
54
|
it 'should work' do
|
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -32,25 +32,25 @@ describe 'ContainerContainerDistributionResponse' do
|
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionResponse)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
-
describe 'test attribute "
|
|
35
|
+
describe 'test attribute "pulp_last_updated"' do
|
|
36
36
|
it 'should work' do
|
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "pulp_href"' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'test attribute "
|
|
47
|
+
describe 'test attribute "hidden"' do
|
|
48
48
|
it 'should work' do
|
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
describe 'test attribute "
|
|
53
|
+
describe 'test attribute "pulp_labels"' do
|
|
54
54
|
it 'should work' do
|
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
56
|
end
|
|
@@ -62,13 +62,13 @@ describe 'ContainerContainerDistributionResponse' do
|
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
describe 'test attribute "
|
|
65
|
+
describe 'test attribute "repository"' do
|
|
66
66
|
it 'should work' do
|
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
68
|
end
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
-
describe 'test attribute "
|
|
71
|
+
describe 'test attribute "pulp_created"' do
|
|
72
72
|
it 'should work' do
|
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
74
74
|
end
|
|
@@ -80,6 +80,12 @@ describe 'ContainerContainerDistributionResponse' do
|
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
+
describe 'test attribute "name"' do
|
|
84
|
+
it 'should work' do
|
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
83
89
|
describe 'test attribute "repository_version"' do
|
|
84
90
|
it 'should work' do
|
|
85
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -44,25 +44,25 @@ describe 'ContainerContainerDistribution' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'test attribute "
|
|
47
|
+
describe 'test attribute "base_path"' do
|
|
48
48
|
it 'should work' do
|
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
describe 'test attribute "
|
|
53
|
+
describe 'test attribute "repository"' do
|
|
54
54
|
it 'should work' do
|
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
-
describe 'test attribute "
|
|
59
|
+
describe 'test attribute "content_guard"' do
|
|
60
60
|
it 'should work' do
|
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
describe 'test attribute "
|
|
65
|
+
describe 'test attribute "name"' do
|
|
66
66
|
it 'should work' do
|
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
68
|
end
|