pulp_container_client 2.1.3 → 2.2.0.post0
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/Gemfile +1 -1
- data/README.md +20 -13
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +9 -7
- data/docs/ContainerContainerNamespace.md +17 -0
- data/docs/ContainerContainerNamespaceResponse.md +21 -0
- data/docs/ContainerContainerRemote.md +8 -0
- data/docs/ContainerContainerRemoteResponse.md +8 -0
- data/docs/ContentBlobsApi.md +2 -2
- data/docs/ContentManifestsApi.md +2 -2
- data/docs/ContentTagsApi.md +2 -2
- data/docs/ContentguardsContentRedirectApi.md +2 -2
- data/docs/DistributionsContainerApi.md +4 -2
- data/docs/ManifestCopy.md +1 -1
- data/docs/{InlineResponse2008.md → PaginatedRepositoryVersionResponseList.md} +4 -4
- data/docs/{InlineResponse200.md → PaginatedcontainerBlobResponseList.md} +4 -4
- data/docs/{InlineResponse2004.md → PaginatedcontainerContainerDistributionResponseList.md} +4 -4
- data/docs/PaginatedcontainerContainerNamespaceResponseList.md +23 -0
- data/docs/{InlineResponse2007.md → PaginatedcontainerContainerPushRepositoryResponseList.md} +4 -4
- data/docs/{InlineResponse2005.md → PaginatedcontainerContainerRemoteResponseList.md} +4 -4
- data/docs/{InlineResponse2006.md → PaginatedcontainerContainerRepositoryResponseList.md} +4 -4
- data/docs/{InlineResponse2003.md → PaginatedcontainerContentRedirectContentGuardResponseList.md} +4 -4
- data/docs/{InlineResponse2001.md → PaginatedcontainerManifestResponseList.md} +4 -4
- data/docs/{InlineResponse2002.md → PaginatedcontainerTagResponseList.md} +4 -4
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerRemote.md +8 -0
- data/docs/PulpContainerNamespacesApi.md +239 -0
- data/docs/RecursiveManage.md +1 -1
- data/docs/RemotesContainerApi.md +2 -2
- data/docs/RepositoriesContainerApi.md +2 -2
- data/docs/RepositoriesContainerPushApi.md +2 -2
- data/docs/RepositoriesContainerVersionsApi.md +8 -8
- data/docs/TagCopy.md +1 -1
- data/lib/pulp_container_client/api/content_blobs_api.rb +4 -4
- data/lib/pulp_container_client/api/content_manifests_api.rb +4 -4
- data/lib/pulp_container_client/api/content_tags_api.rb +4 -4
- data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +4 -4
- data/lib/pulp_container_client/api/distributions_container_api.rb +7 -4
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +285 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +4 -4
- data/lib/pulp_container_client/api/repositories_container_api.rb +4 -4
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +4 -4
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +15 -15
- data/lib/pulp_container_client/api/token_api.rb +1 -1
- data/lib/pulp_container_client/api_client.rb +12 -13
- data/lib/pulp_container_client/api_error.rb +1 -1
- data/lib/pulp_container_client/configuration.rb +1 -9
- data/lib/pulp_container_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_container_client/models/container_blob_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +31 -31
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +42 -32
- data/lib/pulp_container_client/models/container_container_namespace.rb +231 -0
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +250 -0
- data/lib/pulp_container_client/models/container_container_push_repository.rb +1 -1
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_remote.rb +106 -2
- data/lib/pulp_container_client/models/container_container_remote_response.rb +106 -2
- data/lib/pulp_container_client/models/container_container_repository.rb +1 -1
- data/lib/pulp_container_client/models/container_container_repository_response.rb +1 -1
- data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +1 -1
- data/lib/pulp_container_client/models/container_content_redirect_content_guard_response.rb +1 -1
- data/lib/pulp_container_client/models/container_manifest_response.rb +1 -1
- data/lib/pulp_container_client/models/container_tag_response.rb +1 -1
- data/lib/pulp_container_client/models/content_summary.rb +1 -1
- data/lib/pulp_container_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_container_client/models/manifest_copy.rb +2 -2
- data/lib/pulp_container_client/models/oci_build_image.rb +1 -1
- data/lib/pulp_container_client/models/{inline_response2008.rb → paginated_repository_version_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/{inline_response200.rb → paginatedcontainer_blob_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/{inline_response2004.rb → paginatedcontainer_container_distribution_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +237 -0
- data/lib/pulp_container_client/models/{inline_response2007.rb → paginatedcontainer_container_push_repository_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/{inline_response2005.rb → paginatedcontainer_container_remote_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/{inline_response2006.rb → paginatedcontainer_container_repository_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/{inline_response2003.rb → paginatedcontainer_content_redirect_content_guard_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/{inline_response2001.rb → paginatedcontainer_manifest_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/{inline_response2002.rb → paginatedcontainer_tag_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +31 -31
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +106 -2
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +1 -1
- data/lib/pulp_container_client/models/policy_enum.rb +1 -1
- data/lib/pulp_container_client/models/recursive_manage.rb +2 -2
- data/lib/pulp_container_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_container_client/models/repository_version.rb +1 -1
- data/lib/pulp_container_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_container_client/models/tag_copy.rb +2 -2
- data/lib/pulp_container_client/models/tag_image.rb +22 -1
- data/lib/pulp_container_client/models/un_tag_image.rb +22 -1
- data/lib/pulp_container_client/version.rb +2 -2
- data/lib/pulp_container_client.rb +14 -10
- data/pulp_container_client.gemspec +2 -2
- data/spec/api/content_blobs_api_spec.rb +2 -2
- data/spec/api/content_manifests_api_spec.rb +2 -2
- data/spec/api/content_tags_api_spec.rb +2 -2
- data/spec/api/contentguards_content_redirect_api_spec.rb +2 -2
- data/spec/api/distributions_container_api_spec.rb +3 -2
- data/spec/api/pulp_container_namespaces_api_spec.rb +89 -0
- data/spec/api/remotes_container_api_spec.rb +2 -2
- data/spec/api/repositories_container_api_spec.rb +2 -2
- data/spec/api/repositories_container_push_api_spec.rb +2 -2
- data/spec/api/repositories_container_versions_api_spec.rb +7 -7
- data/spec/api/token_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/container_blob_response_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +13 -7
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/{inline_response200_spec.rb → container_container_namespace_response_spec.rb} +10 -16
- data/spec/models/container_container_namespace_spec.rb +41 -0
- data/spec/models/container_container_push_repository_response_spec.rb +1 -1
- data/spec/models/container_container_push_repository_spec.rb +1 -1
- data/spec/models/container_container_remote_response_spec.rb +25 -1
- data/spec/models/container_container_remote_spec.rb +25 -1
- data/spec/models/container_container_repository_response_spec.rb +1 -1
- data/spec/models/container_container_repository_spec.rb +1 -1
- data/spec/models/container_content_redirect_content_guard_response_spec.rb +1 -1
- data/spec/models/container_content_redirect_content_guard_spec.rb +1 -1
- data/spec/models/container_manifest_response_spec.rb +1 -1
- data/spec/models/container_tag_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/manifest_copy_spec.rb +1 -1
- data/spec/models/oci_build_image_spec.rb +1 -1
- data/spec/models/{inline_response2003_spec.rb → paginated_repository_version_response_list_spec.rb} +7 -7
- data/spec/models/{inline_response2002_spec.rb → paginatedcontainer_blob_response_list_spec.rb} +7 -7
- data/spec/models/paginatedcontainer_container_distribution_response_list_spec.rb +59 -0
- data/spec/models/paginatedcontainer_container_namespace_response_list_spec.rb +59 -0
- data/spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb +59 -0
- data/spec/models/paginatedcontainer_container_remote_response_list_spec.rb +59 -0
- data/spec/models/paginatedcontainer_container_repository_response_list_spec.rb +59 -0
- data/spec/models/paginatedcontainer_content_redirect_content_guard_response_list_spec.rb +59 -0
- data/spec/models/{inline_response2004_spec.rb → paginatedcontainer_manifest_response_list_spec.rb} +7 -7
- data/spec/models/{inline_response2001_spec.rb → paginatedcontainer_tag_response_list_spec.rb} +7 -7
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_remote_spec.rb +25 -1
- data/spec/models/patchedcontainer_container_repository_spec.rb +1 -1
- data/spec/models/patchedcontainer_content_redirect_content_guard_spec.rb +1 -1
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/recursive_manage_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/tag_copy_spec.rb +1 -1
- data/spec/models/tag_image_spec.rb +1 -1
- data/spec/models/un_tag_image_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +87 -77
- data/spec/models/inline_response2005_spec.rb +0 -59
- data/spec/models/inline_response2006_spec.rb +0 -59
- data/spec/models/inline_response2007_spec.rb +0 -59
- data/spec/models/inline_response2008_spec.rb +0 -59
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module PulpContainerClient
|
|
16
|
+
# Serializer for ContainerNamespaces.
|
|
17
|
+
class ContainerContainerNamespaceResponse
|
|
18
|
+
attr_accessor :pulp_href
|
|
19
|
+
|
|
20
|
+
# Timestamp of creation.
|
|
21
|
+
attr_accessor :pulp_created
|
|
22
|
+
|
|
23
|
+
attr_accessor :name
|
|
24
|
+
|
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
|
+
def self.attribute_map
|
|
27
|
+
{
|
|
28
|
+
:'pulp_href' => :'pulp_href',
|
|
29
|
+
:'pulp_created' => :'pulp_created',
|
|
30
|
+
:'name' => :'name'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Attribute type mapping.
|
|
35
|
+
def self.openapi_types
|
|
36
|
+
{
|
|
37
|
+
:'pulp_href' => :'String',
|
|
38
|
+
:'pulp_created' => :'DateTime',
|
|
39
|
+
:'name' => :'String'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# List of attributes with nullable: true
|
|
44
|
+
def self.openapi_nullable
|
|
45
|
+
Set.new([
|
|
46
|
+
])
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Initializes the object
|
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
51
|
+
def initialize(attributes = {})
|
|
52
|
+
if (!attributes.is_a?(Hash))
|
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::ContainerContainerNamespaceResponse` initialize method"
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::ContainerContainerNamespaceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
60
|
+
end
|
|
61
|
+
h[k.to_sym] = v
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if attributes.key?(:'pulp_href')
|
|
65
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'pulp_created')
|
|
69
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'name')
|
|
73
|
+
self.name = attributes[:'name']
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
78
|
+
# @return Array for valid properties with the reasons
|
|
79
|
+
def list_invalid_properties
|
|
80
|
+
invalid_properties = Array.new
|
|
81
|
+
if @name.nil?
|
|
82
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if @name.to_s.length > 255
|
|
86
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
invalid_properties
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Check to see if the all the properties in the model are valid
|
|
93
|
+
# @return true if the model is valid
|
|
94
|
+
def valid?
|
|
95
|
+
return false if @name.nil?
|
|
96
|
+
return false if @name.to_s.length > 255
|
|
97
|
+
true
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Custom attribute writer method with validation
|
|
101
|
+
# @param [Object] name Value to be assigned
|
|
102
|
+
def name=(name)
|
|
103
|
+
if name.nil?
|
|
104
|
+
fail ArgumentError, 'name cannot be nil'
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if name.to_s.length > 255
|
|
108
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 255.'
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
@name = name
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Checks equality by comparing each attribute.
|
|
115
|
+
# @param [Object] Object to be compared
|
|
116
|
+
def ==(o)
|
|
117
|
+
return true if self.equal?(o)
|
|
118
|
+
self.class == o.class &&
|
|
119
|
+
pulp_href == o.pulp_href &&
|
|
120
|
+
pulp_created == o.pulp_created &&
|
|
121
|
+
name == o.name
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# @see the `==` method
|
|
125
|
+
# @param [Object] Object to be compared
|
|
126
|
+
def eql?(o)
|
|
127
|
+
self == o
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Calculates hash code according to all attributes.
|
|
131
|
+
# @return [Integer] Hash code
|
|
132
|
+
def hash
|
|
133
|
+
[pulp_href, pulp_created, name].hash
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Builds the object from hash
|
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
138
|
+
# @return [Object] Returns the model itself
|
|
139
|
+
def self.build_from_hash(attributes)
|
|
140
|
+
new.build_from_hash(attributes)
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Builds the object from hash
|
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
145
|
+
# @return [Object] Returns the model itself
|
|
146
|
+
def build_from_hash(attributes)
|
|
147
|
+
return nil unless attributes.is_a?(Hash)
|
|
148
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
149
|
+
if type =~ /\AArray<(.*)>/i
|
|
150
|
+
# check to ensure the input is an array given that the attribute
|
|
151
|
+
# is documented as an array but the input is not
|
|
152
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
153
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
154
|
+
end
|
|
155
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
156
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
157
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
self
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Deserializes the data based on type
|
|
164
|
+
# @param string type Data type
|
|
165
|
+
# @param string value Value to be deserialized
|
|
166
|
+
# @return [Object] Deserialized data
|
|
167
|
+
def _deserialize(type, value)
|
|
168
|
+
case type.to_sym
|
|
169
|
+
when :DateTime
|
|
170
|
+
DateTime.parse(value)
|
|
171
|
+
when :Date
|
|
172
|
+
Date.parse(value)
|
|
173
|
+
when :String
|
|
174
|
+
value.to_s
|
|
175
|
+
when :Integer
|
|
176
|
+
value.to_i
|
|
177
|
+
when :Float
|
|
178
|
+
value.to_f
|
|
179
|
+
when :Boolean
|
|
180
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
181
|
+
true
|
|
182
|
+
else
|
|
183
|
+
false
|
|
184
|
+
end
|
|
185
|
+
when :Object
|
|
186
|
+
# generic object (usually a Hash), return directly
|
|
187
|
+
value
|
|
188
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
189
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
190
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
191
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
192
|
+
k_type = Regexp.last_match[:k_type]
|
|
193
|
+
v_type = Regexp.last_match[:v_type]
|
|
194
|
+
{}.tap do |hash|
|
|
195
|
+
value.each do |k, v|
|
|
196
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
else # model
|
|
200
|
+
PulpContainerClient.const_get(type).build_from_hash(value)
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Returns the string representation of the object
|
|
205
|
+
# @return [String] String presentation of the object
|
|
206
|
+
def to_s
|
|
207
|
+
to_hash.to_s
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
|
212
|
+
def to_body
|
|
213
|
+
to_hash
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Returns the object in the form of hash
|
|
217
|
+
# @return [Hash] Returns the object in the form of hash
|
|
218
|
+
def to_hash
|
|
219
|
+
hash = {}
|
|
220
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
221
|
+
value = self.send(attr)
|
|
222
|
+
if value.nil?
|
|
223
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
224
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
hash[param] = _to_hash(value)
|
|
228
|
+
end
|
|
229
|
+
hash
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Outputs non-array value in the form of hash
|
|
233
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
234
|
+
# @param [Object] value Any valid value
|
|
235
|
+
# @return [Hash] Returns the value in the form of hash
|
|
236
|
+
def _to_hash(value)
|
|
237
|
+
if value.is_a?(Array)
|
|
238
|
+
value.compact.map { |v| _to_hash(v) }
|
|
239
|
+
elsif value.is_a?(Hash)
|
|
240
|
+
{}.tap do |hash|
|
|
241
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
242
|
+
end
|
|
243
|
+
elsif value.respond_to? :to_hash
|
|
244
|
+
value.to_hash
|
|
245
|
+
else
|
|
246
|
+
value
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
end
|
|
250
|
+
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.3
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -48,6 +48,18 @@ module PulpContainerClient
|
|
|
48
48
|
# immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
|
|
49
49
|
attr_accessor :policy
|
|
50
50
|
|
|
51
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
|
52
|
+
attr_accessor :total_timeout
|
|
53
|
+
|
|
54
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
|
55
|
+
attr_accessor :connect_timeout
|
|
56
|
+
|
|
57
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
|
58
|
+
attr_accessor :sock_connect_timeout
|
|
59
|
+
|
|
60
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
|
61
|
+
attr_accessor :sock_read_timeout
|
|
62
|
+
|
|
51
63
|
# Name of the upstream repository
|
|
52
64
|
attr_accessor :upstream_name
|
|
53
65
|
|
|
@@ -71,6 +83,10 @@ module PulpContainerClient
|
|
|
71
83
|
:'password' => :'password',
|
|
72
84
|
:'download_concurrency' => :'download_concurrency',
|
|
73
85
|
:'policy' => :'policy',
|
|
86
|
+
:'total_timeout' => :'total_timeout',
|
|
87
|
+
:'connect_timeout' => :'connect_timeout',
|
|
88
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
89
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
74
90
|
:'upstream_name' => :'upstream_name',
|
|
75
91
|
:'include_tags' => :'include_tags',
|
|
76
92
|
:'exclude_tags' => :'exclude_tags'
|
|
@@ -91,6 +107,10 @@ module PulpContainerClient
|
|
|
91
107
|
:'password' => :'String',
|
|
92
108
|
:'download_concurrency' => :'Integer',
|
|
93
109
|
:'policy' => :'PolicyEnum',
|
|
110
|
+
:'total_timeout' => :'Float',
|
|
111
|
+
:'connect_timeout' => :'Float',
|
|
112
|
+
:'sock_connect_timeout' => :'Float',
|
|
113
|
+
:'sock_read_timeout' => :'Float',
|
|
94
114
|
:'upstream_name' => :'String',
|
|
95
115
|
:'include_tags' => :'Array<String>',
|
|
96
116
|
:'exclude_tags' => :'Array<String>'
|
|
@@ -106,6 +126,10 @@ module PulpContainerClient
|
|
|
106
126
|
:'proxy_url',
|
|
107
127
|
:'username',
|
|
108
128
|
:'password',
|
|
129
|
+
:'total_timeout',
|
|
130
|
+
:'connect_timeout',
|
|
131
|
+
:'sock_connect_timeout',
|
|
132
|
+
:'sock_read_timeout',
|
|
109
133
|
:'include_tags',
|
|
110
134
|
:'exclude_tags'
|
|
111
135
|
])
|
|
@@ -170,6 +194,22 @@ module PulpContainerClient
|
|
|
170
194
|
self.policy = attributes[:'policy']
|
|
171
195
|
end
|
|
172
196
|
|
|
197
|
+
if attributes.key?(:'total_timeout')
|
|
198
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
if attributes.key?(:'connect_timeout')
|
|
202
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
if attributes.key?(:'sock_connect_timeout')
|
|
206
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if attributes.key?(:'sock_read_timeout')
|
|
210
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
211
|
+
end
|
|
212
|
+
|
|
173
213
|
if attributes.key?(:'upstream_name')
|
|
174
214
|
self.upstream_name = attributes[:'upstream_name']
|
|
175
215
|
end
|
|
@@ -203,6 +243,22 @@ module PulpContainerClient
|
|
|
203
243
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
204
244
|
end
|
|
205
245
|
|
|
246
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
247
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
251
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
255
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
259
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
260
|
+
end
|
|
261
|
+
|
|
206
262
|
if @upstream_name.nil?
|
|
207
263
|
invalid_properties.push('invalid value for "upstream_name", upstream_name cannot be nil.')
|
|
208
264
|
end
|
|
@@ -216,6 +272,10 @@ module PulpContainerClient
|
|
|
216
272
|
return false if @name.nil?
|
|
217
273
|
return false if @url.nil?
|
|
218
274
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
275
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
276
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
277
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
278
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
219
279
|
return false if @upstream_name.nil?
|
|
220
280
|
true
|
|
221
281
|
end
|
|
@@ -230,6 +290,46 @@ module PulpContainerClient
|
|
|
230
290
|
@download_concurrency = download_concurrency
|
|
231
291
|
end
|
|
232
292
|
|
|
293
|
+
# Custom attribute writer method with validation
|
|
294
|
+
# @param [Object] total_timeout Value to be assigned
|
|
295
|
+
def total_timeout=(total_timeout)
|
|
296
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
|
297
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
@total_timeout = total_timeout
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
# Custom attribute writer method with validation
|
|
304
|
+
# @param [Object] connect_timeout Value to be assigned
|
|
305
|
+
def connect_timeout=(connect_timeout)
|
|
306
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
307
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
@connect_timeout = connect_timeout
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
# Custom attribute writer method with validation
|
|
314
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
|
315
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
|
316
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
|
317
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
@sock_connect_timeout = sock_connect_timeout
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# Custom attribute writer method with validation
|
|
324
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
|
325
|
+
def sock_read_timeout=(sock_read_timeout)
|
|
326
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
327
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
@sock_read_timeout = sock_read_timeout
|
|
331
|
+
end
|
|
332
|
+
|
|
233
333
|
# Checks equality by comparing each attribute.
|
|
234
334
|
# @param [Object] Object to be compared
|
|
235
335
|
def ==(o)
|
|
@@ -246,6 +346,10 @@ module PulpContainerClient
|
|
|
246
346
|
password == o.password &&
|
|
247
347
|
download_concurrency == o.download_concurrency &&
|
|
248
348
|
policy == o.policy &&
|
|
349
|
+
total_timeout == o.total_timeout &&
|
|
350
|
+
connect_timeout == o.connect_timeout &&
|
|
351
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
|
352
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
249
353
|
upstream_name == o.upstream_name &&
|
|
250
354
|
include_tags == o.include_tags &&
|
|
251
355
|
exclude_tags == o.exclude_tags
|
|
@@ -260,7 +364,7 @@ module PulpContainerClient
|
|
|
260
364
|
# Calculates hash code according to all attributes.
|
|
261
365
|
# @return [Integer] Hash code
|
|
262
366
|
def hash
|
|
263
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, upstream_name, include_tags, exclude_tags].hash
|
|
367
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, upstream_name, include_tags, exclude_tags].hash
|
|
264
368
|
end
|
|
265
369
|
|
|
266
370
|
# Builds the object from hash
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.3
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -56,6 +56,18 @@ module PulpContainerClient
|
|
|
56
56
|
# immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
|
|
57
57
|
attr_accessor :policy
|
|
58
58
|
|
|
59
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
|
60
|
+
attr_accessor :total_timeout
|
|
61
|
+
|
|
62
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
|
63
|
+
attr_accessor :connect_timeout
|
|
64
|
+
|
|
65
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
|
66
|
+
attr_accessor :sock_connect_timeout
|
|
67
|
+
|
|
68
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
|
69
|
+
attr_accessor :sock_read_timeout
|
|
70
|
+
|
|
59
71
|
# Name of the upstream repository
|
|
60
72
|
attr_accessor :upstream_name
|
|
61
73
|
|
|
@@ -82,6 +94,10 @@ module PulpContainerClient
|
|
|
82
94
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
83
95
|
:'download_concurrency' => :'download_concurrency',
|
|
84
96
|
:'policy' => :'policy',
|
|
97
|
+
:'total_timeout' => :'total_timeout',
|
|
98
|
+
:'connect_timeout' => :'connect_timeout',
|
|
99
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
100
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
85
101
|
:'upstream_name' => :'upstream_name',
|
|
86
102
|
:'include_tags' => :'include_tags',
|
|
87
103
|
:'exclude_tags' => :'exclude_tags'
|
|
@@ -105,6 +121,10 @@ module PulpContainerClient
|
|
|
105
121
|
:'pulp_last_updated' => :'DateTime',
|
|
106
122
|
:'download_concurrency' => :'Integer',
|
|
107
123
|
:'policy' => :'PolicyEnum',
|
|
124
|
+
:'total_timeout' => :'Float',
|
|
125
|
+
:'connect_timeout' => :'Float',
|
|
126
|
+
:'sock_connect_timeout' => :'Float',
|
|
127
|
+
:'sock_read_timeout' => :'Float',
|
|
108
128
|
:'upstream_name' => :'String',
|
|
109
129
|
:'include_tags' => :'Array<String>',
|
|
110
130
|
:'exclude_tags' => :'Array<String>'
|
|
@@ -120,6 +140,10 @@ module PulpContainerClient
|
|
|
120
140
|
:'proxy_url',
|
|
121
141
|
:'username',
|
|
122
142
|
:'password',
|
|
143
|
+
:'total_timeout',
|
|
144
|
+
:'connect_timeout',
|
|
145
|
+
:'sock_connect_timeout',
|
|
146
|
+
:'sock_read_timeout',
|
|
123
147
|
:'include_tags',
|
|
124
148
|
:'exclude_tags'
|
|
125
149
|
])
|
|
@@ -196,6 +220,22 @@ module PulpContainerClient
|
|
|
196
220
|
self.policy = attributes[:'policy']
|
|
197
221
|
end
|
|
198
222
|
|
|
223
|
+
if attributes.key?(:'total_timeout')
|
|
224
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if attributes.key?(:'connect_timeout')
|
|
228
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
if attributes.key?(:'sock_connect_timeout')
|
|
232
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
if attributes.key?(:'sock_read_timeout')
|
|
236
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
237
|
+
end
|
|
238
|
+
|
|
199
239
|
if attributes.key?(:'upstream_name')
|
|
200
240
|
self.upstream_name = attributes[:'upstream_name']
|
|
201
241
|
end
|
|
@@ -229,6 +269,22 @@ module PulpContainerClient
|
|
|
229
269
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
230
270
|
end
|
|
231
271
|
|
|
272
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
273
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
277
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
281
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
285
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
286
|
+
end
|
|
287
|
+
|
|
232
288
|
if @upstream_name.nil?
|
|
233
289
|
invalid_properties.push('invalid value for "upstream_name", upstream_name cannot be nil.')
|
|
234
290
|
end
|
|
@@ -242,6 +298,10 @@ module PulpContainerClient
|
|
|
242
298
|
return false if @name.nil?
|
|
243
299
|
return false if @url.nil?
|
|
244
300
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
301
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
302
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
303
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
304
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
245
305
|
return false if @upstream_name.nil?
|
|
246
306
|
true
|
|
247
307
|
end
|
|
@@ -256,6 +316,46 @@ module PulpContainerClient
|
|
|
256
316
|
@download_concurrency = download_concurrency
|
|
257
317
|
end
|
|
258
318
|
|
|
319
|
+
# Custom attribute writer method with validation
|
|
320
|
+
# @param [Object] total_timeout Value to be assigned
|
|
321
|
+
def total_timeout=(total_timeout)
|
|
322
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
|
323
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
@total_timeout = total_timeout
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
# Custom attribute writer method with validation
|
|
330
|
+
# @param [Object] connect_timeout Value to be assigned
|
|
331
|
+
def connect_timeout=(connect_timeout)
|
|
332
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
333
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
@connect_timeout = connect_timeout
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# Custom attribute writer method with validation
|
|
340
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
|
341
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
|
342
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
|
343
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
@sock_connect_timeout = sock_connect_timeout
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# Custom attribute writer method with validation
|
|
350
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
|
351
|
+
def sock_read_timeout=(sock_read_timeout)
|
|
352
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
353
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
@sock_read_timeout = sock_read_timeout
|
|
357
|
+
end
|
|
358
|
+
|
|
259
359
|
# Checks equality by comparing each attribute.
|
|
260
360
|
# @param [Object] Object to be compared
|
|
261
361
|
def ==(o)
|
|
@@ -275,6 +375,10 @@ module PulpContainerClient
|
|
|
275
375
|
pulp_last_updated == o.pulp_last_updated &&
|
|
276
376
|
download_concurrency == o.download_concurrency &&
|
|
277
377
|
policy == o.policy &&
|
|
378
|
+
total_timeout == o.total_timeout &&
|
|
379
|
+
connect_timeout == o.connect_timeout &&
|
|
380
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
|
381
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
278
382
|
upstream_name == o.upstream_name &&
|
|
279
383
|
include_tags == o.include_tags &&
|
|
280
384
|
exclude_tags == o.exclude_tags
|
|
@@ -289,7 +393,7 @@ module PulpContainerClient
|
|
|
289
393
|
# Calculates hash code according to all attributes.
|
|
290
394
|
# @return [Integer] Hash code
|
|
291
395
|
def hash
|
|
292
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, upstream_name, include_tags, exclude_tags].hash
|
|
396
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, upstream_name, include_tags, exclude_tags].hash
|
|
293
397
|
end
|
|
294
398
|
|
|
295
399
|
# Builds the object from hash
|