pulp_container_client 2.22.4 → 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 +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- 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 +44 -44
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +66 -66
- 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 +44 -44
- 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 +4 -4
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +60 -60
|
@@ -15,10 +15,8 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepository
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
|
21
|
-
attr_accessor :retain_repo_versions
|
|
18
|
+
# An optional description.
|
|
19
|
+
attr_accessor :description
|
|
22
20
|
|
|
23
21
|
# A unique name for this repository.
|
|
24
22
|
attr_accessor :name
|
|
@@ -26,37 +24,39 @@ module PulpContainerClient
|
|
|
26
24
|
# A reference to an associated signing service.
|
|
27
25
|
attr_accessor :manifest_signing_service
|
|
28
26
|
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
attr_accessor :pulp_labels
|
|
28
|
+
|
|
29
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
30
|
+
attr_accessor :retain_repo_versions
|
|
31
31
|
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
|
-
:'
|
|
36
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
35
|
+
:'description' => :'description',
|
|
37
36
|
:'name' => :'name',
|
|
38
37
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
39
|
-
:'
|
|
38
|
+
:'pulp_labels' => :'pulp_labels',
|
|
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
|
-
:'
|
|
47
|
-
:'retain_repo_versions' => :'Integer',
|
|
46
|
+
:'description' => :'String',
|
|
48
47
|
:'name' => :'String',
|
|
49
48
|
:'manifest_signing_service' => :'String',
|
|
50
|
-
:'
|
|
49
|
+
:'pulp_labels' => :'Hash<String, 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
|
-
:'
|
|
57
|
+
:'description',
|
|
58
58
|
:'manifest_signing_service',
|
|
59
|
-
:'
|
|
59
|
+
:'retain_repo_versions'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -75,14 +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
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
if attributes.key?(:'retain_repo_versions')
|
|
85
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
78
|
+
if attributes.key?(:'description')
|
|
79
|
+
self.description = attributes[:'description']
|
|
86
80
|
end
|
|
87
81
|
|
|
88
82
|
if attributes.key?(:'name')
|
|
@@ -93,8 +87,14 @@ module PulpContainerClient
|
|
|
93
87
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
94
88
|
end
|
|
95
89
|
|
|
96
|
-
if attributes.key?(:'
|
|
97
|
-
|
|
90
|
+
if attributes.key?(:'pulp_labels')
|
|
91
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
92
|
+
self.pulp_labels = value
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'retain_repo_versions')
|
|
97
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -102,8 +102,8 @@ 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 !@
|
|
106
|
-
invalid_properties.push('invalid value for "
|
|
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
107
|
end
|
|
108
108
|
|
|
109
109
|
if @name.nil?
|
|
@@ -114,8 +114,8 @@ module PulpContainerClient
|
|
|
114
114
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
115
115
|
end
|
|
116
116
|
|
|
117
|
-
if !@
|
|
118
|
-
invalid_properties.push('invalid value for "
|
|
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
119
|
end
|
|
120
120
|
|
|
121
121
|
invalid_properties
|
|
@@ -124,21 +124,21 @@ 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 !@
|
|
127
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
128
128
|
return false if @name.nil?
|
|
129
129
|
return false if @name.to_s.length < 1
|
|
130
|
-
return false if !@
|
|
130
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
131
131
|
true
|
|
132
132
|
end
|
|
133
133
|
|
|
134
134
|
# Custom attribute writer method with validation
|
|
135
|
-
# @param [Object]
|
|
136
|
-
def
|
|
137
|
-
if !
|
|
138
|
-
fail ArgumentError, 'invalid value for "
|
|
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
139
|
end
|
|
140
140
|
|
|
141
|
-
@
|
|
141
|
+
@description = description
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
# Custom attribute writer method with validation
|
|
@@ -156,13 +156,13 @@ module PulpContainerClient
|
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
# Custom attribute writer method with validation
|
|
159
|
-
# @param [Object]
|
|
160
|
-
def
|
|
161
|
-
if !
|
|
162
|
-
fail ArgumentError, 'invalid value for "
|
|
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
163
|
end
|
|
164
164
|
|
|
165
|
-
@
|
|
165
|
+
@retain_repo_versions = retain_repo_versions
|
|
166
166
|
end
|
|
167
167
|
|
|
168
168
|
# Checks equality by comparing each attribute.
|
|
@@ -170,11 +170,11 @@ module PulpContainerClient
|
|
|
170
170
|
def ==(o)
|
|
171
171
|
return true if self.equal?(o)
|
|
172
172
|
self.class == o.class &&
|
|
173
|
-
|
|
174
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
173
|
+
description == o.description &&
|
|
175
174
|
name == o.name &&
|
|
176
175
|
manifest_signing_service == o.manifest_signing_service &&
|
|
177
|
-
|
|
176
|
+
pulp_labels == o.pulp_labels &&
|
|
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
|
+
[description, name, manifest_signing_service, pulp_labels, 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
|
-
|
|
18
|
+
# An optional description.
|
|
19
|
+
attr_accessor :description
|
|
19
20
|
|
|
20
|
-
#
|
|
21
|
-
attr_accessor :
|
|
21
|
+
# A unique name for this repository.
|
|
22
|
+
attr_accessor :name
|
|
23
|
+
|
|
24
|
+
# A reference to an associated signing service.
|
|
25
|
+
attr_accessor :manifest_signing_service
|
|
22
26
|
|
|
23
27
|
# Timestamp of creation.
|
|
24
28
|
attr_accessor :pulp_created
|
|
25
29
|
|
|
26
|
-
attr_accessor :
|
|
30
|
+
attr_accessor :pulp_labels
|
|
27
31
|
|
|
28
32
|
attr_accessor :latest_version_href
|
|
29
33
|
|
|
30
|
-
|
|
34
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
35
|
+
attr_accessor :retain_repo_versions
|
|
31
36
|
|
|
32
|
-
#
|
|
33
|
-
attr_accessor :
|
|
37
|
+
# The Pulp Resource Name (PRN).
|
|
38
|
+
attr_accessor :prn
|
|
34
39
|
|
|
35
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.
|
|
36
41
|
attr_accessor :pulp_last_updated
|
|
37
42
|
|
|
38
|
-
|
|
39
|
-
attr_accessor :manifest_signing_service
|
|
40
|
-
|
|
41
|
-
# The Pulp Resource Name (PRN).
|
|
42
|
-
attr_accessor :prn
|
|
43
|
+
attr_accessor :pulp_href
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
attr_accessor :description
|
|
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
|
-
:'
|
|
51
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
52
|
-
:'pulp_created' => :'pulp_created',
|
|
53
|
-
:'pulp_href' => :'pulp_href',
|
|
54
|
-
:'latest_version_href' => :'latest_version_href',
|
|
55
|
-
:'versions_href' => :'versions_href',
|
|
50
|
+
:'description' => :'description',
|
|
56
51
|
:'name' => :'name',
|
|
57
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
58
52
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
53
|
+
:'pulp_created' => :'pulp_created',
|
|
54
|
+
:'pulp_labels' => :'pulp_labels',
|
|
55
|
+
:'latest_version_href' => :'latest_version_href',
|
|
56
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
59
57
|
:'prn' => :'prn',
|
|
60
|
-
:'
|
|
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
|
-
:'retain_repo_versions' => :'Integer',
|
|
69
|
-
:'pulp_created' => :'DateTime',
|
|
70
|
-
:'pulp_href' => :'String',
|
|
71
|
-
:'latest_version_href' => :'String',
|
|
72
|
-
:'versions_href' => :'String',
|
|
67
|
+
:'description' => :'String',
|
|
73
68
|
:'name' => :'String',
|
|
74
|
-
:'pulp_last_updated' => :'DateTime',
|
|
75
69
|
:'manifest_signing_service' => :'String',
|
|
70
|
+
:'pulp_created' => :'DateTime',
|
|
71
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
72
|
+
:'latest_version_href' => :'String',
|
|
73
|
+
:'retain_repo_versions' => :'Integer',
|
|
76
74
|
:'prn' => :'String',
|
|
77
|
-
:'
|
|
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
|
-
:'
|
|
84
|
+
:'description',
|
|
85
85
|
:'manifest_signing_service',
|
|
86
|
-
:'
|
|
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?(:'description')
|
|
106
|
+
self.description = attributes[:'description']
|
|
109
107
|
end
|
|
110
108
|
|
|
111
|
-
if attributes.key?(:'
|
|
112
|
-
self.
|
|
109
|
+
if attributes.key?(:'name')
|
|
110
|
+
self.name = attributes[:'name']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'manifest_signing_service')
|
|
114
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
113
115
|
end
|
|
114
116
|
|
|
115
117
|
if attributes.key?(:'pulp_created')
|
|
116
118
|
self.pulp_created = attributes[:'pulp_created']
|
|
117
119
|
end
|
|
118
120
|
|
|
119
|
-
if attributes.key?(:'
|
|
120
|
-
|
|
121
|
+
if attributes.key?(:'pulp_labels')
|
|
122
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
123
|
+
self.pulp_labels = value
|
|
124
|
+
end
|
|
121
125
|
end
|
|
122
126
|
|
|
123
127
|
if attributes.key?(:'latest_version_href')
|
|
124
128
|
self.latest_version_href = attributes[:'latest_version_href']
|
|
125
129
|
end
|
|
126
130
|
|
|
127
|
-
if attributes.key?(:'
|
|
128
|
-
self.
|
|
131
|
+
if attributes.key?(:'retain_repo_versions')
|
|
132
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
129
133
|
end
|
|
130
134
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
self.
|
|
135
|
+
if attributes.key?(:'prn')
|
|
136
|
+
self.prn = attributes[:'prn']
|
|
133
137
|
end
|
|
134
138
|
|
|
135
139
|
if attributes.key?(:'pulp_last_updated')
|
|
136
140
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
137
141
|
end
|
|
138
142
|
|
|
139
|
-
if attributes.key?(:'
|
|
140
|
-
self.
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
if attributes.key?(:'prn')
|
|
144
|
-
self.prn = attributes[:'prn']
|
|
143
|
+
if attributes.key?(:'pulp_href')
|
|
144
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
-
if attributes.key?(:'
|
|
148
|
-
self.
|
|
147
|
+
if attributes.key?(:'versions_href')
|
|
148
|
+
self.versions_href = attributes[:'versions_href']
|
|
149
149
|
end
|
|
150
150
|
end
|
|
151
151
|
|
|
@@ -153,22 +153,22 @@ module PulpContainerClient
|
|
|
153
153
|
# @return Array for valid properties with the reasons
|
|
154
154
|
def list_invalid_properties
|
|
155
155
|
invalid_properties = Array.new
|
|
156
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
157
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
158
|
-
end
|
|
159
|
-
|
|
160
156
|
if @name.nil?
|
|
161
157
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
162
158
|
end
|
|
163
159
|
|
|
160
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
161
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
162
|
+
end
|
|
163
|
+
|
|
164
164
|
invalid_properties
|
|
165
165
|
end
|
|
166
166
|
|
|
167
167
|
# Check to see if the all the properties in the model are valid
|
|
168
168
|
# @return true if the model is valid
|
|
169
169
|
def valid?
|
|
170
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
171
170
|
return false if @name.nil?
|
|
171
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
172
172
|
true
|
|
173
173
|
end
|
|
174
174
|
|
|
@@ -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
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
192
|
-
pulp_created == o.pulp_created &&
|
|
193
|
-
pulp_href == o.pulp_href &&
|
|
194
|
-
latest_version_href == o.latest_version_href &&
|
|
195
|
-
versions_href == o.versions_href &&
|
|
190
|
+
description == o.description &&
|
|
196
191
|
name == o.name &&
|
|
197
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
198
192
|
manifest_signing_service == o.manifest_signing_service &&
|
|
193
|
+
pulp_created == o.pulp_created &&
|
|
194
|
+
pulp_labels == o.pulp_labels &&
|
|
195
|
+
latest_version_href == o.latest_version_href &&
|
|
196
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
199
197
|
prn == o.prn &&
|
|
200
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
24
|
-
attr_accessor :content_guard
|
|
24
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
25
|
+
attr_accessor :name
|
|
25
26
|
|
|
26
27
|
# The latest RepositoryVersion for this Repository will be served.
|
|
27
28
|
attr_accessor :repository
|
|
28
29
|
|
|
29
|
-
|
|
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
47
|
:'content_guard' => :'content_guard',
|
|
50
|
-
:'
|
|
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
62
|
:'content_guard' => :'String',
|
|
65
|
-
:'
|
|
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
|
-
end
|
|
109
|
-
|
|
110
|
-
if attributes.key?(:'content_guard')
|
|
111
|
-
self.content_guard = attributes[:'content_guard']
|
|
108
|
+
if attributes.key?(:'name')
|
|
109
|
+
self.name = attributes[:'name']
|
|
112
110
|
end
|
|
113
111
|
|
|
114
112
|
if attributes.key?(:'repository')
|
|
115
113
|
self.repository = attributes[:'repository']
|
|
116
114
|
end
|
|
117
115
|
|
|
118
|
-
if attributes.key?(:'
|
|
119
|
-
|
|
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
202
|
content_guard == o.content_guard &&
|
|
205
|
-
|
|
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
|
-
[
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
24
|
-
attr_accessor :content_guard
|
|
24
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
25
|
+
attr_accessor :name
|
|
25
26
|
|
|
26
27
|
# The latest RepositoryVersion for this Repository will be served.
|
|
27
28
|
attr_accessor :repository
|
|
28
29
|
|
|
29
|
-
|
|
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
50
|
:'content_guard' => :'content_guard',
|
|
53
|
-
:'
|
|
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
66
|
:'content_guard' => :'String',
|
|
69
|
-
:'
|
|
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
|
-
end
|
|
113
|
-
|
|
114
|
-
if attributes.key?(:'content_guard')
|
|
115
|
-
self.content_guard = attributes[:'content_guard']
|
|
112
|
+
if attributes.key?(:'name')
|
|
113
|
+
self.name = attributes[:'name']
|
|
116
114
|
end
|
|
117
115
|
|
|
118
116
|
if attributes.key?(:'repository')
|
|
119
117
|
self.repository = attributes[:'repository']
|
|
120
118
|
end
|
|
121
119
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
|
|
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
212
|
content_guard == o.content_guard &&
|
|
215
|
-
|
|
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
|
-
[
|
|
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
|