pulp_container_client 2.14.13 → 2.15.0.dev1676171501
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.
Potentially problematic release.
This version of pulp_container_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +5 -7
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +1 -1
- data/docs/ContainerContainerRepository.md +1 -1
- data/docs/ContainerContainerRepositoryResponse.md +1 -1
- data/docs/ContentBlobsApi.md +2 -6
- data/docs/ContentManifestsApi.md +4 -8
- data/docs/ContentSignaturesApi.md +2 -6
- data/docs/ContentTagsApi.md +4 -8
- data/docs/DistributionsContainerApi.md +2 -6
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/PatchedcontainerContainerRemote.md +1 -1
- data/docs/PatchedcontainerContainerRepository.md +1 -1
- data/docs/PulpContainerNamespacesApi.md +2 -6
- data/docs/RemotesContainerApi.md +2 -6
- data/docs/RepositoriesContainerApi.md +2 -6
- data/docs/RepositoriesContainerPushApi.md +2 -6
- data/docs/RepositoriesContainerPushVersionsApi.md +2 -4
- data/docs/RepositoriesContainerVersionsApi.md +2 -4
- data/lib/pulp_container_client/api/content_blobs_api.rb +2 -8
- data/lib/pulp_container_client/api/content_manifests_api.rb +4 -10
- data/lib/pulp_container_client/api/content_signatures_api.rb +2 -8
- data/lib/pulp_container_client/api/content_tags_api.rb +4 -10
- data/lib/pulp_container_client/api/distributions_container_api.rb +2 -8
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +2 -8
- data/lib/pulp_container_client/api/remotes_container_api.rb +2 -8
- data/lib/pulp_container_client/api/repositories_container_api.rb +2 -8
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +2 -8
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +2 -5
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +2 -5
- data/lib/pulp_container_client/models/container_container_distribution.rb +21 -21
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +34 -34
- data/lib/pulp_container_client/models/container_container_push_repository.rb +50 -50
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +57 -57
- data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
- data/lib/pulp_container_client/models/container_container_remote_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_repository.rb +1 -1
- data/lib/pulp_container_client/models/container_container_repository_response.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +21 -21
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +1 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +1 -3
- data/spec/api/content_manifests_api_spec.rb +2 -4
- data/spec/api/content_signatures_api_spec.rb +1 -3
- data/spec/api/content_tags_api_spec.rb +2 -4
- data/spec/api/distributions_container_api_spec.rb +1 -3
- data/spec/api/pulp_container_namespaces_api_spec.rb +1 -3
- data/spec/api/remotes_container_api_spec.rb +1 -3
- data/spec/api/repositories_container_api_spec.rb +1 -3
- data/spec/api/repositories_container_push_api_spec.rb +1 -3
- data/spec/api/repositories_container_push_versions_api_spec.rb +1 -2
- data/spec/api/repositories_container_versions_api_spec.rb +1 -2
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +50 -50
@@ -15,12 +15,6 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
19
|
-
attr_accessor :content_guard
|
20
|
-
|
21
|
-
# The latest RepositoryVersion for this Repository will be served.
|
22
|
-
attr_accessor :repository
|
23
|
-
|
24
18
|
# A unique name. Ex, `rawhide` and `stable`.
|
25
19
|
attr_accessor :name
|
26
20
|
|
@@ -29,6 +23,12 @@ module PulpContainerClient
|
|
29
23
|
|
30
24
|
attr_accessor :pulp_labels
|
31
25
|
|
26
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
27
|
+
attr_accessor :content_guard
|
28
|
+
|
29
|
+
# The latest RepositoryVersion for this Repository will be served.
|
30
|
+
attr_accessor :repository
|
31
|
+
|
32
32
|
# RepositoryVersion to be served
|
33
33
|
attr_accessor :repository_version
|
34
34
|
|
@@ -41,11 +41,11 @@ module PulpContainerClient
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'content_guard' => :'content_guard',
|
45
|
-
:'repository' => :'repository',
|
46
44
|
:'name' => :'name',
|
47
45
|
:'base_path' => :'base_path',
|
48
46
|
:'pulp_labels' => :'pulp_labels',
|
47
|
+
:'content_guard' => :'content_guard',
|
48
|
+
:'repository' => :'repository',
|
49
49
|
:'repository_version' => :'repository_version',
|
50
50
|
:'private' => :'private',
|
51
51
|
:'description' => :'description'
|
@@ -55,11 +55,11 @@ module PulpContainerClient
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
-
:'content_guard' => :'String',
|
59
|
-
:'repository' => :'String',
|
60
58
|
:'name' => :'String',
|
61
59
|
:'base_path' => :'String',
|
62
60
|
:'pulp_labels' => :'Hash<String, String>',
|
61
|
+
:'content_guard' => :'String',
|
62
|
+
:'repository' => :'String',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
@@ -90,14 +90,6 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
-
if attributes.key?(:'content_guard')
|
94
|
-
self.content_guard = attributes[:'content_guard']
|
95
|
-
end
|
96
|
-
|
97
|
-
if attributes.key?(:'repository')
|
98
|
-
self.repository = attributes[:'repository']
|
99
|
-
end
|
100
|
-
|
101
93
|
if attributes.key?(:'name')
|
102
94
|
self.name = attributes[:'name']
|
103
95
|
end
|
@@ -112,6 +104,14 @@ module PulpContainerClient
|
|
112
104
|
end
|
113
105
|
end
|
114
106
|
|
107
|
+
if attributes.key?(:'content_guard')
|
108
|
+
self.content_guard = attributes[:'content_guard']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'repository')
|
112
|
+
self.repository = attributes[:'repository']
|
113
|
+
end
|
114
|
+
|
115
115
|
if attributes.key?(:'repository_version')
|
116
116
|
self.repository_version = attributes[:'repository_version']
|
117
117
|
end
|
@@ -206,11 +206,11 @@ module PulpContainerClient
|
|
206
206
|
def ==(o)
|
207
207
|
return true if self.equal?(o)
|
208
208
|
self.class == o.class &&
|
209
|
-
content_guard == o.content_guard &&
|
210
|
-
repository == o.repository &&
|
211
209
|
name == o.name &&
|
212
210
|
base_path == o.base_path &&
|
213
211
|
pulp_labels == o.pulp_labels &&
|
212
|
+
content_guard == o.content_guard &&
|
213
|
+
repository == o.repository &&
|
214
214
|
repository_version == o.repository_version &&
|
215
215
|
private == o.private &&
|
216
216
|
description == o.description
|
@@ -225,7 +225,7 @@ module PulpContainerClient
|
|
225
225
|
# Calculates hash code according to all attributes.
|
226
226
|
# @return [Integer] Hash code
|
227
227
|
def hash
|
228
|
-
[
|
228
|
+
[name, base_path, pulp_labels, content_guard, repository, repository_version, private, description].hash
|
229
229
|
end
|
230
230
|
|
231
231
|
# Builds the object from hash
|
@@ -15,24 +15,24 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
19
|
-
attr_accessor :content_guard
|
20
|
-
|
21
|
-
# The latest RepositoryVersion for this Repository will be served.
|
22
|
-
attr_accessor :repository
|
23
|
-
|
24
18
|
# A unique name. Ex, `rawhide` and `stable`.
|
25
19
|
attr_accessor :name
|
26
20
|
|
27
21
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
28
22
|
attr_accessor :base_path
|
29
23
|
|
30
|
-
|
31
|
-
attr_accessor :pulp_created
|
24
|
+
attr_accessor :pulp_href
|
32
25
|
|
33
26
|
attr_accessor :pulp_labels
|
34
27
|
|
35
|
-
|
28
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
29
|
+
attr_accessor :content_guard
|
30
|
+
|
31
|
+
# The latest RepositoryVersion for this Repository will be served.
|
32
|
+
attr_accessor :repository
|
33
|
+
|
34
|
+
# Timestamp of creation.
|
35
|
+
attr_accessor :pulp_created
|
36
36
|
|
37
37
|
# RepositoryVersion to be served
|
38
38
|
attr_accessor :repository_version
|
@@ -52,13 +52,13 @@ module PulpContainerClient
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
|
-
:'content_guard' => :'content_guard',
|
56
|
-
:'repository' => :'repository',
|
57
55
|
:'name' => :'name',
|
58
56
|
:'base_path' => :'base_path',
|
59
|
-
:'pulp_created' => :'pulp_created',
|
60
|
-
:'pulp_labels' => :'pulp_labels',
|
61
57
|
:'pulp_href' => :'pulp_href',
|
58
|
+
:'pulp_labels' => :'pulp_labels',
|
59
|
+
:'content_guard' => :'content_guard',
|
60
|
+
:'repository' => :'repository',
|
61
|
+
:'pulp_created' => :'pulp_created',
|
62
62
|
:'repository_version' => :'repository_version',
|
63
63
|
:'registry_path' => :'registry_path',
|
64
64
|
:'namespace' => :'namespace',
|
@@ -70,13 +70,13 @@ module PulpContainerClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'content_guard' => :'String',
|
74
|
-
:'repository' => :'String',
|
75
73
|
:'name' => :'String',
|
76
74
|
:'base_path' => :'String',
|
77
|
-
:'pulp_created' => :'DateTime',
|
78
|
-
:'pulp_labels' => :'Hash<String, String>',
|
79
75
|
:'pulp_href' => :'String',
|
76
|
+
:'pulp_labels' => :'Hash<String, String>',
|
77
|
+
:'content_guard' => :'String',
|
78
|
+
:'repository' => :'String',
|
79
|
+
:'pulp_created' => :'DateTime',
|
80
80
|
:'repository_version' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
82
82
|
:'namespace' => :'String',
|
@@ -109,14 +109,6 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'content_guard')
|
113
|
-
self.content_guard = attributes[:'content_guard']
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes.key?(:'repository')
|
117
|
-
self.repository = attributes[:'repository']
|
118
|
-
end
|
119
|
-
|
120
112
|
if attributes.key?(:'name')
|
121
113
|
self.name = attributes[:'name']
|
122
114
|
end
|
@@ -125,8 +117,8 @@ module PulpContainerClient
|
|
125
117
|
self.base_path = attributes[:'base_path']
|
126
118
|
end
|
127
119
|
|
128
|
-
if attributes.key?(:'
|
129
|
-
self.
|
120
|
+
if attributes.key?(:'pulp_href')
|
121
|
+
self.pulp_href = attributes[:'pulp_href']
|
130
122
|
end
|
131
123
|
|
132
124
|
if attributes.key?(:'pulp_labels')
|
@@ -135,8 +127,16 @@ module PulpContainerClient
|
|
135
127
|
end
|
136
128
|
end
|
137
129
|
|
138
|
-
if attributes.key?(:'
|
139
|
-
self.
|
130
|
+
if attributes.key?(:'content_guard')
|
131
|
+
self.content_guard = attributes[:'content_guard']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'repository')
|
135
|
+
self.repository = attributes[:'repository']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'pulp_created')
|
139
|
+
self.pulp_created = attributes[:'pulp_created']
|
140
140
|
end
|
141
141
|
|
142
142
|
if attributes.key?(:'repository_version')
|
@@ -188,13 +188,13 @@ module PulpContainerClient
|
|
188
188
|
def ==(o)
|
189
189
|
return true if self.equal?(o)
|
190
190
|
self.class == o.class &&
|
191
|
-
content_guard == o.content_guard &&
|
192
|
-
repository == o.repository &&
|
193
191
|
name == o.name &&
|
194
192
|
base_path == o.base_path &&
|
195
|
-
pulp_created == o.pulp_created &&
|
196
|
-
pulp_labels == o.pulp_labels &&
|
197
193
|
pulp_href == o.pulp_href &&
|
194
|
+
pulp_labels == o.pulp_labels &&
|
195
|
+
content_guard == o.content_guard &&
|
196
|
+
repository == o.repository &&
|
197
|
+
pulp_created == o.pulp_created &&
|
198
198
|
repository_version == o.repository_version &&
|
199
199
|
registry_path == o.registry_path &&
|
200
200
|
namespace == o.namespace &&
|
@@ -211,7 +211,7 @@ module PulpContainerClient
|
|
211
211
|
# Calculates hash code according to all attributes.
|
212
212
|
# @return [Integer] Hash code
|
213
213
|
def hash
|
214
|
-
[
|
214
|
+
[name, base_path, pulp_href, pulp_labels, content_guard, repository, pulp_created, repository_version, registry_path, namespace, private, description].hash
|
215
215
|
end
|
216
216
|
|
217
217
|
# Builds the object from hash
|
@@ -15,12 +15,6 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
19
|
-
attr_accessor :retain_repo_versions
|
20
|
-
|
21
|
-
# An optional description.
|
22
|
-
attr_accessor :description
|
23
|
-
|
24
18
|
# A unique name for this repository.
|
25
19
|
attr_accessor :name
|
26
20
|
|
@@ -29,34 +23,40 @@ module PulpContainerClient
|
|
29
23
|
# A reference to an associated signing service.
|
30
24
|
attr_accessor :manifest_signing_service
|
31
25
|
|
26
|
+
# An optional description.
|
27
|
+
attr_accessor :description
|
28
|
+
|
29
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
30
|
+
attr_accessor :retain_repo_versions
|
31
|
+
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
36
|
-
:'description' => :'description',
|
37
35
|
:'name' => :'name',
|
38
36
|
:'pulp_labels' => :'pulp_labels',
|
39
|
-
:'manifest_signing_service' => :'manifest_signing_service'
|
37
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
38
|
+
:'description' => :'description',
|
39
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'retain_repo_versions' => :'Integer',
|
47
|
-
:'description' => :'String',
|
48
46
|
:'name' => :'String',
|
49
47
|
:'pulp_labels' => :'Hash<String, String>',
|
50
|
-
:'manifest_signing_service' => :'String'
|
48
|
+
:'manifest_signing_service' => :'String',
|
49
|
+
:'description' => :'String',
|
50
|
+
:'retain_repo_versions' => :'Integer'
|
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
|
-
:'
|
57
|
+
:'manifest_signing_service',
|
58
58
|
:'description',
|
59
|
-
:'
|
59
|
+
:'retain_repo_versions'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,14 +75,6 @@ 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
|
-
|
86
78
|
if attributes.key?(:'name')
|
87
79
|
self.name = attributes[:'name']
|
88
80
|
end
|
@@ -96,20 +88,20 @@ module PulpContainerClient
|
|
96
88
|
if attributes.key?(:'manifest_signing_service')
|
97
89
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
98
90
|
end
|
91
|
+
|
92
|
+
if attributes.key?(:'description')
|
93
|
+
self.description = attributes[:'description']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'retain_repo_versions')
|
97
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
98
|
+
end
|
99
99
|
end
|
100
100
|
|
101
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
102
102
|
# @return Array for valid properties with the reasons
|
103
103
|
def list_invalid_properties
|
104
104
|
invalid_properties = Array.new
|
105
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
106
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
107
|
-
end
|
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
105
|
if @name.nil?
|
114
106
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
115
107
|
end
|
@@ -118,27 +110,39 @@ module PulpContainerClient
|
|
118
110
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
119
111
|
end
|
120
112
|
|
113
|
+
if !@description.nil? && @description.to_s.length < 1
|
114
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
115
|
+
end
|
116
|
+
|
117
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
118
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
119
|
+
end
|
120
|
+
|
121
121
|
invalid_properties
|
122
122
|
end
|
123
123
|
|
124
124
|
# Check to see if the all the properties in the model are valid
|
125
125
|
# @return true if the model is valid
|
126
126
|
def valid?
|
127
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
128
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
129
127
|
return false if @name.nil?
|
130
128
|
return false if @name.to_s.length < 1
|
129
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
130
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
131
131
|
true
|
132
132
|
end
|
133
133
|
|
134
134
|
# Custom attribute writer method with validation
|
135
|
-
# @param [Object]
|
136
|
-
def
|
137
|
-
if
|
138
|
-
fail ArgumentError, '
|
135
|
+
# @param [Object] name Value to be assigned
|
136
|
+
def name=(name)
|
137
|
+
if name.nil?
|
138
|
+
fail ArgumentError, 'name cannot be nil'
|
139
139
|
end
|
140
140
|
|
141
|
-
|
141
|
+
if name.to_s.length < 1
|
142
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
143
|
+
end
|
144
|
+
|
145
|
+
@name = name
|
142
146
|
end
|
143
147
|
|
144
148
|
# Custom attribute writer method with validation
|
@@ -152,17 +156,13 @@ module PulpContainerClient
|
|
152
156
|
end
|
153
157
|
|
154
158
|
# Custom attribute writer method with validation
|
155
|
-
# @param [Object]
|
156
|
-
def
|
157
|
-
if
|
158
|
-
fail ArgumentError, '
|
159
|
-
end
|
160
|
-
|
161
|
-
if name.to_s.length < 1
|
162
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
159
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
160
|
+
def retain_repo_versions=(retain_repo_versions)
|
161
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
162
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
163
163
|
end
|
164
164
|
|
165
|
-
@
|
165
|
+
@retain_repo_versions = retain_repo_versions
|
166
166
|
end
|
167
167
|
|
168
168
|
# Checks equality by comparing each attribute.
|
@@ -170,11 +170,11 @@ module PulpContainerClient
|
|
170
170
|
def ==(o)
|
171
171
|
return true if self.equal?(o)
|
172
172
|
self.class == o.class &&
|
173
|
-
retain_repo_versions == o.retain_repo_versions &&
|
174
|
-
description == o.description &&
|
175
173
|
name == o.name &&
|
176
174
|
pulp_labels == o.pulp_labels &&
|
177
|
-
manifest_signing_service == o.manifest_signing_service
|
175
|
+
manifest_signing_service == o.manifest_signing_service &&
|
176
|
+
description == o.description &&
|
177
|
+
retain_repo_versions == o.retain_repo_versions
|
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
|
+
[name, pulp_labels, manifest_signing_service, description, retain_repo_versions].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -15,65 +15,65 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
attr_accessor :versions_href
|
19
|
-
|
20
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
21
|
-
attr_accessor :retain_repo_versions
|
22
|
-
|
23
|
-
# An optional description.
|
24
|
-
attr_accessor :description
|
25
|
-
|
26
|
-
attr_accessor :latest_version_href
|
27
|
-
|
28
18
|
# A unique name for this repository.
|
29
19
|
attr_accessor :name
|
30
20
|
|
31
|
-
|
32
|
-
|
21
|
+
attr_accessor :latest_version_href
|
22
|
+
|
23
|
+
attr_accessor :pulp_href
|
33
24
|
|
34
25
|
attr_accessor :pulp_labels
|
35
26
|
|
27
|
+
attr_accessor :versions_href
|
28
|
+
|
36
29
|
# A reference to an associated signing service.
|
37
30
|
attr_accessor :manifest_signing_service
|
38
31
|
|
39
|
-
|
32
|
+
# An optional description.
|
33
|
+
attr_accessor :description
|
34
|
+
|
35
|
+
# Timestamp of creation.
|
36
|
+
attr_accessor :pulp_created
|
37
|
+
|
38
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
39
|
+
attr_accessor :retain_repo_versions
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'versions_href' => :'versions_href',
|
45
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
46
|
-
:'description' => :'description',
|
47
|
-
:'latest_version_href' => :'latest_version_href',
|
48
44
|
:'name' => :'name',
|
49
|
-
:'
|
45
|
+
:'latest_version_href' => :'latest_version_href',
|
46
|
+
:'pulp_href' => :'pulp_href',
|
50
47
|
:'pulp_labels' => :'pulp_labels',
|
48
|
+
:'versions_href' => :'versions_href',
|
51
49
|
:'manifest_signing_service' => :'manifest_signing_service',
|
52
|
-
:'
|
50
|
+
:'description' => :'description',
|
51
|
+
:'pulp_created' => :'pulp_created',
|
52
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
-
:'versions_href' => :'String',
|
60
|
-
:'retain_repo_versions' => :'Integer',
|
61
|
-
:'description' => :'String',
|
62
|
-
:'latest_version_href' => :'String',
|
63
59
|
:'name' => :'String',
|
64
|
-
:'
|
60
|
+
:'latest_version_href' => :'String',
|
61
|
+
:'pulp_href' => :'String',
|
65
62
|
:'pulp_labels' => :'Hash<String, String>',
|
63
|
+
:'versions_href' => :'String',
|
66
64
|
:'manifest_signing_service' => :'String',
|
67
|
-
:'
|
65
|
+
:'description' => :'String',
|
66
|
+
:'pulp_created' => :'DateTime',
|
67
|
+
:'retain_repo_versions' => :'Integer'
|
68
68
|
}
|
69
69
|
end
|
70
70
|
|
71
71
|
# List of attributes with nullable: true
|
72
72
|
def self.openapi_nullable
|
73
73
|
Set.new([
|
74
|
-
:'retain_repo_versions',
|
75
|
-
:'description',
|
76
74
|
:'manifest_signing_service',
|
75
|
+
:'description',
|
76
|
+
:'retain_repo_versions'
|
77
77
|
])
|
78
78
|
end
|
79
79
|
|
@@ -92,28 +92,16 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.key?(:'retain_repo_versions')
|
100
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
101
|
-
end
|
102
|
-
|
103
|
-
if attributes.key?(:'description')
|
104
|
-
self.description = attributes[:'description']
|
95
|
+
if attributes.key?(:'name')
|
96
|
+
self.name = attributes[:'name']
|
105
97
|
end
|
106
98
|
|
107
99
|
if attributes.key?(:'latest_version_href')
|
108
100
|
self.latest_version_href = attributes[:'latest_version_href']
|
109
101
|
end
|
110
102
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
113
|
-
end
|
114
|
-
|
115
|
-
if attributes.key?(:'pulp_created')
|
116
|
-
self.pulp_created = attributes[:'pulp_created']
|
103
|
+
if attributes.key?(:'pulp_href')
|
104
|
+
self.pulp_href = attributes[:'pulp_href']
|
117
105
|
end
|
118
106
|
|
119
107
|
if attributes.key?(:'pulp_labels')
|
@@ -122,12 +110,24 @@ module PulpContainerClient
|
|
122
110
|
end
|
123
111
|
end
|
124
112
|
|
113
|
+
if attributes.key?(:'versions_href')
|
114
|
+
self.versions_href = attributes[:'versions_href']
|
115
|
+
end
|
116
|
+
|
125
117
|
if attributes.key?(:'manifest_signing_service')
|
126
118
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
127
119
|
end
|
128
120
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
self.
|
121
|
+
if attributes.key?(:'description')
|
122
|
+
self.description = attributes[:'description']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'pulp_created')
|
126
|
+
self.pulp_created = attributes[:'pulp_created']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'retain_repo_versions')
|
130
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
@@ -135,22 +135,22 @@ module PulpContainerClient
|
|
135
135
|
# @return Array for valid properties with the reasons
|
136
136
|
def list_invalid_properties
|
137
137
|
invalid_properties = Array.new
|
138
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
139
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
140
|
-
end
|
141
|
-
|
142
138
|
if @name.nil?
|
143
139
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
144
140
|
end
|
145
141
|
|
142
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
143
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
144
|
+
end
|
145
|
+
|
146
146
|
invalid_properties
|
147
147
|
end
|
148
148
|
|
149
149
|
# Check to see if the all the properties in the model are valid
|
150
150
|
# @return true if the model is valid
|
151
151
|
def valid?
|
152
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
153
152
|
return false if @name.nil?
|
153
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
154
154
|
true
|
155
155
|
end
|
156
156
|
|
@@ -169,15 +169,15 @@ module PulpContainerClient
|
|
169
169
|
def ==(o)
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
|
-
versions_href == o.versions_href &&
|
173
|
-
retain_repo_versions == o.retain_repo_versions &&
|
174
|
-
description == o.description &&
|
175
|
-
latest_version_href == o.latest_version_href &&
|
176
172
|
name == o.name &&
|
177
|
-
|
173
|
+
latest_version_href == o.latest_version_href &&
|
174
|
+
pulp_href == o.pulp_href &&
|
178
175
|
pulp_labels == o.pulp_labels &&
|
176
|
+
versions_href == o.versions_href &&
|
179
177
|
manifest_signing_service == o.manifest_signing_service &&
|
180
|
-
|
178
|
+
description == o.description &&
|
179
|
+
pulp_created == o.pulp_created &&
|
180
|
+
retain_repo_versions == o.retain_repo_versions
|
181
181
|
end
|
182
182
|
|
183
183
|
# @see the `==` method
|
@@ -189,7 +189,7 @@ module PulpContainerClient
|
|
189
189
|
# Calculates hash code according to all attributes.
|
190
190
|
# @return [Integer] Hash code
|
191
191
|
def hash
|
192
|
-
[
|
192
|
+
[name, latest_version_href, pulp_href, pulp_labels, versions_href, manifest_signing_service, description, pulp_created, retain_repo_versions].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|
@@ -56,7 +56,7 @@ module PulpContainerClient
|
|
56
56
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
57
|
attr_accessor :max_retries
|
58
58
|
|
59
|
-
# immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
|
59
|
+
# immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
|
60
60
|
attr_accessor :policy
|
61
61
|
|
62
62
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
@@ -49,7 +49,7 @@ module PulpContainerClient
|
|
49
49
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
50
50
|
attr_accessor :max_retries
|
51
51
|
|
52
|
-
# immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
|
52
|
+
# immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
|
53
53
|
attr_accessor :policy
|
54
54
|
|
55
55
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|