pulp_container_client 2.24.1 → 2.24.2
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 +12 -4
- data/docs/ContainerContainerDistribution.md +4 -4
- data/docs/ContainerContainerDistributionResponse.md +12 -12
- data/docs/ContainerContainerPullThroughDistribution.md +4 -4
- data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
- data/docs/ContentBlobsApi.md +146 -0
- data/docs/ContentManifestsApi.md +146 -0
- data/docs/ContentSignaturesApi.md +146 -0
- data/docs/ContentTagsApi.md +146 -0
- data/docs/DistributionsContainerApi.md +4 -2
- data/docs/DistributionsPullThroughApi.md +4 -2
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/api/content_blobs_api.rb +148 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +148 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +148 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +148 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +6 -3
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +6 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +25 -25
- 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 +25 -25
- 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 +47 -47
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +70 -70
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +21 -21
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +21 -21
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +47 -47
- data/lib/pulp_container_client/models/unset_label.rb +1 -1
- data/lib/pulp_container_client/models/unset_label_response.rb +1 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/pulp_container_client.gemspec +0 -1
- data/spec/api/content_blobs_api_spec.rb +26 -0
- data/spec/api/content_manifests_api_spec.rb +26 -0
- data/spec/api/content_signatures_api_spec.rb +26 -0
- data/spec/api/content_tags_api_spec.rb +26 -0
- data/spec/api/distributions_container_api_spec.rb +2 -1
- data/spec/api/distributions_pull_through_api_spec.rb +2 -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 +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 +2 -22
@@ -16,28 +16,28 @@ require 'time'
|
|
16
16
|
module PulpContainerClient
|
17
17
|
# Serializer for Container Push Repositories.
|
18
18
|
class ContainerContainerPushRepository
|
19
|
+
attr_accessor :pulp_labels
|
20
|
+
|
21
|
+
# An optional description.
|
22
|
+
attr_accessor :description
|
23
|
+
|
19
24
|
# A reference to an associated signing service.
|
20
25
|
attr_accessor :manifest_signing_service
|
21
26
|
|
22
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
23
|
-
attr_accessor :retain_repo_versions
|
24
|
-
|
25
27
|
# A unique name for this repository.
|
26
28
|
attr_accessor :name
|
27
29
|
|
28
|
-
#
|
29
|
-
attr_accessor :
|
30
|
-
|
31
|
-
attr_accessor :pulp_labels
|
30
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
31
|
+
attr_accessor :retain_repo_versions
|
32
32
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
37
|
+
:'description' => :'description',
|
36
38
|
:'manifest_signing_service' => :'manifest_signing_service',
|
37
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
38
39
|
:'name' => :'name',
|
39
|
-
:'
|
40
|
-
:'pulp_labels' => :'pulp_labels'
|
40
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
@@ -49,20 +49,20 @@ module PulpContainerClient
|
|
49
49
|
# Attribute type mapping.
|
50
50
|
def self.openapi_types
|
51
51
|
{
|
52
|
+
:'pulp_labels' => :'Hash<String, String>',
|
53
|
+
:'description' => :'String',
|
52
54
|
:'manifest_signing_service' => :'String',
|
53
|
-
:'retain_repo_versions' => :'Integer',
|
54
55
|
:'name' => :'String',
|
55
|
-
:'
|
56
|
-
:'pulp_labels' => :'Hash<String, String>'
|
56
|
+
:'retain_repo_versions' => :'Integer'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
60
60
|
# List of attributes with nullable: true
|
61
61
|
def self.openapi_nullable
|
62
62
|
Set.new([
|
63
|
-
:'manifest_signing_service',
|
64
|
-
:'retain_repo_versions',
|
65
63
|
:'description',
|
64
|
+
:'manifest_signing_service',
|
65
|
+
:'retain_repo_versions'
|
66
66
|
])
|
67
67
|
end
|
68
68
|
|
@@ -81,12 +81,18 @@ module PulpContainerClient
|
|
81
81
|
h[k.to_sym] = v
|
82
82
|
}
|
83
83
|
|
84
|
-
if attributes.key?(:'
|
85
|
-
|
84
|
+
if attributes.key?(:'pulp_labels')
|
85
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
86
|
+
self.pulp_labels = value
|
87
|
+
end
|
86
88
|
end
|
87
89
|
|
88
|
-
if attributes.key?(:'
|
89
|
-
self.
|
90
|
+
if attributes.key?(:'description')
|
91
|
+
self.description = attributes[:'description']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'manifest_signing_service')
|
95
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
90
96
|
end
|
91
97
|
|
92
98
|
if attributes.key?(:'name')
|
@@ -95,14 +101,8 @@ module PulpContainerClient
|
|
95
101
|
self.name = nil
|
96
102
|
end
|
97
103
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
self.
|
100
|
-
end
|
101
|
-
|
102
|
-
if attributes.key?(:'pulp_labels')
|
103
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
104
|
-
self.pulp_labels = value
|
105
|
-
end
|
104
|
+
if attributes.key?(:'retain_repo_versions')
|
105
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
@@ -111,8 +111,8 @@ module PulpContainerClient
|
|
111
111
|
def list_invalid_properties
|
112
112
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
113
113
|
invalid_properties = Array.new
|
114
|
-
if !@
|
115
|
-
invalid_properties.push('invalid value for "
|
114
|
+
if !@description.nil? && @description.to_s.length < 1
|
115
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
116
116
|
end
|
117
117
|
|
118
118
|
if @name.nil?
|
@@ -123,8 +123,8 @@ module PulpContainerClient
|
|
123
123
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
124
124
|
end
|
125
125
|
|
126
|
-
if !@
|
127
|
-
invalid_properties.push('invalid value for "
|
126
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
127
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
128
128
|
end
|
129
129
|
|
130
130
|
invalid_properties
|
@@ -134,21 +134,21 @@ module PulpContainerClient
|
|
134
134
|
# @return true if the model is valid
|
135
135
|
def valid?
|
136
136
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
137
|
-
return false if !@
|
137
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
138
138
|
return false if @name.nil?
|
139
139
|
return false if @name.to_s.length < 1
|
140
|
-
return false if !@
|
140
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
141
141
|
true
|
142
142
|
end
|
143
143
|
|
144
144
|
# Custom attribute writer method with validation
|
145
|
-
# @param [Object]
|
146
|
-
def
|
147
|
-
if !
|
148
|
-
fail ArgumentError, 'invalid value for "
|
145
|
+
# @param [Object] description Value to be assigned
|
146
|
+
def description=(description)
|
147
|
+
if !description.nil? && description.to_s.length < 1
|
148
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
149
149
|
end
|
150
150
|
|
151
|
-
@
|
151
|
+
@description = description
|
152
152
|
end
|
153
153
|
|
154
154
|
# Custom attribute writer method with validation
|
@@ -166,13 +166,13 @@ module PulpContainerClient
|
|
166
166
|
end
|
167
167
|
|
168
168
|
# Custom attribute writer method with validation
|
169
|
-
# @param [Object]
|
170
|
-
def
|
171
|
-
if !
|
172
|
-
fail ArgumentError, 'invalid value for "
|
169
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
170
|
+
def retain_repo_versions=(retain_repo_versions)
|
171
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
172
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
173
173
|
end
|
174
174
|
|
175
|
-
@
|
175
|
+
@retain_repo_versions = retain_repo_versions
|
176
176
|
end
|
177
177
|
|
178
178
|
# Checks equality by comparing each attribute.
|
@@ -180,11 +180,11 @@ module PulpContainerClient
|
|
180
180
|
def ==(o)
|
181
181
|
return true if self.equal?(o)
|
182
182
|
self.class == o.class &&
|
183
|
+
pulp_labels == o.pulp_labels &&
|
184
|
+
description == o.description &&
|
183
185
|
manifest_signing_service == o.manifest_signing_service &&
|
184
|
-
retain_repo_versions == o.retain_repo_versions &&
|
185
186
|
name == o.name &&
|
186
|
-
|
187
|
-
pulp_labels == o.pulp_labels
|
187
|
+
retain_repo_versions == o.retain_repo_versions
|
188
188
|
end
|
189
189
|
|
190
190
|
# @see the `==` method
|
@@ -196,7 +196,7 @@ module PulpContainerClient
|
|
196
196
|
# Calculates hash code according to all attributes.
|
197
197
|
# @return [Integer] Hash code
|
198
198
|
def hash
|
199
|
-
[
|
199
|
+
[pulp_labels, description, manifest_signing_service, name, retain_repo_versions].hash
|
200
200
|
end
|
201
201
|
|
202
202
|
# Builds the object from hash
|
@@ -16,49 +16,49 @@ require 'time'
|
|
16
16
|
module PulpContainerClient
|
17
17
|
# Serializer for Container Push Repositories.
|
18
18
|
class ContainerContainerPushRepositoryResponse
|
19
|
-
|
20
|
-
attr_accessor :manifest_signing_service
|
19
|
+
attr_accessor :pulp_labels
|
21
20
|
|
22
21
|
# The Pulp Resource Name (PRN).
|
23
22
|
attr_accessor :prn
|
24
23
|
|
25
|
-
attr_accessor :pulp_href
|
26
|
-
|
27
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
28
|
-
attr_accessor :retain_repo_versions
|
29
|
-
|
30
|
-
# 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.
|
31
|
-
attr_accessor :pulp_last_updated
|
32
|
-
|
33
|
-
# A unique name for this repository.
|
34
|
-
attr_accessor :name
|
35
|
-
|
36
24
|
attr_accessor :latest_version_href
|
37
25
|
|
38
|
-
attr_accessor :
|
26
|
+
attr_accessor :pulp_href
|
39
27
|
|
40
28
|
# An optional description.
|
41
29
|
attr_accessor :description
|
42
30
|
|
43
|
-
|
31
|
+
# A reference to an associated signing service.
|
32
|
+
attr_accessor :manifest_signing_service
|
33
|
+
|
34
|
+
attr_accessor :versions_href
|
44
35
|
|
45
36
|
# Timestamp of creation.
|
46
37
|
attr_accessor :pulp_created
|
47
38
|
|
39
|
+
# A unique name for this repository.
|
40
|
+
attr_accessor :name
|
41
|
+
|
42
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
43
|
+
attr_accessor :retain_repo_versions
|
44
|
+
|
45
|
+
# 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.
|
46
|
+
attr_accessor :pulp_last_updated
|
47
|
+
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
49
|
def self.attribute_map
|
50
50
|
{
|
51
|
-
:'
|
51
|
+
:'pulp_labels' => :'pulp_labels',
|
52
52
|
:'prn' => :'prn',
|
53
|
-
:'pulp_href' => :'pulp_href',
|
54
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
55
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
56
|
-
:'name' => :'name',
|
57
53
|
:'latest_version_href' => :'latest_version_href',
|
58
|
-
:'
|
54
|
+
:'pulp_href' => :'pulp_href',
|
59
55
|
:'description' => :'description',
|
60
|
-
:'
|
61
|
-
:'
|
56
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
57
|
+
:'versions_href' => :'versions_href',
|
58
|
+
:'pulp_created' => :'pulp_created',
|
59
|
+
:'name' => :'name',
|
60
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
61
|
+
:'pulp_last_updated' => :'pulp_last_updated'
|
62
62
|
}
|
63
63
|
end
|
64
64
|
|
@@ -70,26 +70,26 @@ module PulpContainerClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'
|
73
|
+
:'pulp_labels' => :'Hash<String, String>',
|
74
74
|
:'prn' => :'String',
|
75
|
-
:'pulp_href' => :'String',
|
76
|
-
:'retain_repo_versions' => :'Integer',
|
77
|
-
:'pulp_last_updated' => :'Time',
|
78
|
-
:'name' => :'String',
|
79
75
|
:'latest_version_href' => :'String',
|
80
|
-
:'
|
76
|
+
:'pulp_href' => :'String',
|
81
77
|
:'description' => :'String',
|
82
|
-
:'
|
83
|
-
:'
|
78
|
+
:'manifest_signing_service' => :'String',
|
79
|
+
:'versions_href' => :'String',
|
80
|
+
:'pulp_created' => :'Time',
|
81
|
+
:'name' => :'String',
|
82
|
+
:'retain_repo_versions' => :'Integer',
|
83
|
+
:'pulp_last_updated' => :'Time'
|
84
84
|
}
|
85
85
|
end
|
86
86
|
|
87
87
|
# List of attributes with nullable: true
|
88
88
|
def self.openapi_nullable
|
89
89
|
Set.new([
|
90
|
+
:'description',
|
90
91
|
:'manifest_signing_service',
|
91
92
|
:'retain_repo_versions',
|
92
|
-
:'description',
|
93
93
|
])
|
94
94
|
end
|
95
95
|
|
@@ -108,52 +108,52 @@ module PulpContainerClient
|
|
108
108
|
h[k.to_sym] = v
|
109
109
|
}
|
110
110
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
|
111
|
+
if attributes.key?(:'pulp_labels')
|
112
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
113
|
+
self.pulp_labels = value
|
114
|
+
end
|
113
115
|
end
|
114
116
|
|
115
117
|
if attributes.key?(:'prn')
|
116
118
|
self.prn = attributes[:'prn']
|
117
119
|
end
|
118
120
|
|
119
|
-
if attributes.key?(:'
|
120
|
-
self.
|
121
|
-
end
|
122
|
-
|
123
|
-
if attributes.key?(:'retain_repo_versions')
|
124
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
121
|
+
if attributes.key?(:'latest_version_href')
|
122
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
125
123
|
end
|
126
124
|
|
127
|
-
if attributes.key?(:'
|
128
|
-
self.
|
125
|
+
if attributes.key?(:'pulp_href')
|
126
|
+
self.pulp_href = attributes[:'pulp_href']
|
129
127
|
end
|
130
128
|
|
131
|
-
if attributes.key?(:'
|
132
|
-
self.
|
133
|
-
else
|
134
|
-
self.name = nil
|
129
|
+
if attributes.key?(:'description')
|
130
|
+
self.description = attributes[:'description']
|
135
131
|
end
|
136
132
|
|
137
|
-
if attributes.key?(:'
|
138
|
-
self.
|
133
|
+
if attributes.key?(:'manifest_signing_service')
|
134
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
139
135
|
end
|
140
136
|
|
141
137
|
if attributes.key?(:'versions_href')
|
142
138
|
self.versions_href = attributes[:'versions_href']
|
143
139
|
end
|
144
140
|
|
145
|
-
if attributes.key?(:'
|
146
|
-
self.
|
141
|
+
if attributes.key?(:'pulp_created')
|
142
|
+
self.pulp_created = attributes[:'pulp_created']
|
147
143
|
end
|
148
144
|
|
149
|
-
if attributes.key?(:'
|
150
|
-
|
151
|
-
|
152
|
-
|
145
|
+
if attributes.key?(:'name')
|
146
|
+
self.name = attributes[:'name']
|
147
|
+
else
|
148
|
+
self.name = nil
|
153
149
|
end
|
154
150
|
|
155
|
-
if attributes.key?(:'
|
156
|
-
self.
|
151
|
+
if attributes.key?(:'retain_repo_versions')
|
152
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
153
|
+
end
|
154
|
+
|
155
|
+
if attributes.key?(:'pulp_last_updated')
|
156
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
157
157
|
end
|
158
158
|
end
|
159
159
|
|
@@ -162,14 +162,14 @@ module PulpContainerClient
|
|
162
162
|
def list_invalid_properties
|
163
163
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
164
164
|
invalid_properties = Array.new
|
165
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
166
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
167
|
-
end
|
168
|
-
|
169
165
|
if @name.nil?
|
170
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
171
167
|
end
|
172
168
|
|
169
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
170
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
171
|
+
end
|
172
|
+
|
173
173
|
invalid_properties
|
174
174
|
end
|
175
175
|
|
@@ -177,8 +177,8 @@ module PulpContainerClient
|
|
177
177
|
# @return true if the model is valid
|
178
178
|
def valid?
|
179
179
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
180
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
181
180
|
return false if @name.nil?
|
181
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
182
182
|
true
|
183
183
|
end
|
184
184
|
|
@@ -197,17 +197,17 @@ module PulpContainerClient
|
|
197
197
|
def ==(o)
|
198
198
|
return true if self.equal?(o)
|
199
199
|
self.class == o.class &&
|
200
|
-
|
200
|
+
pulp_labels == o.pulp_labels &&
|
201
201
|
prn == o.prn &&
|
202
|
-
pulp_href == o.pulp_href &&
|
203
|
-
retain_repo_versions == o.retain_repo_versions &&
|
204
|
-
pulp_last_updated == o.pulp_last_updated &&
|
205
|
-
name == o.name &&
|
206
202
|
latest_version_href == o.latest_version_href &&
|
207
|
-
|
203
|
+
pulp_href == o.pulp_href &&
|
208
204
|
description == o.description &&
|
209
|
-
|
210
|
-
|
205
|
+
manifest_signing_service == o.manifest_signing_service &&
|
206
|
+
versions_href == o.versions_href &&
|
207
|
+
pulp_created == o.pulp_created &&
|
208
|
+
name == o.name &&
|
209
|
+
retain_repo_versions == o.retain_repo_versions &&
|
210
|
+
pulp_last_updated == o.pulp_last_updated
|
211
211
|
end
|
212
212
|
|
213
213
|
# @see the `==` method
|
@@ -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
|
+
[pulp_labels, prn, latest_version_href, pulp_href, description, manifest_signing_service, versions_href, pulp_created, name, retain_repo_versions, pulp_last_updated].hash
|
223
223
|
end
|
224
224
|
|
225
225
|
# Builds the object from hash
|
@@ -19,12 +19,6 @@ module PulpContainerClient
|
|
19
19
|
# Whether this distribution should be shown in the content app.
|
20
20
|
attr_accessor :hidden
|
21
21
|
|
22
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
23
|
-
attr_accessor :base_path
|
24
|
-
|
25
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
26
|
-
attr_accessor :name
|
27
|
-
|
28
22
|
# An optional content-guard. If none is specified, a default one will be used.
|
29
23
|
attr_accessor :content_guard
|
30
24
|
|
@@ -33,6 +27,12 @@ module PulpContainerClient
|
|
33
27
|
# The latest RepositoryVersion for this Repository will be served.
|
34
28
|
attr_accessor :repository
|
35
29
|
|
30
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
31
|
+
attr_accessor :base_path
|
32
|
+
|
33
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
34
|
+
attr_accessor :name
|
35
|
+
|
36
36
|
# RepositoryVersion to be served
|
37
37
|
attr_accessor :repository_version
|
38
38
|
|
@@ -46,11 +46,11 @@ module PulpContainerClient
|
|
46
46
|
def self.attribute_map
|
47
47
|
{
|
48
48
|
:'hidden' => :'hidden',
|
49
|
-
:'base_path' => :'base_path',
|
50
|
-
:'name' => :'name',
|
51
49
|
:'content_guard' => :'content_guard',
|
52
50
|
:'pulp_labels' => :'pulp_labels',
|
53
51
|
:'repository' => :'repository',
|
52
|
+
:'base_path' => :'base_path',
|
53
|
+
:'name' => :'name',
|
54
54
|
:'repository_version' => :'repository_version',
|
55
55
|
:'private' => :'private',
|
56
56
|
:'description' => :'description'
|
@@ -66,11 +66,11 @@ module PulpContainerClient
|
|
66
66
|
def self.openapi_types
|
67
67
|
{
|
68
68
|
:'hidden' => :'Boolean',
|
69
|
-
:'base_path' => :'String',
|
70
|
-
:'name' => :'String',
|
71
69
|
:'content_guard' => :'String',
|
72
70
|
:'pulp_labels' => :'Hash<String, String>',
|
73
71
|
:'repository' => :'String',
|
72
|
+
:'base_path' => :'String',
|
73
|
+
:'name' => :'String',
|
74
74
|
:'repository_version' => :'String',
|
75
75
|
:'private' => :'Boolean',
|
76
76
|
:'description' => :'String'
|
@@ -107,14 +107,6 @@ module PulpContainerClient
|
|
107
107
|
self.hidden = false
|
108
108
|
end
|
109
109
|
|
110
|
-
if attributes.key?(:'base_path')
|
111
|
-
self.base_path = attributes[:'base_path']
|
112
|
-
end
|
113
|
-
|
114
|
-
if attributes.key?(:'name')
|
115
|
-
self.name = attributes[:'name']
|
116
|
-
end
|
117
|
-
|
118
110
|
if attributes.key?(:'content_guard')
|
119
111
|
self.content_guard = attributes[:'content_guard']
|
120
112
|
end
|
@@ -129,6 +121,14 @@ module PulpContainerClient
|
|
129
121
|
self.repository = attributes[:'repository']
|
130
122
|
end
|
131
123
|
|
124
|
+
if attributes.key?(:'base_path')
|
125
|
+
self.base_path = attributes[:'base_path']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'name')
|
129
|
+
self.name = attributes[:'name']
|
130
|
+
end
|
131
|
+
|
132
132
|
if attributes.key?(:'repository_version')
|
133
133
|
self.repository_version = attributes[:'repository_version']
|
134
134
|
end
|
@@ -216,11 +216,11 @@ module PulpContainerClient
|
|
216
216
|
return true if self.equal?(o)
|
217
217
|
self.class == o.class &&
|
218
218
|
hidden == o.hidden &&
|
219
|
-
base_path == o.base_path &&
|
220
|
-
name == o.name &&
|
221
219
|
content_guard == o.content_guard &&
|
222
220
|
pulp_labels == o.pulp_labels &&
|
223
221
|
repository == o.repository &&
|
222
|
+
base_path == o.base_path &&
|
223
|
+
name == o.name &&
|
224
224
|
repository_version == o.repository_version &&
|
225
225
|
private == o.private &&
|
226
226
|
description == o.description
|
@@ -235,7 +235,7 @@ module PulpContainerClient
|
|
235
235
|
# Calculates hash code according to all attributes.
|
236
236
|
# @return [Integer] Hash code
|
237
237
|
def hash
|
238
|
-
[hidden,
|
238
|
+
[hidden, content_guard, pulp_labels, repository, base_path, name, repository_version, private, description].hash
|
239
239
|
end
|
240
240
|
|
241
241
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
@@ -19,12 +19,6 @@ module PulpContainerClient
|
|
19
19
|
# Whether this distribution should be shown in the content app.
|
20
20
|
attr_accessor :hidden
|
21
21
|
|
22
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
23
|
-
attr_accessor :base_path
|
24
|
-
|
25
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
26
|
-
attr_accessor :name
|
27
|
-
|
28
22
|
# An optional content-guard. If none is specified, a default one will be used.
|
29
23
|
attr_accessor :content_guard
|
30
24
|
|
@@ -33,6 +27,12 @@ module PulpContainerClient
|
|
33
27
|
# The latest RepositoryVersion for this Repository will be served.
|
34
28
|
attr_accessor :repository
|
35
29
|
|
30
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
31
|
+
attr_accessor :base_path
|
32
|
+
|
33
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
34
|
+
attr_accessor :name
|
35
|
+
|
36
36
|
# Remote that can be used to fetch content when using pull-through caching.
|
37
37
|
attr_accessor :remote
|
38
38
|
|
@@ -49,11 +49,11 @@ module PulpContainerClient
|
|
49
49
|
def self.attribute_map
|
50
50
|
{
|
51
51
|
:'hidden' => :'hidden',
|
52
|
-
:'base_path' => :'base_path',
|
53
|
-
:'name' => :'name',
|
54
52
|
:'content_guard' => :'content_guard',
|
55
53
|
:'pulp_labels' => :'pulp_labels',
|
56
54
|
:'repository' => :'repository',
|
55
|
+
:'base_path' => :'base_path',
|
56
|
+
:'name' => :'name',
|
57
57
|
:'remote' => :'remote',
|
58
58
|
:'distributions' => :'distributions',
|
59
59
|
:'private' => :'private',
|
@@ -70,11 +70,11 @@ module PulpContainerClient
|
|
70
70
|
def self.openapi_types
|
71
71
|
{
|
72
72
|
:'hidden' => :'Boolean',
|
73
|
-
:'base_path' => :'String',
|
74
|
-
:'name' => :'String',
|
75
73
|
:'content_guard' => :'String',
|
76
74
|
:'pulp_labels' => :'Hash<String, String>',
|
77
75
|
:'repository' => :'String',
|
76
|
+
:'base_path' => :'String',
|
77
|
+
:'name' => :'String',
|
78
78
|
:'remote' => :'String',
|
79
79
|
:'distributions' => :'Array<String>',
|
80
80
|
:'private' => :'Boolean',
|
@@ -111,14 +111,6 @@ module PulpContainerClient
|
|
111
111
|
self.hidden = false
|
112
112
|
end
|
113
113
|
|
114
|
-
if attributes.key?(:'base_path')
|
115
|
-
self.base_path = attributes[:'base_path']
|
116
|
-
end
|
117
|
-
|
118
|
-
if attributes.key?(:'name')
|
119
|
-
self.name = attributes[:'name']
|
120
|
-
end
|
121
|
-
|
122
114
|
if attributes.key?(:'content_guard')
|
123
115
|
self.content_guard = attributes[:'content_guard']
|
124
116
|
end
|
@@ -133,6 +125,14 @@ module PulpContainerClient
|
|
133
125
|
self.repository = attributes[:'repository']
|
134
126
|
end
|
135
127
|
|
128
|
+
if attributes.key?(:'base_path')
|
129
|
+
self.base_path = attributes[:'base_path']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.key?(:'name')
|
133
|
+
self.name = attributes[:'name']
|
134
|
+
end
|
135
|
+
|
136
136
|
if attributes.key?(:'remote')
|
137
137
|
self.remote = attributes[:'remote']
|
138
138
|
end
|
@@ -226,11 +226,11 @@ module PulpContainerClient
|
|
226
226
|
return true if self.equal?(o)
|
227
227
|
self.class == o.class &&
|
228
228
|
hidden == o.hidden &&
|
229
|
-
base_path == o.base_path &&
|
230
|
-
name == o.name &&
|
231
229
|
content_guard == o.content_guard &&
|
232
230
|
pulp_labels == o.pulp_labels &&
|
233
231
|
repository == o.repository &&
|
232
|
+
base_path == o.base_path &&
|
233
|
+
name == o.name &&
|
234
234
|
remote == o.remote &&
|
235
235
|
distributions == o.distributions &&
|
236
236
|
private == o.private &&
|
@@ -246,7 +246,7 @@ module PulpContainerClient
|
|
246
246
|
# Calculates hash code according to all attributes.
|
247
247
|
# @return [Integer] Hash code
|
248
248
|
def hash
|
249
|
-
[hidden,
|
249
|
+
[hidden, content_guard, pulp_labels, repository, base_path, name, remote, distributions, private, description].hash
|
250
250
|
end
|
251
251
|
|
252
252
|
# Builds the object from hash
|