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