pulp_container_client 2.19.14 → 2.19.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/models/container_container_distribution.rb +22 -22
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +39 -39
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +22 -22
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +39 -39
- data/lib/pulp_container_client/models/container_container_push_repository.rb +42 -42
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +50 -50
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +22 -22
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +22 -22
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +3 -3
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_spec.rb +3 -3
- data/spec/models/container_container_push_repository_response_spec.rb +8 -8
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +60 -60
|
@@ -15,70 +15,70 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# 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.
|
|
19
|
+
attr_accessor :pulp_last_updated
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
attr_accessor :pulp_created
|
|
21
|
+
attr_accessor :pulp_labels
|
|
23
22
|
|
|
24
|
-
attr_accessor :
|
|
23
|
+
attr_accessor :pulp_href
|
|
25
24
|
|
|
26
25
|
attr_accessor :latest_version_href
|
|
27
26
|
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
27
|
+
# A reference to an associated signing service.
|
|
28
|
+
attr_accessor :manifest_signing_service
|
|
30
29
|
|
|
31
|
-
attr_accessor :
|
|
30
|
+
attr_accessor :versions_href
|
|
31
|
+
|
|
32
|
+
# Timestamp of creation.
|
|
33
|
+
attr_accessor :pulp_created
|
|
32
34
|
|
|
33
35
|
# A unique name for this repository.
|
|
34
36
|
attr_accessor :name
|
|
35
37
|
|
|
36
|
-
# A reference to an associated signing service.
|
|
37
|
-
attr_accessor :manifest_signing_service
|
|
38
|
-
|
|
39
38
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
40
39
|
attr_accessor :retain_repo_versions
|
|
41
40
|
|
|
42
|
-
|
|
41
|
+
# An optional description.
|
|
42
|
+
attr_accessor :description
|
|
43
43
|
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
|
-
:'description' => :'description',
|
|
48
|
-
:'pulp_created' => :'pulp_created',
|
|
49
|
-
:'versions_href' => :'versions_href',
|
|
50
|
-
:'latest_version_href' => :'latest_version_href',
|
|
51
47
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
48
|
+
:'pulp_labels' => :'pulp_labels',
|
|
52
49
|
:'pulp_href' => :'pulp_href',
|
|
53
|
-
:'
|
|
50
|
+
:'latest_version_href' => :'latest_version_href',
|
|
54
51
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
52
|
+
:'versions_href' => :'versions_href',
|
|
53
|
+
:'pulp_created' => :'pulp_created',
|
|
54
|
+
:'name' => :'name',
|
|
55
55
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
56
|
-
:'
|
|
56
|
+
:'description' => :'description'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
# Attribute type mapping.
|
|
61
61
|
def self.openapi_types
|
|
62
62
|
{
|
|
63
|
-
:'description' => :'String',
|
|
64
|
-
:'pulp_created' => :'DateTime',
|
|
65
|
-
:'versions_href' => :'String',
|
|
66
|
-
:'latest_version_href' => :'String',
|
|
67
63
|
:'pulp_last_updated' => :'DateTime',
|
|
64
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
68
65
|
:'pulp_href' => :'String',
|
|
69
|
-
:'
|
|
66
|
+
:'latest_version_href' => :'String',
|
|
70
67
|
:'manifest_signing_service' => :'String',
|
|
68
|
+
:'versions_href' => :'String',
|
|
69
|
+
:'pulp_created' => :'DateTime',
|
|
70
|
+
:'name' => :'String',
|
|
71
71
|
:'retain_repo_versions' => :'Integer',
|
|
72
|
-
:'
|
|
72
|
+
:'description' => :'String'
|
|
73
73
|
}
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
# List of attributes with nullable: true
|
|
77
77
|
def self.openapi_nullable
|
|
78
78
|
Set.new([
|
|
79
|
-
:'description',
|
|
80
79
|
:'manifest_signing_service',
|
|
81
80
|
:'retain_repo_versions',
|
|
81
|
+
:'description'
|
|
82
82
|
])
|
|
83
83
|
end
|
|
84
84
|
|
|
@@ -97,46 +97,46 @@ module PulpContainerClient
|
|
|
97
97
|
h[k.to_sym] = v
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
if attributes.key?(:'
|
|
101
|
-
self.
|
|
100
|
+
if attributes.key?(:'pulp_last_updated')
|
|
101
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
-
if attributes.key?(:'
|
|
105
|
-
|
|
104
|
+
if attributes.key?(:'pulp_labels')
|
|
105
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
106
|
+
self.pulp_labels = value
|
|
107
|
+
end
|
|
106
108
|
end
|
|
107
109
|
|
|
108
|
-
if attributes.key?(:'
|
|
109
|
-
self.
|
|
110
|
+
if attributes.key?(:'pulp_href')
|
|
111
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
110
112
|
end
|
|
111
113
|
|
|
112
114
|
if attributes.key?(:'latest_version_href')
|
|
113
115
|
self.latest_version_href = attributes[:'latest_version_href']
|
|
114
116
|
end
|
|
115
117
|
|
|
116
|
-
if attributes.key?(:'
|
|
117
|
-
self.
|
|
118
|
+
if attributes.key?(:'manifest_signing_service')
|
|
119
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
118
120
|
end
|
|
119
121
|
|
|
120
|
-
if attributes.key?(:'
|
|
121
|
-
self.
|
|
122
|
+
if attributes.key?(:'versions_href')
|
|
123
|
+
self.versions_href = attributes[:'versions_href']
|
|
122
124
|
end
|
|
123
125
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
self.
|
|
126
|
+
if attributes.key?(:'pulp_created')
|
|
127
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
126
128
|
end
|
|
127
129
|
|
|
128
|
-
if attributes.key?(:'
|
|
129
|
-
self.
|
|
130
|
+
if attributes.key?(:'name')
|
|
131
|
+
self.name = attributes[:'name']
|
|
130
132
|
end
|
|
131
133
|
|
|
132
134
|
if attributes.key?(:'retain_repo_versions')
|
|
133
135
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
134
136
|
end
|
|
135
137
|
|
|
136
|
-
if attributes.key?(:'
|
|
137
|
-
|
|
138
|
-
self.pulp_labels = value
|
|
139
|
-
end
|
|
138
|
+
if attributes.key?(:'description')
|
|
139
|
+
self.description = attributes[:'description']
|
|
140
140
|
end
|
|
141
141
|
end
|
|
142
142
|
|
|
@@ -178,16 +178,16 @@ module PulpContainerClient
|
|
|
178
178
|
def ==(o)
|
|
179
179
|
return true if self.equal?(o)
|
|
180
180
|
self.class == o.class &&
|
|
181
|
-
description == o.description &&
|
|
182
|
-
pulp_created == o.pulp_created &&
|
|
183
|
-
versions_href == o.versions_href &&
|
|
184
|
-
latest_version_href == o.latest_version_href &&
|
|
185
181
|
pulp_last_updated == o.pulp_last_updated &&
|
|
182
|
+
pulp_labels == o.pulp_labels &&
|
|
186
183
|
pulp_href == o.pulp_href &&
|
|
187
|
-
|
|
184
|
+
latest_version_href == o.latest_version_href &&
|
|
188
185
|
manifest_signing_service == o.manifest_signing_service &&
|
|
186
|
+
versions_href == o.versions_href &&
|
|
187
|
+
pulp_created == o.pulp_created &&
|
|
188
|
+
name == o.name &&
|
|
189
189
|
retain_repo_versions == o.retain_repo_versions &&
|
|
190
|
-
|
|
190
|
+
description == o.description
|
|
191
191
|
end
|
|
192
192
|
|
|
193
193
|
# @see the `==` method
|
|
@@ -199,7 +199,7 @@ module PulpContainerClient
|
|
|
199
199
|
# Calculates hash code according to all attributes.
|
|
200
200
|
# @return [Integer] Hash code
|
|
201
201
|
def hash
|
|
202
|
-
[
|
|
202
|
+
[pulp_last_updated, pulp_labels, pulp_href, latest_version_href, manifest_signing_service, versions_href, pulp_created, name, retain_repo_versions, description].hash
|
|
203
203
|
end
|
|
204
204
|
|
|
205
205
|
# Builds the object from hash
|
|
@@ -15,13 +15,13 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class PatchedcontainerContainerDistribution
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
|
+
attr_accessor :content_guard
|
|
20
20
|
|
|
21
21
|
attr_accessor :pulp_labels
|
|
22
22
|
|
|
23
|
-
# The
|
|
24
|
-
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
|
|
25
25
|
|
|
26
26
|
# Whether this distribution should be shown in the content app.
|
|
27
27
|
attr_accessor :hidden
|
|
@@ -29,8 +29,8 @@ module PulpContainerClient
|
|
|
29
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
30
30
|
attr_accessor :name
|
|
31
31
|
|
|
32
|
-
#
|
|
33
|
-
attr_accessor :
|
|
32
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
33
|
+
attr_accessor :repository
|
|
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
|
-
:'
|
|
47
|
+
:'content_guard' => :'content_guard',
|
|
48
48
|
:'pulp_labels' => :'pulp_labels',
|
|
49
|
-
:'
|
|
49
|
+
:'base_path' => :'base_path',
|
|
50
50
|
:'hidden' => :'hidden',
|
|
51
51
|
:'name' => :'name',
|
|
52
|
-
:'
|
|
52
|
+
:'repository' => :'repository',
|
|
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
|
-
:'
|
|
62
|
+
:'content_guard' => :'String',
|
|
63
63
|
:'pulp_labels' => :'Hash<String, String>',
|
|
64
|
-
:'
|
|
64
|
+
:'base_path' => :'String',
|
|
65
65
|
:'hidden' => :'Boolean',
|
|
66
66
|
:'name' => :'String',
|
|
67
|
-
:'
|
|
67
|
+
:'repository' => :'String',
|
|
68
68
|
:'repository_version' => :'String',
|
|
69
69
|
:'private' => :'Boolean',
|
|
70
70
|
:'description' => :'String'
|
|
@@ -95,8 +95,8 @@ module PulpContainerClient
|
|
|
95
95
|
h[k.to_sym] = v
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
if attributes.key?(:'
|
|
99
|
-
self.
|
|
98
|
+
if attributes.key?(:'content_guard')
|
|
99
|
+
self.content_guard = attributes[:'content_guard']
|
|
100
100
|
end
|
|
101
101
|
|
|
102
102
|
if attributes.key?(:'pulp_labels')
|
|
@@ -105,8 +105,8 @@ module PulpContainerClient
|
|
|
105
105
|
end
|
|
106
106
|
end
|
|
107
107
|
|
|
108
|
-
if attributes.key?(:'
|
|
109
|
-
self.
|
|
108
|
+
if attributes.key?(:'base_path')
|
|
109
|
+
self.base_path = attributes[:'base_path']
|
|
110
110
|
end
|
|
111
111
|
|
|
112
112
|
if attributes.key?(:'hidden')
|
|
@@ -119,8 +119,8 @@ module PulpContainerClient
|
|
|
119
119
|
self.name = attributes[:'name']
|
|
120
120
|
end
|
|
121
121
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
122
|
+
if attributes.key?(:'repository')
|
|
123
|
+
self.repository = attributes[:'repository']
|
|
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
|
-
|
|
202
|
+
content_guard == o.content_guard &&
|
|
203
203
|
pulp_labels == o.pulp_labels &&
|
|
204
|
-
|
|
204
|
+
base_path == o.base_path &&
|
|
205
205
|
hidden == o.hidden &&
|
|
206
206
|
name == o.name &&
|
|
207
|
-
|
|
207
|
+
repository == o.repository &&
|
|
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
|
+
[content_guard, pulp_labels, base_path, hidden, name, repository, 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,13 +15,13 @@ 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 :
|
|
18
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
|
+
attr_accessor :content_guard
|
|
20
20
|
|
|
21
21
|
attr_accessor :pulp_labels
|
|
22
22
|
|
|
23
|
-
# The
|
|
24
|
-
attr_accessor :
|
|
23
|
+
# The registry path exposed by this pull-through distribution.
|
|
24
|
+
attr_accessor :base_path
|
|
25
25
|
|
|
26
26
|
# Whether this distribution should be shown in the content app.
|
|
27
27
|
attr_accessor :hidden
|
|
@@ -29,8 +29,8 @@ module PulpContainerClient
|
|
|
29
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
30
30
|
attr_accessor :name
|
|
31
31
|
|
|
32
|
-
#
|
|
33
|
-
attr_accessor :
|
|
32
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
33
|
+
attr_accessor :repository
|
|
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
|
-
:'
|
|
50
|
+
:'content_guard' => :'content_guard',
|
|
51
51
|
:'pulp_labels' => :'pulp_labels',
|
|
52
|
-
:'
|
|
52
|
+
:'base_path' => :'base_path',
|
|
53
53
|
:'hidden' => :'hidden',
|
|
54
54
|
:'name' => :'name',
|
|
55
|
-
:'
|
|
55
|
+
:'repository' => :'repository',
|
|
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
|
-
:'
|
|
66
|
+
:'content_guard' => :'String',
|
|
67
67
|
:'pulp_labels' => :'Hash<String, String>',
|
|
68
|
-
:'
|
|
68
|
+
:'base_path' => :'String',
|
|
69
69
|
:'hidden' => :'Boolean',
|
|
70
70
|
:'name' => :'String',
|
|
71
|
-
:'
|
|
71
|
+
:'repository' => :'String',
|
|
72
72
|
:'remote' => :'String',
|
|
73
73
|
:'distributions' => :'Array<String>',
|
|
74
74
|
:'private' => :'Boolean',
|
|
@@ -99,8 +99,8 @@ module PulpContainerClient
|
|
|
99
99
|
h[k.to_sym] = v
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
if attributes.key?(:'
|
|
103
|
-
self.
|
|
102
|
+
if attributes.key?(:'content_guard')
|
|
103
|
+
self.content_guard = attributes[:'content_guard']
|
|
104
104
|
end
|
|
105
105
|
|
|
106
106
|
if attributes.key?(:'pulp_labels')
|
|
@@ -109,8 +109,8 @@ module PulpContainerClient
|
|
|
109
109
|
end
|
|
110
110
|
end
|
|
111
111
|
|
|
112
|
-
if attributes.key?(:'
|
|
113
|
-
self.
|
|
112
|
+
if attributes.key?(:'base_path')
|
|
113
|
+
self.base_path = attributes[:'base_path']
|
|
114
114
|
end
|
|
115
115
|
|
|
116
116
|
if attributes.key?(:'hidden')
|
|
@@ -123,8 +123,8 @@ module PulpContainerClient
|
|
|
123
123
|
self.name = attributes[:'name']
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
-
if attributes.key?(:'
|
|
127
|
-
self.
|
|
126
|
+
if attributes.key?(:'repository')
|
|
127
|
+
self.repository = attributes[:'repository']
|
|
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
|
-
|
|
212
|
+
content_guard == o.content_guard &&
|
|
213
213
|
pulp_labels == o.pulp_labels &&
|
|
214
|
-
|
|
214
|
+
base_path == o.base_path &&
|
|
215
215
|
hidden == o.hidden &&
|
|
216
216
|
name == o.name &&
|
|
217
|
-
|
|
217
|
+
repository == o.repository &&
|
|
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
|
+
[content_guard, pulp_labels, base_path, hidden, name, repository, remote, distributions, private, description].hash
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# Builds the object from hash
|
|
@@ -15,48 +15,48 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class PatchedcontainerContainerPushRepository
|
|
18
|
-
|
|
19
|
-
attr_accessor :description
|
|
20
|
-
|
|
21
|
-
# A unique name for this repository.
|
|
22
|
-
attr_accessor :name
|
|
18
|
+
attr_accessor :pulp_labels
|
|
23
19
|
|
|
24
20
|
# A reference to an associated signing service.
|
|
25
21
|
attr_accessor :manifest_signing_service
|
|
26
22
|
|
|
23
|
+
# A unique name for this repository.
|
|
24
|
+
attr_accessor :name
|
|
25
|
+
|
|
27
26
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
27
|
attr_accessor :retain_repo_versions
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
# An optional description.
|
|
30
|
+
attr_accessor :description
|
|
31
31
|
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
|
-
:'
|
|
36
|
-
:'name' => :'name',
|
|
35
|
+
:'pulp_labels' => :'pulp_labels',
|
|
37
36
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
37
|
+
:'name' => :'name',
|
|
38
38
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
39
|
-
:'
|
|
39
|
+
:'description' => :'description'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
# Attribute type mapping.
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
|
-
:'
|
|
47
|
-
:'name' => :'String',
|
|
46
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
48
47
|
:'manifest_signing_service' => :'String',
|
|
48
|
+
:'name' => :'String',
|
|
49
49
|
:'retain_repo_versions' => :'Integer',
|
|
50
|
-
:'
|
|
50
|
+
:'description' => :'String'
|
|
51
51
|
}
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
# List of attributes with nullable: true
|
|
55
55
|
def self.openapi_nullable
|
|
56
56
|
Set.new([
|
|
57
|
-
:'description',
|
|
58
57
|
:'manifest_signing_service',
|
|
59
58
|
:'retain_repo_versions',
|
|
59
|
+
:'description'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -75,26 +75,26 @@ module PulpContainerClient
|
|
|
75
75
|
h[k.to_sym] = v
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
if attributes.key?(:'
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
if attributes.key?(:'name')
|
|
83
|
-
self.name = attributes[:'name']
|
|
78
|
+
if attributes.key?(:'pulp_labels')
|
|
79
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
80
|
+
self.pulp_labels = value
|
|
81
|
+
end
|
|
84
82
|
end
|
|
85
83
|
|
|
86
84
|
if attributes.key?(:'manifest_signing_service')
|
|
87
85
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
88
86
|
end
|
|
89
87
|
|
|
88
|
+
if attributes.key?(:'name')
|
|
89
|
+
self.name = attributes[:'name']
|
|
90
|
+
end
|
|
91
|
+
|
|
90
92
|
if attributes.key?(:'retain_repo_versions')
|
|
91
93
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
92
94
|
end
|
|
93
95
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
|
|
96
|
-
self.pulp_labels = value
|
|
97
|
-
end
|
|
96
|
+
if attributes.key?(:'description')
|
|
97
|
+
self.description = attributes[:'description']
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -102,10 +102,6 @@ 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 !@name.nil? && @name.to_s.length < 1
|
|
110
106
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
111
107
|
end
|
|
@@ -114,28 +110,22 @@ module PulpContainerClient
|
|
|
114
110
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
115
111
|
end
|
|
116
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
117
|
invalid_properties
|
|
118
118
|
end
|
|
119
119
|
|
|
120
120
|
# Check to see if the all the properties in the model are valid
|
|
121
121
|
# @return true if the model is valid
|
|
122
122
|
def valid?
|
|
123
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
124
123
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
125
124
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
125
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
126
126
|
true
|
|
127
127
|
end
|
|
128
128
|
|
|
129
|
-
# Custom attribute writer method with validation
|
|
130
|
-
# @param [Object] description Value to be assigned
|
|
131
|
-
def description=(description)
|
|
132
|
-
if !description.nil? && description.to_s.length < 1
|
|
133
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
@description = description
|
|
137
|
-
end
|
|
138
|
-
|
|
139
129
|
# Custom attribute writer method with validation
|
|
140
130
|
# @param [Object] name Value to be assigned
|
|
141
131
|
def name=(name)
|
|
@@ -156,16 +146,26 @@ module PulpContainerClient
|
|
|
156
146
|
@retain_repo_versions = retain_repo_versions
|
|
157
147
|
end
|
|
158
148
|
|
|
149
|
+
# Custom attribute writer method with validation
|
|
150
|
+
# @param [Object] description Value to be assigned
|
|
151
|
+
def description=(description)
|
|
152
|
+
if !description.nil? && description.to_s.length < 1
|
|
153
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
@description = description
|
|
157
|
+
end
|
|
158
|
+
|
|
159
159
|
# Checks equality by comparing each attribute.
|
|
160
160
|
# @param [Object] Object to be compared
|
|
161
161
|
def ==(o)
|
|
162
162
|
return true if self.equal?(o)
|
|
163
163
|
self.class == o.class &&
|
|
164
|
-
|
|
165
|
-
name == o.name &&
|
|
164
|
+
pulp_labels == o.pulp_labels &&
|
|
166
165
|
manifest_signing_service == o.manifest_signing_service &&
|
|
166
|
+
name == o.name &&
|
|
167
167
|
retain_repo_versions == o.retain_repo_versions &&
|
|
168
|
-
|
|
168
|
+
description == o.description
|
|
169
169
|
end
|
|
170
170
|
|
|
171
171
|
# @see the `==` method
|
|
@@ -177,7 +177,7 @@ module PulpContainerClient
|
|
|
177
177
|
# Calculates hash code according to all attributes.
|
|
178
178
|
# @return [Integer] Hash code
|
|
179
179
|
def hash
|
|
180
|
-
[
|
|
180
|
+
[pulp_labels, manifest_signing_service, name, retain_repo_versions, description].hash
|
|
181
181
|
end
|
|
182
182
|
|
|
183
183
|
# Builds the object from hash
|
|
@@ -32,13 +32,13 @@ 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 "content_guard"' 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_last_updated"' 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
|
|
@@ -50,19 +50,19 @@ describe 'ContainerContainerDistributionResponse' do
|
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
describe 'test attribute "
|
|
53
|
+
describe 'test attribute "pulp_href"' 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 "base_path"' 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 "pulp_created"' 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
|
|
@@ -80,7 +80,7 @@ describe 'ContainerContainerDistributionResponse' do
|
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
describe 'test attribute "
|
|
83
|
+
describe 'test attribute "repository"' do
|
|
84
84
|
it 'should work' do
|
|
85
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
86
86
|
end
|