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