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