pulp_container_client 2.15.0.dev1674789963 → 2.15.0.dev1675047954
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 +4 -4
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPushRepository.md +2 -2
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +2 -2
- data/docs/RepositoriesContainerApi.md +16 -0
- data/docs/RepositoriesContainerPushApi.md +16 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +24 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +24 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +25 -25
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +34 -34
- data/lib/pulp_container_client/models/container_container_push_repository.rb +27 -27
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +47 -47
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +25 -25
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +27 -27
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/repositories_container_api_spec.rb +8 -0
- data/spec/api/repositories_container_push_api_spec.rb +8 -0
- data/spec/models/container_container_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +8 -8
- data/spec/models/container_container_push_repository_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
- metadata +2 -2
@@ -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
18
|
# A unique name. Ex, `rawhide` and `stable`.
|
22
19
|
attr_accessor :name
|
23
20
|
|
24
|
-
# The
|
25
|
-
attr_accessor :
|
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\")
|
22
|
+
attr_accessor :base_path
|
23
|
+
|
24
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
25
|
+
attr_accessor :content_guard
|
26
26
|
|
27
27
|
attr_accessor :pulp_labels
|
28
28
|
|
29
|
+
attr_accessor :pulp_href
|
30
|
+
|
29
31
|
# Timestamp of creation.
|
30
32
|
attr_accessor :pulp_created
|
31
33
|
|
32
|
-
# The
|
33
|
-
attr_accessor :
|
34
|
-
|
35
|
-
attr_accessor :pulp_href
|
34
|
+
# The latest RepositoryVersion for this Repository will be served.
|
35
|
+
attr_accessor :repository
|
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
55
|
:'name' => :'name',
|
57
|
-
:'repository' => :'repository',
|
58
|
-
:'pulp_labels' => :'pulp_labels',
|
59
|
-
:'pulp_created' => :'pulp_created',
|
60
56
|
:'base_path' => :'base_path',
|
57
|
+
:'content_guard' => :'content_guard',
|
58
|
+
:'pulp_labels' => :'pulp_labels',
|
61
59
|
:'pulp_href' => :'pulp_href',
|
60
|
+
:'pulp_created' => :'pulp_created',
|
61
|
+
:'repository' => :'repository',
|
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
73
|
:'name' => :'String',
|
75
|
-
:'repository' => :'String',
|
76
|
-
:'pulp_labels' => :'Hash<String, String>',
|
77
|
-
:'pulp_created' => :'DateTime',
|
78
74
|
:'base_path' => :'String',
|
75
|
+
:'content_guard' => :'String',
|
76
|
+
:'pulp_labels' => :'Hash<String, String>',
|
79
77
|
:'pulp_href' => :'String',
|
78
|
+
:'pulp_created' => :'DateTime',
|
79
|
+
:'repository' => :'String',
|
80
80
|
:'repository_version' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
82
82
|
:'namespace' => :'String',
|
@@ -109,16 +109,16 @@ 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
112
|
if attributes.key?(:'name')
|
117
113
|
self.name = attributes[:'name']
|
118
114
|
end
|
119
115
|
|
120
|
-
if attributes.key?(:'
|
121
|
-
self.
|
116
|
+
if attributes.key?(:'base_path')
|
117
|
+
self.base_path = attributes[:'base_path']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'content_guard')
|
121
|
+
self.content_guard = attributes[:'content_guard']
|
122
122
|
end
|
123
123
|
|
124
124
|
if attributes.key?(:'pulp_labels')
|
@@ -127,16 +127,16 @@ module PulpContainerClient
|
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
130
|
-
if attributes.key?(:'
|
131
|
-
self.
|
130
|
+
if attributes.key?(:'pulp_href')
|
131
|
+
self.pulp_href = attributes[:'pulp_href']
|
132
132
|
end
|
133
133
|
|
134
|
-
if attributes.key?(:'
|
135
|
-
self.
|
134
|
+
if attributes.key?(:'pulp_created')
|
135
|
+
self.pulp_created = attributes[:'pulp_created']
|
136
136
|
end
|
137
137
|
|
138
|
-
if attributes.key?(:'
|
139
|
-
self.
|
138
|
+
if attributes.key?(:'repository')
|
139
|
+
self.repository = attributes[:'repository']
|
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
191
|
name == o.name &&
|
193
|
-
repository == o.repository &&
|
194
|
-
pulp_labels == o.pulp_labels &&
|
195
|
-
pulp_created == o.pulp_created &&
|
196
192
|
base_path == o.base_path &&
|
193
|
+
content_guard == o.content_guard &&
|
194
|
+
pulp_labels == o.pulp_labels &&
|
197
195
|
pulp_href == o.pulp_href &&
|
196
|
+
pulp_created == o.pulp_created &&
|
197
|
+
repository == o.repository &&
|
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, content_guard, pulp_labels, pulp_href, pulp_created, repository, repository_version, registry_path, namespace, private, description].hash
|
215
215
|
end
|
216
216
|
|
217
217
|
# Builds the object from hash
|
@@ -18,24 +18,24 @@ module PulpContainerClient
|
|
18
18
|
# A reference to an associated signing service.
|
19
19
|
attr_accessor :manifest_signing_service
|
20
20
|
|
21
|
-
# 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.
|
22
|
-
attr_accessor :retain_repo_versions
|
23
|
-
|
24
21
|
# A unique name for this repository.
|
25
22
|
attr_accessor :name
|
26
23
|
|
27
24
|
# An optional description.
|
28
25
|
attr_accessor :description
|
29
26
|
|
27
|
+
# 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.
|
28
|
+
attr_accessor :retain_repo_versions
|
29
|
+
|
30
30
|
attr_accessor :pulp_labels
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
35
|
:'manifest_signing_service' => :'manifest_signing_service',
|
36
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
37
36
|
:'name' => :'name',
|
38
37
|
:'description' => :'description',
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
39
39
|
:'pulp_labels' => :'pulp_labels'
|
40
40
|
}
|
41
41
|
end
|
@@ -44,9 +44,9 @@ module PulpContainerClient
|
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
46
|
:'manifest_signing_service' => :'String',
|
47
|
-
:'retain_repo_versions' => :'Integer',
|
48
47
|
:'name' => :'String',
|
49
48
|
:'description' => :'String',
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
50
50
|
:'pulp_labels' => :'Hash<String, String>'
|
51
51
|
}
|
52
52
|
end
|
@@ -55,8 +55,8 @@ module PulpContainerClient
|
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
57
|
:'manifest_signing_service',
|
58
|
-
:'retain_repo_versions',
|
59
58
|
:'description',
|
59
|
+
:'retain_repo_versions',
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -79,10 +79,6 @@ module PulpContainerClient
|
|
79
79
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'retain_repo_versions')
|
83
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
84
|
-
end
|
85
|
-
|
86
82
|
if attributes.key?(:'name')
|
87
83
|
self.name = attributes[:'name']
|
88
84
|
end
|
@@ -91,6 +87,10 @@ module PulpContainerClient
|
|
91
87
|
self.description = attributes[:'description']
|
92
88
|
end
|
93
89
|
|
90
|
+
if attributes.key?(:'retain_repo_versions')
|
91
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
92
|
+
end
|
93
|
+
|
94
94
|
if attributes.key?(:'pulp_labels')
|
95
95
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
96
96
|
self.pulp_labels = value
|
@@ -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 !@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
105
|
if @name.nil?
|
110
106
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
111
107
|
end
|
@@ -118,29 +114,23 @@ module PulpContainerClient
|
|
118
114
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
119
115
|
end
|
120
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
127
|
return false if @name.nil?
|
129
128
|
return false if @name.to_s.length < 1
|
130
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
|
-
# Custom attribute writer method with validation
|
135
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
136
|
-
def retain_repo_versions=(retain_repo_versions)
|
137
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
138
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
139
|
-
end
|
140
|
-
|
141
|
-
@retain_repo_versions = retain_repo_versions
|
142
|
-
end
|
143
|
-
|
144
134
|
# Custom attribute writer method with validation
|
145
135
|
# @param [Object] name Value to be assigned
|
146
136
|
def name=(name)
|
@@ -165,15 +155,25 @@ module PulpContainerClient
|
|
165
155
|
@description = description
|
166
156
|
end
|
167
157
|
|
158
|
+
# Custom attribute writer method with validation
|
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
|
+
end
|
164
|
+
|
165
|
+
@retain_repo_versions = retain_repo_versions
|
166
|
+
end
|
167
|
+
|
168
168
|
# Checks equality by comparing each attribute.
|
169
169
|
# @param [Object] Object to be compared
|
170
170
|
def ==(o)
|
171
171
|
return true if self.equal?(o)
|
172
172
|
self.class == o.class &&
|
173
173
|
manifest_signing_service == o.manifest_signing_service &&
|
174
|
-
retain_repo_versions == o.retain_repo_versions &&
|
175
174
|
name == o.name &&
|
176
175
|
description == o.description &&
|
176
|
+
retain_repo_versions == o.retain_repo_versions &&
|
177
177
|
pulp_labels == o.pulp_labels
|
178
178
|
end
|
179
179
|
|
@@ -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
|
-
[manifest_signing_service,
|
189
|
+
[manifest_signing_service, name, description, retain_repo_versions, pulp_labels].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -15,56 +15,56 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
attr_accessor :versions_href
|
19
|
-
|
20
18
|
# A reference to an associated signing service.
|
21
19
|
attr_accessor :manifest_signing_service
|
22
20
|
|
23
|
-
attr_accessor :pulp_href
|
24
|
-
|
25
|
-
# 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.
|
26
|
-
attr_accessor :retain_repo_versions
|
27
|
-
|
28
21
|
# A unique name for this repository.
|
29
22
|
attr_accessor :name
|
30
23
|
|
31
24
|
# An optional description.
|
32
25
|
attr_accessor :description
|
33
26
|
|
27
|
+
# 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.
|
28
|
+
attr_accessor :retain_repo_versions
|
29
|
+
|
30
|
+
attr_accessor :versions_href
|
31
|
+
|
34
32
|
attr_accessor :pulp_labels
|
35
33
|
|
34
|
+
attr_accessor :latest_version_href
|
35
|
+
|
36
|
+
attr_accessor :pulp_href
|
37
|
+
|
36
38
|
# Timestamp of creation.
|
37
39
|
attr_accessor :pulp_created
|
38
40
|
|
39
|
-
attr_accessor :latest_version_href
|
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
44
|
:'manifest_signing_service' => :'manifest_signing_service',
|
46
|
-
:'pulp_href' => :'pulp_href',
|
47
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
48
45
|
:'name' => :'name',
|
49
46
|
:'description' => :'description',
|
47
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
48
|
+
:'versions_href' => :'versions_href',
|
50
49
|
:'pulp_labels' => :'pulp_labels',
|
51
|
-
:'
|
52
|
-
:'
|
50
|
+
:'latest_version_href' => :'latest_version_href',
|
51
|
+
:'pulp_href' => :'pulp_href',
|
52
|
+
:'pulp_created' => :'pulp_created'
|
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
59
|
:'manifest_signing_service' => :'String',
|
61
|
-
:'pulp_href' => :'String',
|
62
|
-
:'retain_repo_versions' => :'Integer',
|
63
60
|
:'name' => :'String',
|
64
61
|
:'description' => :'String',
|
62
|
+
:'retain_repo_versions' => :'Integer',
|
63
|
+
:'versions_href' => :'String',
|
65
64
|
:'pulp_labels' => :'Hash<String, String>',
|
66
|
-
:'
|
67
|
-
:'
|
65
|
+
:'latest_version_href' => :'String',
|
66
|
+
:'pulp_href' => :'String',
|
67
|
+
:'pulp_created' => :'DateTime'
|
68
68
|
}
|
69
69
|
end
|
70
70
|
|
@@ -72,8 +72,8 @@ module PulpContainerClient
|
|
72
72
|
def self.openapi_nullable
|
73
73
|
Set.new([
|
74
74
|
:'manifest_signing_service',
|
75
|
-
:'retain_repo_versions',
|
76
75
|
:'description',
|
76
|
+
:'retain_repo_versions',
|
77
77
|
])
|
78
78
|
end
|
79
79
|
|
@@ -92,22 +92,10 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'versions_href')
|
96
|
-
self.versions_href = attributes[:'versions_href']
|
97
|
-
end
|
98
|
-
|
99
95
|
if attributes.key?(:'manifest_signing_service')
|
100
96
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
101
97
|
end
|
102
98
|
|
103
|
-
if attributes.key?(:'pulp_href')
|
104
|
-
self.pulp_href = attributes[:'pulp_href']
|
105
|
-
end
|
106
|
-
|
107
|
-
if attributes.key?(:'retain_repo_versions')
|
108
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
109
|
-
end
|
110
|
-
|
111
99
|
if attributes.key?(:'name')
|
112
100
|
self.name = attributes[:'name']
|
113
101
|
end
|
@@ -116,41 +104,53 @@ module PulpContainerClient
|
|
116
104
|
self.description = attributes[:'description']
|
117
105
|
end
|
118
106
|
|
107
|
+
if attributes.key?(:'retain_repo_versions')
|
108
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'versions_href')
|
112
|
+
self.versions_href = attributes[:'versions_href']
|
113
|
+
end
|
114
|
+
|
119
115
|
if attributes.key?(:'pulp_labels')
|
120
116
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
121
117
|
self.pulp_labels = value
|
122
118
|
end
|
123
119
|
end
|
124
120
|
|
125
|
-
if attributes.key?(:'pulp_created')
|
126
|
-
self.pulp_created = attributes[:'pulp_created']
|
127
|
-
end
|
128
|
-
|
129
121
|
if attributes.key?(:'latest_version_href')
|
130
122
|
self.latest_version_href = attributes[:'latest_version_href']
|
131
123
|
end
|
124
|
+
|
125
|
+
if attributes.key?(:'pulp_href')
|
126
|
+
self.pulp_href = attributes[:'pulp_href']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'pulp_created')
|
130
|
+
self.pulp_created = attributes[:'pulp_created']
|
131
|
+
end
|
132
132
|
end
|
133
133
|
|
134
134
|
# Show invalid properties with the reasons. Usually used together with valid?
|
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
172
|
manifest_signing_service == o.manifest_signing_service &&
|
174
|
-
pulp_href == o.pulp_href &&
|
175
|
-
retain_repo_versions == o.retain_repo_versions &&
|
176
173
|
name == o.name &&
|
177
174
|
description == o.description &&
|
175
|
+
retain_repo_versions == o.retain_repo_versions &&
|
176
|
+
versions_href == o.versions_href &&
|
178
177
|
pulp_labels == o.pulp_labels &&
|
179
|
-
|
180
|
-
|
178
|
+
latest_version_href == o.latest_version_href &&
|
179
|
+
pulp_href == o.pulp_href &&
|
180
|
+
pulp_created == o.pulp_created
|
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
|
+
[manifest_signing_service, name, description, retain_repo_versions, versions_href, pulp_labels, latest_version_href, pulp_href, pulp_created].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|
@@ -15,19 +15,19 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
19
|
-
attr_accessor :content_guard
|
20
|
-
|
21
18
|
# A unique name. Ex, `rawhide` and `stable`.
|
22
19
|
attr_accessor :name
|
23
20
|
|
24
|
-
# The
|
25
|
-
attr_accessor :
|
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\")
|
22
|
+
attr_accessor :base_path
|
23
|
+
|
24
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
25
|
+
attr_accessor :content_guard
|
26
26
|
|
27
27
|
attr_accessor :pulp_labels
|
28
28
|
|
29
|
-
# The
|
30
|
-
attr_accessor :
|
29
|
+
# The latest RepositoryVersion for this Repository will be served.
|
30
|
+
attr_accessor :repository
|
31
31
|
|
32
32
|
# RepositoryVersion to be served
|
33
33
|
attr_accessor :repository_version
|
@@ -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
44
|
:'name' => :'name',
|
46
|
-
:'repository' => :'repository',
|
47
|
-
:'pulp_labels' => :'pulp_labels',
|
48
45
|
:'base_path' => :'base_path',
|
46
|
+
:'content_guard' => :'content_guard',
|
47
|
+
:'pulp_labels' => :'pulp_labels',
|
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
58
|
:'name' => :'String',
|
60
|
-
:'repository' => :'String',
|
61
|
-
:'pulp_labels' => :'Hash<String, String>',
|
62
59
|
:'base_path' => :'String',
|
60
|
+
:'content_guard' => :'String',
|
61
|
+
:'pulp_labels' => :'Hash<String, String>',
|
62
|
+
:'repository' => :'String',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
@@ -90,16 +90,16 @@ 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
93
|
if attributes.key?(:'name')
|
98
94
|
self.name = attributes[:'name']
|
99
95
|
end
|
100
96
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
97
|
+
if attributes.key?(:'base_path')
|
98
|
+
self.base_path = attributes[:'base_path']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'content_guard')
|
102
|
+
self.content_guard = attributes[:'content_guard']
|
103
103
|
end
|
104
104
|
|
105
105
|
if attributes.key?(:'pulp_labels')
|
@@ -108,8 +108,8 @@ module PulpContainerClient
|
|
108
108
|
end
|
109
109
|
end
|
110
110
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
111
|
+
if attributes.key?(:'repository')
|
112
|
+
self.repository = attributes[:'repository']
|
113
113
|
end
|
114
114
|
|
115
115
|
if attributes.key?(:'repository_version')
|
@@ -188,11 +188,11 @@ 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
191
|
name == o.name &&
|
193
|
-
repository == o.repository &&
|
194
|
-
pulp_labels == o.pulp_labels &&
|
195
192
|
base_path == o.base_path &&
|
193
|
+
content_guard == o.content_guard &&
|
194
|
+
pulp_labels == o.pulp_labels &&
|
195
|
+
repository == o.repository &&
|
196
196
|
repository_version == o.repository_version &&
|
197
197
|
private == o.private &&
|
198
198
|
description == o.description
|
@@ -207,7 +207,7 @@ module PulpContainerClient
|
|
207
207
|
# Calculates hash code according to all attributes.
|
208
208
|
# @return [Integer] Hash code
|
209
209
|
def hash
|
210
|
-
[
|
210
|
+
[name, base_path, content_guard, pulp_labels, repository, repository_version, private, description].hash
|
211
211
|
end
|
212
212
|
|
213
213
|
# Builds the object from hash
|