pulp_container_client 2.19.3 → 2.19.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -7
- data/docs/ContainerBlobResponse.md +2 -0
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/ContainerContainerDistributionResponse.md +12 -10
- data/docs/ContainerContainerNamespaceResponse.md +2 -0
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -10
- data/docs/ContainerContainerPullThroughRemoteResponse.md +2 -2
- data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +2 -2
- data/docs/ContainerContainerPushRepository.md +4 -4
- 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 +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- 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 +33 -33
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +50 -40
- 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 +33 -33
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +50 -40
- 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 +34 -34
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +52 -42
- 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 +33 -33
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +33 -33
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +34 -34
- 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 +6 -6
- 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 +6 -6
- data/spec/models/container_container_pull_through_remote_response_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +13 -7
- data/spec/models/container_container_push_repository_spec.rb +3 -3
- 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 +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +77 -85
- 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
|
|
@@ -15,22 +15,22 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
|
19
|
-
attr_accessor :base_path
|
20
|
-
|
21
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
22
|
-
attr_accessor :name
|
18
|
+
attr_accessor :pulp_labels
|
23
19
|
|
24
20
|
# An optional content-guard. If none is specified, a default one will be used.
|
25
21
|
attr_accessor :content_guard
|
26
22
|
|
27
|
-
# The
|
28
|
-
attr_accessor :
|
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\")
|
24
|
+
attr_accessor :base_path
|
29
25
|
|
30
26
|
# Whether this distribution should be shown in the content app.
|
31
27
|
attr_accessor :hidden
|
32
28
|
|
33
|
-
|
29
|
+
# The latest RepositoryVersion for this Repository will be served.
|
30
|
+
attr_accessor :repository
|
31
|
+
|
32
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
33
|
+
attr_accessor :name
|
34
34
|
|
35
35
|
# RepositoryVersion to be served
|
36
36
|
attr_accessor :repository_version
|
@@ -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
|
-
:'
|
48
|
-
:'name' => :'name',
|
47
|
+
:'pulp_labels' => :'pulp_labels',
|
49
48
|
:'content_guard' => :'content_guard',
|
50
|
-
:'
|
49
|
+
:'base_path' => :'base_path',
|
51
50
|
:'hidden' => :'hidden',
|
52
|
-
:'
|
51
|
+
:'repository' => :'repository',
|
52
|
+
:'name' => :'name',
|
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
|
-
:'
|
63
|
-
:'name' => :'String',
|
62
|
+
:'pulp_labels' => :'Hash<String, String>',
|
64
63
|
:'content_guard' => :'String',
|
65
|
-
:'
|
64
|
+
:'base_path' => :'String',
|
66
65
|
:'hidden' => :'Boolean',
|
67
|
-
:'
|
66
|
+
:'repository' => :'String',
|
67
|
+
:'name' => :'String',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
70
70
|
:'description' => :'String'
|
@@ -95,20 +95,18 @@ module PulpContainerClient
|
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
97
97
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
if attributes.key?(:'name')
|
103
|
-
self.name = attributes[:'name']
|
98
|
+
if attributes.key?(:'pulp_labels')
|
99
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
100
|
+
self.pulp_labels = value
|
101
|
+
end
|
104
102
|
end
|
105
103
|
|
106
104
|
if attributes.key?(:'content_guard')
|
107
105
|
self.content_guard = attributes[:'content_guard']
|
108
106
|
end
|
109
107
|
|
110
|
-
if attributes.key?(:'
|
111
|
-
self.
|
108
|
+
if attributes.key?(:'base_path')
|
109
|
+
self.base_path = attributes[:'base_path']
|
112
110
|
end
|
113
111
|
|
114
112
|
if attributes.key?(:'hidden')
|
@@ -117,10 +115,12 @@ module PulpContainerClient
|
|
117
115
|
self.hidden = false
|
118
116
|
end
|
119
117
|
|
120
|
-
if attributes.key?(:'
|
121
|
-
|
122
|
-
|
123
|
-
|
118
|
+
if attributes.key?(:'repository')
|
119
|
+
self.repository = attributes[:'repository']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'name')
|
123
|
+
self.name = attributes[:'name']
|
124
124
|
end
|
125
125
|
|
126
126
|
if attributes.key?(:'repository_version')
|
@@ -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
|
-
|
203
|
-
name == o.name &&
|
202
|
+
pulp_labels == o.pulp_labels &&
|
204
203
|
content_guard == o.content_guard &&
|
205
|
-
|
204
|
+
base_path == o.base_path &&
|
206
205
|
hidden == o.hidden &&
|
207
|
-
|
206
|
+
repository == o.repository &&
|
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
|
-
[
|
222
|
+
[pulp_labels, content_guard, base_path, hidden, repository, 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
@@ -15,22 +15,22 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
17
17
|
class PatchedcontainerContainerPullThroughDistribution
|
18
|
-
|
19
|
-
attr_accessor :base_path
|
20
|
-
|
21
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
22
|
-
attr_accessor :name
|
18
|
+
attr_accessor :pulp_labels
|
23
19
|
|
24
20
|
# An optional content-guard. If none is specified, a default one will be used.
|
25
21
|
attr_accessor :content_guard
|
26
22
|
|
27
|
-
# The
|
28
|
-
attr_accessor :
|
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\")
|
24
|
+
attr_accessor :base_path
|
29
25
|
|
30
26
|
# Whether this distribution should be shown in the content app.
|
31
27
|
attr_accessor :hidden
|
32
28
|
|
33
|
-
|
29
|
+
# The latest RepositoryVersion for this Repository will be served.
|
30
|
+
attr_accessor :repository
|
31
|
+
|
32
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
33
|
+
attr_accessor :name
|
34
34
|
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
36
36
|
attr_accessor :remote
|
@@ -47,12 +47,12 @@ module PulpContainerClient
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
48
|
def self.attribute_map
|
49
49
|
{
|
50
|
-
:'
|
51
|
-
:'name' => :'name',
|
50
|
+
:'pulp_labels' => :'pulp_labels',
|
52
51
|
:'content_guard' => :'content_guard',
|
53
|
-
:'
|
52
|
+
:'base_path' => :'base_path',
|
54
53
|
:'hidden' => :'hidden',
|
55
|
-
:'
|
54
|
+
:'repository' => :'repository',
|
55
|
+
:'name' => :'name',
|
56
56
|
:'remote' => :'remote',
|
57
57
|
:'distributions' => :'distributions',
|
58
58
|
:'private' => :'private',
|
@@ -63,12 +63,12 @@ module PulpContainerClient
|
|
63
63
|
# Attribute type mapping.
|
64
64
|
def self.openapi_types
|
65
65
|
{
|
66
|
-
:'
|
67
|
-
:'name' => :'String',
|
66
|
+
:'pulp_labels' => :'Hash<String, String>',
|
68
67
|
:'content_guard' => :'String',
|
69
|
-
:'
|
68
|
+
:'base_path' => :'String',
|
70
69
|
:'hidden' => :'Boolean',
|
71
|
-
:'
|
70
|
+
:'repository' => :'String',
|
71
|
+
:'name' => :'String',
|
72
72
|
:'remote' => :'String',
|
73
73
|
:'distributions' => :'Array<String>',
|
74
74
|
:'private' => :'Boolean',
|
@@ -99,20 +99,18 @@ module PulpContainerClient
|
|
99
99
|
h[k.to_sym] = v
|
100
100
|
}
|
101
101
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
if attributes.key?(:'name')
|
107
|
-
self.name = attributes[:'name']
|
102
|
+
if attributes.key?(:'pulp_labels')
|
103
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
104
|
+
self.pulp_labels = value
|
105
|
+
end
|
108
106
|
end
|
109
107
|
|
110
108
|
if attributes.key?(:'content_guard')
|
111
109
|
self.content_guard = attributes[:'content_guard']
|
112
110
|
end
|
113
111
|
|
114
|
-
if attributes.key?(:'
|
115
|
-
self.
|
112
|
+
if attributes.key?(:'base_path')
|
113
|
+
self.base_path = attributes[:'base_path']
|
116
114
|
end
|
117
115
|
|
118
116
|
if attributes.key?(:'hidden')
|
@@ -121,10 +119,12 @@ module PulpContainerClient
|
|
121
119
|
self.hidden = false
|
122
120
|
end
|
123
121
|
|
124
|
-
if attributes.key?(:'
|
125
|
-
|
126
|
-
|
127
|
-
|
122
|
+
if attributes.key?(:'repository')
|
123
|
+
self.repository = attributes[:'repository']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.key?(:'name')
|
127
|
+
self.name = attributes[:'name']
|
128
128
|
end
|
129
129
|
|
130
130
|
if attributes.key?(:'remote')
|
@@ -209,12 +209,12 @@ module PulpContainerClient
|
|
209
209
|
def ==(o)
|
210
210
|
return true if self.equal?(o)
|
211
211
|
self.class == o.class &&
|
212
|
-
|
213
|
-
name == o.name &&
|
212
|
+
pulp_labels == o.pulp_labels &&
|
214
213
|
content_guard == o.content_guard &&
|
215
|
-
|
214
|
+
base_path == o.base_path &&
|
216
215
|
hidden == o.hidden &&
|
217
|
-
|
216
|
+
repository == o.repository &&
|
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
|
-
[
|
233
|
+
[pulp_labels, content_guard, base_path, hidden, repository, name, remote, distributions, private, description].hash
|
234
234
|
end
|
235
235
|
|
236
236
|
# Builds the object from hash
|
@@ -18,25 +18,25 @@ module PulpContainerClient
|
|
18
18
|
# Retain X versions of the repository. Default is null which retains all versions.
|
19
19
|
attr_accessor :retain_repo_versions
|
20
20
|
|
21
|
+
attr_accessor :pulp_labels
|
22
|
+
|
21
23
|
# A reference to an associated signing service.
|
22
24
|
attr_accessor :manifest_signing_service
|
23
25
|
|
24
|
-
# A unique name for this repository.
|
25
|
-
attr_accessor :name
|
26
|
-
|
27
26
|
# An optional description.
|
28
27
|
attr_accessor :description
|
29
28
|
|
30
|
-
|
29
|
+
# A unique name for this repository.
|
30
|
+
attr_accessor :name
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
35
|
:'retain_repo_versions' => :'retain_repo_versions',
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
36
37
|
:'manifest_signing_service' => :'manifest_signing_service',
|
37
|
-
:'name' => :'name',
|
38
38
|
:'description' => :'description',
|
39
|
-
:'
|
39
|
+
:'name' => :'name'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
@@ -44,10 +44,10 @@ module PulpContainerClient
|
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
46
|
:'retain_repo_versions' => :'Integer',
|
47
|
+
:'pulp_labels' => :'Hash<String, String>',
|
47
48
|
:'manifest_signing_service' => :'String',
|
48
|
-
:'name' => :'String',
|
49
49
|
:'description' => :'String',
|
50
|
-
:'
|
50
|
+
:'name' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -79,22 +79,22 @@ module PulpContainerClient
|
|
79
79
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
|
82
|
+
if attributes.key?(:'pulp_labels')
|
83
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
84
|
+
self.pulp_labels = value
|
85
|
+
end
|
84
86
|
end
|
85
87
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
88
|
+
if attributes.key?(:'manifest_signing_service')
|
89
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
88
90
|
end
|
89
91
|
|
90
92
|
if attributes.key?(:'description')
|
91
93
|
self.description = attributes[:'description']
|
92
94
|
end
|
93
95
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
|
96
|
-
self.pulp_labels = value
|
97
|
-
end
|
96
|
+
if attributes.key?(:'name')
|
97
|
+
self.name = attributes[:'name']
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -106,14 +106,14 @@ 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 !@name.nil? && @name.to_s.length < 1
|
110
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
111
|
-
end
|
112
|
-
|
113
109
|
if !@description.nil? && @description.to_s.length < 1
|
114
110
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
115
111
|
end
|
116
112
|
|
113
|
+
if !@name.nil? && @name.to_s.length < 1
|
114
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
115
|
+
end
|
116
|
+
|
117
117
|
invalid_properties
|
118
118
|
end
|
119
119
|
|
@@ -121,8 +121,8 @@ module PulpContainerClient
|
|
121
121
|
# @return true if the model is valid
|
122
122
|
def valid?
|
123
123
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
124
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
125
124
|
return false if !@description.nil? && @description.to_s.length < 1
|
125
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
126
126
|
true
|
127
127
|
end
|
128
128
|
|
@@ -136,16 +136,6 @@ module PulpContainerClient
|
|
136
136
|
@retain_repo_versions = retain_repo_versions
|
137
137
|
end
|
138
138
|
|
139
|
-
# Custom attribute writer method with validation
|
140
|
-
# @param [Object] name Value to be assigned
|
141
|
-
def name=(name)
|
142
|
-
if !name.nil? && name.to_s.length < 1
|
143
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
144
|
-
end
|
145
|
-
|
146
|
-
@name = name
|
147
|
-
end
|
148
|
-
|
149
139
|
# Custom attribute writer method with validation
|
150
140
|
# @param [Object] description Value to be assigned
|
151
141
|
def description=(description)
|
@@ -156,16 +146,26 @@ module PulpContainerClient
|
|
156
146
|
@description = description
|
157
147
|
end
|
158
148
|
|
149
|
+
# Custom attribute writer method with validation
|
150
|
+
# @param [Object] name Value to be assigned
|
151
|
+
def name=(name)
|
152
|
+
if !name.nil? && name.to_s.length < 1
|
153
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
154
|
+
end
|
155
|
+
|
156
|
+
@name = name
|
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
164
|
retain_repo_versions == o.retain_repo_versions &&
|
165
|
+
pulp_labels == o.pulp_labels &&
|
165
166
|
manifest_signing_service == o.manifest_signing_service &&
|
166
|
-
name == o.name &&
|
167
167
|
description == o.description &&
|
168
|
-
|
168
|
+
name == o.name
|
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
|
-
[retain_repo_versions,
|
180
|
+
[retain_repo_versions, pulp_labels, manifest_signing_service, description, 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
|