pulp_container_client 2.20.9 → 2.20.10
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 +9 -9
- data/docs/ContainerContainerDistributionResponse.md +12 -12
- data/docs/ContainerContainerPullThroughDistribution.md +9 -9
- data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
- data/docs/ContainerContainerPushRepository.md +4 -4
- data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
- data/docs/PatchedcontainerContainerDistribution.md +9 -9
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +9 -9
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- data/lib/pulp_container_client/models/container_container_distribution.rb +60 -60
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +59 -59
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +60 -60
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +59 -59
- data/lib/pulp_container_client/models/container_container_push_repository.rb +20 -20
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +44 -44
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +51 -51
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +51 -51
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +20 -20
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- 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 +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
- metadata +60 -60
|
@@ -18,25 +18,25 @@ module PulpContainerClient
|
|
|
18
18
|
# An optional description.
|
|
19
19
|
attr_accessor :description
|
|
20
20
|
|
|
21
|
+
attr_accessor :pulp_labels
|
|
22
|
+
|
|
21
23
|
# A unique name for this repository.
|
|
22
24
|
attr_accessor :name
|
|
23
25
|
|
|
24
|
-
# A reference to an associated signing service.
|
|
25
|
-
attr_accessor :manifest_signing_service
|
|
26
|
-
|
|
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
|
+
# A reference to an associated signing service.
|
|
30
|
+
attr_accessor :manifest_signing_service
|
|
31
31
|
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
35
|
:'description' => :'description',
|
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
|
36
37
|
:'name' => :'name',
|
|
37
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
|
38
38
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
39
|
-
:'
|
|
39
|
+
:'manifest_signing_service' => :'manifest_signing_service'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
@@ -44,10 +44,10 @@ module PulpContainerClient
|
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
46
|
:'description' => :'String',
|
|
47
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
47
48
|
:'name' => :'String',
|
|
48
|
-
:'manifest_signing_service' => :'String',
|
|
49
49
|
:'retain_repo_versions' => :'Integer',
|
|
50
|
-
:'
|
|
50
|
+
:'manifest_signing_service' => :'String'
|
|
51
51
|
}
|
|
52
52
|
end
|
|
53
53
|
|
|
@@ -55,8 +55,8 @@ module PulpContainerClient
|
|
|
55
55
|
def self.openapi_nullable
|
|
56
56
|
Set.new([
|
|
57
57
|
:'description',
|
|
58
|
-
:'manifest_signing_service',
|
|
59
58
|
:'retain_repo_versions',
|
|
59
|
+
:'manifest_signing_service'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -79,22 +79,22 @@ module PulpContainerClient
|
|
|
79
79
|
self.description = attributes[:'description']
|
|
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?(:'name')
|
|
89
|
+
self.name = attributes[:'name']
|
|
88
90
|
end
|
|
89
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?(:'manifest_signing_service')
|
|
97
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -171,10 +171,10 @@ module PulpContainerClient
|
|
|
171
171
|
return true if self.equal?(o)
|
|
172
172
|
self.class == o.class &&
|
|
173
173
|
description == o.description &&
|
|
174
|
+
pulp_labels == o.pulp_labels &&
|
|
174
175
|
name == o.name &&
|
|
175
|
-
manifest_signing_service == o.manifest_signing_service &&
|
|
176
176
|
retain_repo_versions == o.retain_repo_versions &&
|
|
177
|
-
|
|
177
|
+
manifest_signing_service == o.manifest_signing_service
|
|
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
|
-
[description,
|
|
189
|
+
[description, pulp_labels, name, retain_repo_versions, manifest_signing_service].hash
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
# Builds the object from hash
|
|
@@ -15,61 +15,61 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
|
18
|
-
attr_accessor :pulp_href
|
|
19
|
-
|
|
20
18
|
# An optional description.
|
|
21
19
|
attr_accessor :description
|
|
22
20
|
|
|
23
|
-
attr_accessor :
|
|
24
|
-
|
|
25
|
-
attr_accessor :versions_href
|
|
21
|
+
attr_accessor :pulp_labels
|
|
26
22
|
|
|
27
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.
|
|
28
24
|
attr_accessor :pulp_last_updated
|
|
29
25
|
|
|
26
|
+
attr_accessor :latest_version_href
|
|
27
|
+
|
|
28
|
+
attr_accessor :pulp_href
|
|
29
|
+
|
|
30
30
|
# Timestamp of creation.
|
|
31
31
|
attr_accessor :pulp_created
|
|
32
32
|
|
|
33
33
|
# A unique name for this repository.
|
|
34
34
|
attr_accessor :name
|
|
35
35
|
|
|
36
|
-
# A reference to an associated signing service.
|
|
37
|
-
attr_accessor :manifest_signing_service
|
|
38
|
-
|
|
39
36
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
40
37
|
attr_accessor :retain_repo_versions
|
|
41
38
|
|
|
42
|
-
attr_accessor :
|
|
39
|
+
attr_accessor :versions_href
|
|
40
|
+
|
|
41
|
+
# A reference to an associated signing service.
|
|
42
|
+
attr_accessor :manifest_signing_service
|
|
43
43
|
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
|
-
:'pulp_href' => :'pulp_href',
|
|
48
47
|
:'description' => :'description',
|
|
49
|
-
:'
|
|
50
|
-
:'versions_href' => :'versions_href',
|
|
48
|
+
:'pulp_labels' => :'pulp_labels',
|
|
51
49
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
50
|
+
:'latest_version_href' => :'latest_version_href',
|
|
51
|
+
:'pulp_href' => :'pulp_href',
|
|
52
52
|
:'pulp_created' => :'pulp_created',
|
|
53
53
|
:'name' => :'name',
|
|
54
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
|
55
54
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
56
|
-
:'
|
|
55
|
+
:'versions_href' => :'versions_href',
|
|
56
|
+
:'manifest_signing_service' => :'manifest_signing_service'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
# Attribute type mapping.
|
|
61
61
|
def self.openapi_types
|
|
62
62
|
{
|
|
63
|
-
:'pulp_href' => :'String',
|
|
64
63
|
:'description' => :'String',
|
|
65
|
-
:'
|
|
66
|
-
:'versions_href' => :'String',
|
|
64
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
67
65
|
:'pulp_last_updated' => :'DateTime',
|
|
66
|
+
:'latest_version_href' => :'String',
|
|
67
|
+
:'pulp_href' => :'String',
|
|
68
68
|
:'pulp_created' => :'DateTime',
|
|
69
69
|
:'name' => :'String',
|
|
70
|
-
:'manifest_signing_service' => :'String',
|
|
71
70
|
:'retain_repo_versions' => :'Integer',
|
|
72
|
-
:'
|
|
71
|
+
:'versions_href' => :'String',
|
|
72
|
+
:'manifest_signing_service' => :'String'
|
|
73
73
|
}
|
|
74
74
|
end
|
|
75
75
|
|
|
@@ -77,8 +77,8 @@ module PulpContainerClient
|
|
|
77
77
|
def self.openapi_nullable
|
|
78
78
|
Set.new([
|
|
79
79
|
:'description',
|
|
80
|
-
:'manifest_signing_service',
|
|
81
80
|
:'retain_repo_versions',
|
|
81
|
+
:'manifest_signing_service'
|
|
82
82
|
])
|
|
83
83
|
end
|
|
84
84
|
|
|
@@ -97,26 +97,28 @@ module PulpContainerClient
|
|
|
97
97
|
h[k.to_sym] = v
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
if attributes.key?(:'pulp_href')
|
|
101
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
102
|
-
end
|
|
103
|
-
|
|
104
100
|
if attributes.key?(:'description')
|
|
105
101
|
self.description = attributes[:'description']
|
|
106
102
|
end
|
|
107
103
|
|
|
108
|
-
if attributes.key?(:'
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
if attributes.key?(:'versions_href')
|
|
113
|
-
self.versions_href = attributes[:'versions_href']
|
|
104
|
+
if attributes.key?(:'pulp_labels')
|
|
105
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
106
|
+
self.pulp_labels = value
|
|
107
|
+
end
|
|
114
108
|
end
|
|
115
109
|
|
|
116
110
|
if attributes.key?(:'pulp_last_updated')
|
|
117
111
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
118
112
|
end
|
|
119
113
|
|
|
114
|
+
if attributes.key?(:'latest_version_href')
|
|
115
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'pulp_href')
|
|
119
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
120
|
+
end
|
|
121
|
+
|
|
120
122
|
if attributes.key?(:'pulp_created')
|
|
121
123
|
self.pulp_created = attributes[:'pulp_created']
|
|
122
124
|
end
|
|
@@ -125,18 +127,16 @@ module PulpContainerClient
|
|
|
125
127
|
self.name = attributes[:'name']
|
|
126
128
|
end
|
|
127
129
|
|
|
128
|
-
if attributes.key?(:'manifest_signing_service')
|
|
129
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
130
|
-
end
|
|
131
|
-
|
|
132
130
|
if attributes.key?(:'retain_repo_versions')
|
|
133
131
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
134
132
|
end
|
|
135
133
|
|
|
136
|
-
if attributes.key?(:'
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
134
|
+
if attributes.key?(:'versions_href')
|
|
135
|
+
self.versions_href = attributes[:'versions_href']
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'manifest_signing_service')
|
|
139
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
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
|
-
pulp_href == o.pulp_href &&
|
|
182
181
|
description == o.description &&
|
|
183
|
-
|
|
184
|
-
versions_href == o.versions_href &&
|
|
182
|
+
pulp_labels == o.pulp_labels &&
|
|
185
183
|
pulp_last_updated == o.pulp_last_updated &&
|
|
184
|
+
latest_version_href == o.latest_version_href &&
|
|
185
|
+
pulp_href == o.pulp_href &&
|
|
186
186
|
pulp_created == o.pulp_created &&
|
|
187
187
|
name == o.name &&
|
|
188
|
-
manifest_signing_service == o.manifest_signing_service &&
|
|
189
188
|
retain_repo_versions == o.retain_repo_versions &&
|
|
190
|
-
|
|
189
|
+
versions_href == o.versions_href &&
|
|
190
|
+
manifest_signing_service == o.manifest_signing_service
|
|
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
|
+
[description, pulp_labels, pulp_last_updated, latest_version_href, pulp_href, pulp_created, name, retain_repo_versions, versions_href, manifest_signing_service].hash
|
|
203
203
|
end
|
|
204
204
|
|
|
205
205
|
# Builds the object from hash
|
|
@@ -15,22 +15,22 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class PatchedcontainerContainerDistribution
|
|
18
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
19
|
-
attr_accessor :repository
|
|
20
|
-
|
|
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
18
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
25
19
|
attr_accessor :content_guard
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
attr_accessor :name
|
|
21
|
+
attr_accessor :pulp_labels
|
|
29
22
|
|
|
30
23
|
# Whether this distribution should be shown in the content app.
|
|
31
24
|
attr_accessor :hidden
|
|
32
25
|
|
|
33
|
-
|
|
26
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
27
|
+
attr_accessor :repository
|
|
28
|
+
|
|
29
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
30
|
+
attr_accessor :name
|
|
31
|
+
|
|
32
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
33
|
+
attr_accessor :base_path
|
|
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
|
-
:'repository' => :'repository',
|
|
48
|
-
:'base_path' => :'base_path',
|
|
49
47
|
:'content_guard' => :'content_guard',
|
|
50
|
-
:'name' => :'name',
|
|
51
|
-
:'hidden' => :'hidden',
|
|
52
48
|
:'pulp_labels' => :'pulp_labels',
|
|
49
|
+
:'hidden' => :'hidden',
|
|
50
|
+
:'repository' => :'repository',
|
|
51
|
+
:'name' => :'name',
|
|
52
|
+
:'base_path' => :'base_path',
|
|
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
|
-
:'repository' => :'String',
|
|
63
|
-
:'base_path' => :'String',
|
|
64
62
|
:'content_guard' => :'String',
|
|
65
|
-
:'name' => :'String',
|
|
66
|
-
:'hidden' => :'Boolean',
|
|
67
63
|
:'pulp_labels' => :'Hash<String, String>',
|
|
64
|
+
:'hidden' => :'Boolean',
|
|
65
|
+
:'repository' => :'String',
|
|
66
|
+
:'name' => :'String',
|
|
67
|
+
:'base_path' => :'String',
|
|
68
68
|
:'repository_version' => :'String',
|
|
69
69
|
:'private' => :'Boolean',
|
|
70
70
|
:'description' => :'String'
|
|
@@ -95,20 +95,14 @@ module PulpContainerClient
|
|
|
95
95
|
h[k.to_sym] = v
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
if attributes.key?(:'repository')
|
|
99
|
-
self.repository = attributes[:'repository']
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
if attributes.key?(:'base_path')
|
|
103
|
-
self.base_path = attributes[:'base_path']
|
|
104
|
-
end
|
|
105
|
-
|
|
106
98
|
if attributes.key?(:'content_guard')
|
|
107
99
|
self.content_guard = attributes[:'content_guard']
|
|
108
100
|
end
|
|
109
101
|
|
|
110
|
-
if attributes.key?(:'
|
|
111
|
-
|
|
102
|
+
if attributes.key?(:'pulp_labels')
|
|
103
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
104
|
+
self.pulp_labels = value
|
|
105
|
+
end
|
|
112
106
|
end
|
|
113
107
|
|
|
114
108
|
if attributes.key?(:'hidden')
|
|
@@ -117,10 +111,16 @@ module PulpContainerClient
|
|
|
117
111
|
self.hidden = false
|
|
118
112
|
end
|
|
119
113
|
|
|
120
|
-
if attributes.key?(:'
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
114
|
+
if attributes.key?(:'repository')
|
|
115
|
+
self.repository = attributes[:'repository']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'name')
|
|
119
|
+
self.name = attributes[:'name']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'base_path')
|
|
123
|
+
self.base_path = attributes[:'base_path']
|
|
124
124
|
end
|
|
125
125
|
|
|
126
126
|
if attributes.key?(:'repository_version')
|
|
@@ -140,14 +140,14 @@ module PulpContainerClient
|
|
|
140
140
|
# @return Array for valid properties with the reasons
|
|
141
141
|
def list_invalid_properties
|
|
142
142
|
invalid_properties = Array.new
|
|
143
|
-
if !@base_path.nil? && @base_path.to_s.length < 1
|
|
144
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
145
|
-
end
|
|
146
|
-
|
|
147
143
|
if !@name.nil? && @name.to_s.length < 1
|
|
148
144
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
149
145
|
end
|
|
150
146
|
|
|
147
|
+
if !@base_path.nil? && @base_path.to_s.length < 1
|
|
148
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
149
|
+
end
|
|
150
|
+
|
|
151
151
|
if !@description.nil? && @description.to_s.length < 1
|
|
152
152
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
153
153
|
end
|
|
@@ -158,22 +158,12 @@ module PulpContainerClient
|
|
|
158
158
|
# Check to see if the all the properties in the model are valid
|
|
159
159
|
# @return true if the model is valid
|
|
160
160
|
def valid?
|
|
161
|
-
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
|
162
161
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
162
|
+
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
|
163
163
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
164
164
|
true
|
|
165
165
|
end
|
|
166
166
|
|
|
167
|
-
# Custom attribute writer method with validation
|
|
168
|
-
# @param [Object] base_path Value to be assigned
|
|
169
|
-
def base_path=(base_path)
|
|
170
|
-
if !base_path.nil? && base_path.to_s.length < 1
|
|
171
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
@base_path = base_path
|
|
175
|
-
end
|
|
176
|
-
|
|
177
167
|
# Custom attribute writer method with validation
|
|
178
168
|
# @param [Object] name Value to be assigned
|
|
179
169
|
def name=(name)
|
|
@@ -184,6 +174,16 @@ module PulpContainerClient
|
|
|
184
174
|
@name = name
|
|
185
175
|
end
|
|
186
176
|
|
|
177
|
+
# Custom attribute writer method with validation
|
|
178
|
+
# @param [Object] base_path Value to be assigned
|
|
179
|
+
def base_path=(base_path)
|
|
180
|
+
if !base_path.nil? && base_path.to_s.length < 1
|
|
181
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
@base_path = base_path
|
|
185
|
+
end
|
|
186
|
+
|
|
187
187
|
# Custom attribute writer method with validation
|
|
188
188
|
# @param [Object] description Value to be assigned
|
|
189
189
|
def description=(description)
|
|
@@ -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
|
-
repository == o.repository &&
|
|
203
|
-
base_path == o.base_path &&
|
|
204
202
|
content_guard == o.content_guard &&
|
|
205
|
-
name == o.name &&
|
|
206
|
-
hidden == o.hidden &&
|
|
207
203
|
pulp_labels == o.pulp_labels &&
|
|
204
|
+
hidden == o.hidden &&
|
|
205
|
+
repository == o.repository &&
|
|
206
|
+
name == o.name &&
|
|
207
|
+
base_path == o.base_path &&
|
|
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, hidden, repository, name, base_path, 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
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
19
|
-
attr_accessor :repository
|
|
20
|
-
|
|
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
18
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
25
19
|
attr_accessor :content_guard
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
attr_accessor :name
|
|
21
|
+
attr_accessor :pulp_labels
|
|
29
22
|
|
|
30
23
|
# Whether this distribution should be shown in the content app.
|
|
31
24
|
attr_accessor :hidden
|
|
32
25
|
|
|
33
|
-
|
|
26
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
27
|
+
attr_accessor :repository
|
|
28
|
+
|
|
29
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
30
|
+
attr_accessor :name
|
|
31
|
+
|
|
32
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
33
|
+
attr_accessor :base_path
|
|
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
|
-
:'repository' => :'repository',
|
|
51
|
-
:'base_path' => :'base_path',
|
|
52
50
|
:'content_guard' => :'content_guard',
|
|
53
|
-
:'name' => :'name',
|
|
54
|
-
:'hidden' => :'hidden',
|
|
55
51
|
:'pulp_labels' => :'pulp_labels',
|
|
52
|
+
:'hidden' => :'hidden',
|
|
53
|
+
:'repository' => :'repository',
|
|
54
|
+
:'name' => :'name',
|
|
55
|
+
:'base_path' => :'base_path',
|
|
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
|
-
:'repository' => :'String',
|
|
67
|
-
:'base_path' => :'String',
|
|
68
66
|
:'content_guard' => :'String',
|
|
69
|
-
:'name' => :'String',
|
|
70
|
-
:'hidden' => :'Boolean',
|
|
71
67
|
:'pulp_labels' => :'Hash<String, String>',
|
|
68
|
+
:'hidden' => :'Boolean',
|
|
69
|
+
:'repository' => :'String',
|
|
70
|
+
:'name' => :'String',
|
|
71
|
+
:'base_path' => :'String',
|
|
72
72
|
:'remote' => :'String',
|
|
73
73
|
:'distributions' => :'Array<String>',
|
|
74
74
|
:'private' => :'Boolean',
|
|
@@ -99,20 +99,14 @@ module PulpContainerClient
|
|
|
99
99
|
h[k.to_sym] = v
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
if attributes.key?(:'repository')
|
|
103
|
-
self.repository = attributes[:'repository']
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
if attributes.key?(:'base_path')
|
|
107
|
-
self.base_path = attributes[:'base_path']
|
|
108
|
-
end
|
|
109
|
-
|
|
110
102
|
if attributes.key?(:'content_guard')
|
|
111
103
|
self.content_guard = attributes[:'content_guard']
|
|
112
104
|
end
|
|
113
105
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
|
|
106
|
+
if attributes.key?(:'pulp_labels')
|
|
107
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
108
|
+
self.pulp_labels = value
|
|
109
|
+
end
|
|
116
110
|
end
|
|
117
111
|
|
|
118
112
|
if attributes.key?(:'hidden')
|
|
@@ -121,10 +115,16 @@ module PulpContainerClient
|
|
|
121
115
|
self.hidden = false
|
|
122
116
|
end
|
|
123
117
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
118
|
+
if attributes.key?(:'repository')
|
|
119
|
+
self.repository = attributes[:'repository']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'name')
|
|
123
|
+
self.name = attributes[:'name']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'base_path')
|
|
127
|
+
self.base_path = attributes[:'base_path']
|
|
128
128
|
end
|
|
129
129
|
|
|
130
130
|
if attributes.key?(:'remote')
|
|
@@ -150,14 +150,14 @@ module PulpContainerClient
|
|
|
150
150
|
# @return Array for valid properties with the reasons
|
|
151
151
|
def list_invalid_properties
|
|
152
152
|
invalid_properties = Array.new
|
|
153
|
-
if !@base_path.nil? && @base_path.to_s.length < 1
|
|
154
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
155
|
-
end
|
|
156
|
-
|
|
157
153
|
if !@name.nil? && @name.to_s.length < 1
|
|
158
154
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
159
155
|
end
|
|
160
156
|
|
|
157
|
+
if !@base_path.nil? && @base_path.to_s.length < 1
|
|
158
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
159
|
+
end
|
|
160
|
+
|
|
161
161
|
if !@description.nil? && @description.to_s.length < 1
|
|
162
162
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
163
163
|
end
|
|
@@ -168,22 +168,12 @@ module PulpContainerClient
|
|
|
168
168
|
# Check to see if the all the properties in the model are valid
|
|
169
169
|
# @return true if the model is valid
|
|
170
170
|
def valid?
|
|
171
|
-
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
|
172
171
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
172
|
+
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
|
173
173
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
174
174
|
true
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
-
# Custom attribute writer method with validation
|
|
178
|
-
# @param [Object] base_path Value to be assigned
|
|
179
|
-
def base_path=(base_path)
|
|
180
|
-
if !base_path.nil? && base_path.to_s.length < 1
|
|
181
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
@base_path = base_path
|
|
185
|
-
end
|
|
186
|
-
|
|
187
177
|
# Custom attribute writer method with validation
|
|
188
178
|
# @param [Object] name Value to be assigned
|
|
189
179
|
def name=(name)
|
|
@@ -194,6 +184,16 @@ module PulpContainerClient
|
|
|
194
184
|
@name = name
|
|
195
185
|
end
|
|
196
186
|
|
|
187
|
+
# Custom attribute writer method with validation
|
|
188
|
+
# @param [Object] base_path Value to be assigned
|
|
189
|
+
def base_path=(base_path)
|
|
190
|
+
if !base_path.nil? && base_path.to_s.length < 1
|
|
191
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
@base_path = base_path
|
|
195
|
+
end
|
|
196
|
+
|
|
197
197
|
# Custom attribute writer method with validation
|
|
198
198
|
# @param [Object] description Value to be assigned
|
|
199
199
|
def description=(description)
|
|
@@ -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
|
-
repository == o.repository &&
|
|
213
|
-
base_path == o.base_path &&
|
|
214
212
|
content_guard == o.content_guard &&
|
|
215
|
-
name == o.name &&
|
|
216
|
-
hidden == o.hidden &&
|
|
217
213
|
pulp_labels == o.pulp_labels &&
|
|
214
|
+
hidden == o.hidden &&
|
|
215
|
+
repository == o.repository &&
|
|
216
|
+
name == o.name &&
|
|
217
|
+
base_path == o.base_path &&
|
|
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, hidden, repository, name, base_path, remote, distributions, private, description].hash
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# Builds the object from hash
|