pulp_ansible_client 0.8.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -15
- data/docs/AnsibleCollectionRemote.md +7 -5
- data/docs/AnsibleCollectionRemoteResponse.md +7 -5
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleRoleRemote.md +7 -5
- data/docs/AnsibleRoleRemoteResponse.md +7 -5
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/PatchedansibleCollectionRemote.md +7 -5
- data/docs/PatchedansibleRoleRemote.md +7 -5
- data/docs/{PulpAnsibleGalaxyApiV2VersionsApi.md → PulpAnsibleApiV2CollectionsVersionsApi.md} +4 -4
- data/docs/{PulpAnsibleGalaxyV3Api.md → PulpAnsibleApiV3Api.md} +4 -4
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +61 -0
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +67 -0
- data/docs/{PulpAnsibleGalaxyApiCollectionsApi.md → PulpAnsibleApiV3CollectionsApi.md} +12 -12
- data/docs/{PulpAnsibleGalaxyApiV3VersionsApi.md → PulpAnsibleApiV3CollectionsVersionsApi.md} +7 -7
- data/docs/{PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi.md → PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md} +4 -4
- data/docs/{PulpAnsibleGalaxyApiV3CollectionsApi.md → PulpAnsibleArtifactsCollectionsV3Api.md} +4 -4
- data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v2_versions_api.rb → pulp_ansible_api_v2_collections_versions_api.rb} +7 -7
- data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_v3_api.rb → pulp_ansible_api_v3_api.rb} +4 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +88 -0
- data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v3_all_api.rb → pulp_ansible_api_v3_collections_all_api.rb} +9 -75
- data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_collections_api.rb → pulp_ansible_api_v3_collections_api.rb} +17 -17
- data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v3_versions_api.rb → pulp_ansible_api_v3_collections_versions_api.rb} +12 -12
- data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v3_collections_docs_blob_api.rb → pulp_ansible_api_v3_collections_versions_docs_blob_api.rb} +7 -7
- data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v3_collections_api.rb → pulp_ansible_artifacts_collections_v3_api.rb} +5 -5
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +18 -6
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +18 -6
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +18 -6
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +18 -6
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +18 -6
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +18 -6
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +8 -7
- data/spec/api/{pulp_ansible_galaxy_api_v2_versions_api_spec.rb → pulp_ansible_api_v2_collections_versions_api_spec.rb} +6 -6
- data/spec/api/{pulp_ansible_galaxy_v3_api_spec.rb → pulp_ansible_api_v3_api_spec.rb} +6 -6
- data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +48 -0
- data/spec/api/{pulp_ansible_galaxy_api_v3_all_api_spec.rb → pulp_ansible_api_v3_collections_all_api_spec.rb} +8 -21
- data/spec/api/{pulp_ansible_galaxy_api_collections_api_spec.rb → pulp_ansible_api_v3_collections_api_spec.rb} +7 -7
- data/spec/api/{pulp_ansible_galaxy_api_v3_versions_api_spec.rb → pulp_ansible_api_v3_collections_versions_api_spec.rb} +6 -6
- data/spec/api/{pulp_ansible_galaxy_api_v3_collections_docs_blob_api_spec.rb → pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb} +6 -6
- data/spec/api/{pulp_ansible_galaxy_api_v3_collections_api_spec.rb → pulp_ansible_artifacts_collections_v3_api_spec.rb} +6 -6
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +3 -3
- data/spec/models/ansible_role_remote_response_spec.rb +6 -0
- data/spec/models/ansible_role_remote_spec.rb +6 -0
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/patchedansible_collection_remote_spec.rb +6 -0
- data/spec/models/patchedansible_role_remote_spec.rb +6 -0
- metadata +33 -29
- data/docs/PulpAnsibleGalaxyApiV3AllApi.md +0 -120
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
class
|
16
|
+
class PulpAnsibleArtifactsCollectionsV3Api
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -46,15 +46,15 @@ module PulpAnsibleClient
|
|
46
46
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
47
47
|
def create_with_http_info(path, file, opts = {})
|
48
48
|
if @api_client.config.debugging
|
49
|
-
@api_client.config.logger.debug 'Calling API:
|
49
|
+
@api_client.config.logger.debug 'Calling API: PulpAnsibleArtifactsCollectionsV3Api.create ...'
|
50
50
|
end
|
51
51
|
# verify the required parameter 'path' is set
|
52
52
|
if @api_client.config.client_side_validation && path.nil?
|
53
|
-
fail ArgumentError, "Missing the required parameter 'path' when calling
|
53
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleArtifactsCollectionsV3Api.create"
|
54
54
|
end
|
55
55
|
# verify the required parameter 'file' is set
|
56
56
|
if @api_client.config.client_side_validation && file.nil?
|
57
|
-
fail ArgumentError, "Missing the required parameter 'file' when calling
|
57
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling PulpAnsibleArtifactsCollectionsV3Api.create"
|
58
58
|
end
|
59
59
|
# resource path
|
60
60
|
local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/artifacts/collections/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
|
@@ -97,7 +97,7 @@ module PulpAnsibleClient
|
|
97
97
|
|
98
98
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
99
99
|
if @api_client.config.debugging
|
100
|
-
@api_client.config.logger.debug "API called:
|
100
|
+
@api_client.config.logger.debug "API called: PulpAnsibleArtifactsCollectionsV3Api#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
101
101
|
end
|
102
102
|
return data, status_code, headers
|
103
103
|
end
|
@@ -50,22 +50,25 @@ module PulpAnsibleClient
|
|
50
50
|
|
51
51
|
attr_accessor :pulp_labels
|
52
52
|
|
53
|
-
# Total number of simultaneous connections.
|
53
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
54
54
|
attr_accessor :download_concurrency
|
55
55
|
|
56
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
|
+
attr_accessor :max_retries
|
58
|
+
|
56
59
|
# The policy to use when downloading content.
|
57
60
|
attr_accessor :policy
|
58
61
|
|
59
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
62
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
60
63
|
attr_accessor :total_timeout
|
61
64
|
|
62
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
65
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
63
66
|
attr_accessor :connect_timeout
|
64
67
|
|
65
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
68
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
66
69
|
attr_accessor :sock_connect_timeout
|
67
70
|
|
68
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
71
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
69
72
|
attr_accessor :sock_read_timeout
|
70
73
|
|
71
74
|
# Headers for aiohttp.Clientsession
|
@@ -102,6 +105,7 @@ module PulpAnsibleClient
|
|
102
105
|
:'password' => :'password',
|
103
106
|
:'pulp_labels' => :'pulp_labels',
|
104
107
|
:'download_concurrency' => :'download_concurrency',
|
108
|
+
:'max_retries' => :'max_retries',
|
105
109
|
:'policy' => :'policy',
|
106
110
|
:'total_timeout' => :'total_timeout',
|
107
111
|
:'connect_timeout' => :'connect_timeout',
|
@@ -132,6 +136,7 @@ module PulpAnsibleClient
|
|
132
136
|
:'password' => :'String',
|
133
137
|
:'pulp_labels' => :'Object',
|
134
138
|
:'download_concurrency' => :'Integer',
|
139
|
+
:'max_retries' => :'Integer',
|
135
140
|
:'policy' => :'PolicyEnum',
|
136
141
|
:'total_timeout' => :'Float',
|
137
142
|
:'connect_timeout' => :'Float',
|
@@ -157,6 +162,8 @@ module PulpAnsibleClient
|
|
157
162
|
:'proxy_password',
|
158
163
|
:'username',
|
159
164
|
:'password',
|
165
|
+
:'download_concurrency',
|
166
|
+
:'max_retries',
|
160
167
|
:'total_timeout',
|
161
168
|
:'connect_timeout',
|
162
169
|
:'sock_connect_timeout',
|
@@ -236,6 +243,10 @@ module PulpAnsibleClient
|
|
236
243
|
self.download_concurrency = attributes[:'download_concurrency']
|
237
244
|
end
|
238
245
|
|
246
|
+
if attributes.key?(:'max_retries')
|
247
|
+
self.max_retries = attributes[:'max_retries']
|
248
|
+
end
|
249
|
+
|
239
250
|
if attributes.key?(:'policy')
|
240
251
|
self.policy = attributes[:'policy']
|
241
252
|
end
|
@@ -431,6 +442,7 @@ module PulpAnsibleClient
|
|
431
442
|
password == o.password &&
|
432
443
|
pulp_labels == o.pulp_labels &&
|
433
444
|
download_concurrency == o.download_concurrency &&
|
445
|
+
max_retries == o.max_retries &&
|
434
446
|
policy == o.policy &&
|
435
447
|
total_timeout == o.total_timeout &&
|
436
448
|
connect_timeout == o.connect_timeout &&
|
@@ -453,7 +465,7 @@ module PulpAnsibleClient
|
|
453
465
|
# Calculates hash code according to all attributes.
|
454
466
|
# @return [Integer] Hash code
|
455
467
|
def hash
|
456
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, requirements_file, auth_url, token, sync_dependencies].hash
|
468
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, requirements_file, auth_url, token, sync_dependencies].hash
|
457
469
|
end
|
458
470
|
|
459
471
|
# Builds the object from hash
|
@@ -43,22 +43,25 @@ module PulpAnsibleClient
|
|
43
43
|
# Timestamp of the most recent update of the remote.
|
44
44
|
attr_accessor :pulp_last_updated
|
45
45
|
|
46
|
-
# Total number of simultaneous connections.
|
46
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
47
47
|
attr_accessor :download_concurrency
|
48
48
|
|
49
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
50
|
+
attr_accessor :max_retries
|
51
|
+
|
49
52
|
# The policy to use when downloading content.
|
50
53
|
attr_accessor :policy
|
51
54
|
|
52
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
55
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
53
56
|
attr_accessor :total_timeout
|
54
57
|
|
55
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
58
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
56
59
|
attr_accessor :connect_timeout
|
57
60
|
|
58
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
61
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
59
62
|
attr_accessor :sock_connect_timeout
|
60
63
|
|
61
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
64
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
62
65
|
attr_accessor :sock_read_timeout
|
63
66
|
|
64
67
|
# Headers for aiohttp.Clientsession
|
@@ -93,6 +96,7 @@ module PulpAnsibleClient
|
|
93
96
|
:'pulp_labels' => :'pulp_labels',
|
94
97
|
:'pulp_last_updated' => :'pulp_last_updated',
|
95
98
|
:'download_concurrency' => :'download_concurrency',
|
99
|
+
:'max_retries' => :'max_retries',
|
96
100
|
:'policy' => :'policy',
|
97
101
|
:'total_timeout' => :'total_timeout',
|
98
102
|
:'connect_timeout' => :'connect_timeout',
|
@@ -121,6 +125,7 @@ module PulpAnsibleClient
|
|
121
125
|
:'pulp_labels' => :'Object',
|
122
126
|
:'pulp_last_updated' => :'DateTime',
|
123
127
|
:'download_concurrency' => :'Integer',
|
128
|
+
:'max_retries' => :'Integer',
|
124
129
|
:'policy' => :'PolicyEnum',
|
125
130
|
:'total_timeout' => :'Float',
|
126
131
|
:'connect_timeout' => :'Float',
|
@@ -141,6 +146,8 @@ module PulpAnsibleClient
|
|
141
146
|
:'ca_cert',
|
142
147
|
:'client_cert',
|
143
148
|
:'proxy_url',
|
149
|
+
:'download_concurrency',
|
150
|
+
:'max_retries',
|
144
151
|
:'total_timeout',
|
145
152
|
:'connect_timeout',
|
146
153
|
:'sock_connect_timeout',
|
@@ -212,6 +219,10 @@ module PulpAnsibleClient
|
|
212
219
|
self.download_concurrency = attributes[:'download_concurrency']
|
213
220
|
end
|
214
221
|
|
222
|
+
if attributes.key?(:'max_retries')
|
223
|
+
self.max_retries = attributes[:'max_retries']
|
224
|
+
end
|
225
|
+
|
215
226
|
if attributes.key?(:'policy')
|
216
227
|
self.policy = attributes[:'policy']
|
217
228
|
end
|
@@ -405,6 +416,7 @@ module PulpAnsibleClient
|
|
405
416
|
pulp_labels == o.pulp_labels &&
|
406
417
|
pulp_last_updated == o.pulp_last_updated &&
|
407
418
|
download_concurrency == o.download_concurrency &&
|
419
|
+
max_retries == o.max_retries &&
|
408
420
|
policy == o.policy &&
|
409
421
|
total_timeout == o.total_timeout &&
|
410
422
|
connect_timeout == o.connect_timeout &&
|
@@ -427,7 +439,7 @@ module PulpAnsibleClient
|
|
427
439
|
# Calculates hash code according to all attributes.
|
428
440
|
# @return [Integer] Hash code
|
429
441
|
def hash
|
430
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, requirements_file, auth_url, token, sync_dependencies].hash
|
442
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, requirements_file, auth_url, token, sync_dependencies].hash
|
431
443
|
end
|
432
444
|
|
433
445
|
# Builds the object from hash
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersionResponse
|
18
|
-
# Timestamp of creation.
|
19
|
-
attr_accessor :pulp_created
|
20
|
-
|
21
18
|
# Artifact file representing the physical content
|
22
19
|
attr_accessor :artifact
|
23
20
|
|
24
21
|
attr_accessor :pulp_href
|
25
22
|
|
23
|
+
# Timestamp of creation.
|
24
|
+
attr_accessor :pulp_created
|
25
|
+
|
26
26
|
# The MD5 checksum if available.
|
27
27
|
attr_accessor :md5
|
28
28
|
|
@@ -97,9 +97,9 @@ module PulpAnsibleClient
|
|
97
97
|
# Attribute mapping from ruby-style variable name to JSON key.
|
98
98
|
def self.attribute_map
|
99
99
|
{
|
100
|
-
:'pulp_created' => :'pulp_created',
|
101
100
|
:'artifact' => :'artifact',
|
102
101
|
:'pulp_href' => :'pulp_href',
|
102
|
+
:'pulp_created' => :'pulp_created',
|
103
103
|
:'md5' => :'md5',
|
104
104
|
:'sha1' => :'sha1',
|
105
105
|
:'sha224' => :'sha224',
|
@@ -130,9 +130,9 @@ module PulpAnsibleClient
|
|
130
130
|
# Attribute type mapping.
|
131
131
|
def self.openapi_types
|
132
132
|
{
|
133
|
-
:'pulp_created' => :'DateTime',
|
134
133
|
:'artifact' => :'String',
|
135
134
|
:'pulp_href' => :'String',
|
135
|
+
:'pulp_created' => :'DateTime',
|
136
136
|
:'md5' => :'String',
|
137
137
|
:'sha1' => :'String',
|
138
138
|
:'sha224' => :'String',
|
@@ -182,10 +182,6 @@ module PulpAnsibleClient
|
|
182
182
|
h[k.to_sym] = v
|
183
183
|
}
|
184
184
|
|
185
|
-
if attributes.key?(:'pulp_created')
|
186
|
-
self.pulp_created = attributes[:'pulp_created']
|
187
|
-
end
|
188
|
-
|
189
185
|
if attributes.key?(:'artifact')
|
190
186
|
self.artifact = attributes[:'artifact']
|
191
187
|
end
|
@@ -194,6 +190,10 @@ module PulpAnsibleClient
|
|
194
190
|
self.pulp_href = attributes[:'pulp_href']
|
195
191
|
end
|
196
192
|
|
193
|
+
if attributes.key?(:'pulp_created')
|
194
|
+
self.pulp_created = attributes[:'pulp_created']
|
195
|
+
end
|
196
|
+
|
197
197
|
if attributes.key?(:'md5')
|
198
198
|
self.md5 = attributes[:'md5']
|
199
199
|
end
|
@@ -550,9 +550,9 @@ module PulpAnsibleClient
|
|
550
550
|
def ==(o)
|
551
551
|
return true if self.equal?(o)
|
552
552
|
self.class == o.class &&
|
553
|
-
pulp_created == o.pulp_created &&
|
554
553
|
artifact == o.artifact &&
|
555
554
|
pulp_href == o.pulp_href &&
|
555
|
+
pulp_created == o.pulp_created &&
|
556
556
|
md5 == o.md5 &&
|
557
557
|
sha1 == o.sha1 &&
|
558
558
|
sha224 == o.sha224 &&
|
@@ -588,7 +588,7 @@ module PulpAnsibleClient
|
|
588
588
|
# Calculates hash code according to all attributes.
|
589
589
|
# @return [Integer] Hash code
|
590
590
|
def hash
|
591
|
-
[
|
591
|
+
[artifact, pulp_href, pulp_created, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, repository, tags, version, requires_ansible].hash
|
592
592
|
end
|
593
593
|
|
594
594
|
# Builds the object from hash
|
@@ -50,22 +50,25 @@ module PulpAnsibleClient
|
|
50
50
|
|
51
51
|
attr_accessor :pulp_labels
|
52
52
|
|
53
|
-
# Total number of simultaneous connections.
|
53
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
54
54
|
attr_accessor :download_concurrency
|
55
55
|
|
56
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
|
+
attr_accessor :max_retries
|
58
|
+
|
56
59
|
# The policy to use when downloading content.
|
57
60
|
attr_accessor :policy
|
58
61
|
|
59
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
62
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
60
63
|
attr_accessor :total_timeout
|
61
64
|
|
62
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
65
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
63
66
|
attr_accessor :connect_timeout
|
64
67
|
|
65
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
68
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
66
69
|
attr_accessor :sock_connect_timeout
|
67
70
|
|
68
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
71
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
69
72
|
attr_accessor :sock_read_timeout
|
70
73
|
|
71
74
|
# Headers for aiohttp.Clientsession
|
@@ -90,6 +93,7 @@ module PulpAnsibleClient
|
|
90
93
|
:'password' => :'password',
|
91
94
|
:'pulp_labels' => :'pulp_labels',
|
92
95
|
:'download_concurrency' => :'download_concurrency',
|
96
|
+
:'max_retries' => :'max_retries',
|
93
97
|
:'policy' => :'policy',
|
94
98
|
:'total_timeout' => :'total_timeout',
|
95
99
|
:'connect_timeout' => :'connect_timeout',
|
@@ -116,6 +120,7 @@ module PulpAnsibleClient
|
|
116
120
|
:'password' => :'String',
|
117
121
|
:'pulp_labels' => :'Object',
|
118
122
|
:'download_concurrency' => :'Integer',
|
123
|
+
:'max_retries' => :'Integer',
|
119
124
|
:'policy' => :'PolicyEnum',
|
120
125
|
:'total_timeout' => :'Float',
|
121
126
|
:'connect_timeout' => :'Float',
|
@@ -137,6 +142,8 @@ module PulpAnsibleClient
|
|
137
142
|
:'proxy_password',
|
138
143
|
:'username',
|
139
144
|
:'password',
|
145
|
+
:'download_concurrency',
|
146
|
+
:'max_retries',
|
140
147
|
:'total_timeout',
|
141
148
|
:'connect_timeout',
|
142
149
|
:'sock_connect_timeout',
|
@@ -212,6 +219,10 @@ module PulpAnsibleClient
|
|
212
219
|
self.download_concurrency = attributes[:'download_concurrency']
|
213
220
|
end
|
214
221
|
|
222
|
+
if attributes.key?(:'max_retries')
|
223
|
+
self.max_retries = attributes[:'max_retries']
|
224
|
+
end
|
225
|
+
|
215
226
|
if attributes.key?(:'policy')
|
216
227
|
self.policy = attributes[:'policy']
|
217
228
|
end
|
@@ -359,6 +370,7 @@ module PulpAnsibleClient
|
|
359
370
|
password == o.password &&
|
360
371
|
pulp_labels == o.pulp_labels &&
|
361
372
|
download_concurrency == o.download_concurrency &&
|
373
|
+
max_retries == o.max_retries &&
|
362
374
|
policy == o.policy &&
|
363
375
|
total_timeout == o.total_timeout &&
|
364
376
|
connect_timeout == o.connect_timeout &&
|
@@ -377,7 +389,7 @@ module PulpAnsibleClient
|
|
377
389
|
# Calculates hash code according to all attributes.
|
378
390
|
# @return [Integer] Hash code
|
379
391
|
def hash
|
380
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
392
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
381
393
|
end
|
382
394
|
|
383
395
|
# Builds the object from hash
|
@@ -43,22 +43,25 @@ module PulpAnsibleClient
|
|
43
43
|
# Timestamp of the most recent update of the remote.
|
44
44
|
attr_accessor :pulp_last_updated
|
45
45
|
|
46
|
-
# Total number of simultaneous connections.
|
46
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
47
47
|
attr_accessor :download_concurrency
|
48
48
|
|
49
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
50
|
+
attr_accessor :max_retries
|
51
|
+
|
49
52
|
# The policy to use when downloading content.
|
50
53
|
attr_accessor :policy
|
51
54
|
|
52
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
55
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
53
56
|
attr_accessor :total_timeout
|
54
57
|
|
55
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
58
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
56
59
|
attr_accessor :connect_timeout
|
57
60
|
|
58
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
61
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
59
62
|
attr_accessor :sock_connect_timeout
|
60
63
|
|
61
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
64
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
62
65
|
attr_accessor :sock_read_timeout
|
63
66
|
|
64
67
|
# Headers for aiohttp.Clientsession
|
@@ -81,6 +84,7 @@ module PulpAnsibleClient
|
|
81
84
|
:'pulp_labels' => :'pulp_labels',
|
82
85
|
:'pulp_last_updated' => :'pulp_last_updated',
|
83
86
|
:'download_concurrency' => :'download_concurrency',
|
87
|
+
:'max_retries' => :'max_retries',
|
84
88
|
:'policy' => :'policy',
|
85
89
|
:'total_timeout' => :'total_timeout',
|
86
90
|
:'connect_timeout' => :'connect_timeout',
|
@@ -105,6 +109,7 @@ module PulpAnsibleClient
|
|
105
109
|
:'pulp_labels' => :'Object',
|
106
110
|
:'pulp_last_updated' => :'DateTime',
|
107
111
|
:'download_concurrency' => :'Integer',
|
112
|
+
:'max_retries' => :'Integer',
|
108
113
|
:'policy' => :'PolicyEnum',
|
109
114
|
:'total_timeout' => :'Float',
|
110
115
|
:'connect_timeout' => :'Float',
|
@@ -121,6 +126,8 @@ module PulpAnsibleClient
|
|
121
126
|
:'ca_cert',
|
122
127
|
:'client_cert',
|
123
128
|
:'proxy_url',
|
129
|
+
:'download_concurrency',
|
130
|
+
:'max_retries',
|
124
131
|
:'total_timeout',
|
125
132
|
:'connect_timeout',
|
126
133
|
:'sock_connect_timeout',
|
@@ -188,6 +195,10 @@ module PulpAnsibleClient
|
|
188
195
|
self.download_concurrency = attributes[:'download_concurrency']
|
189
196
|
end
|
190
197
|
|
198
|
+
if attributes.key?(:'max_retries')
|
199
|
+
self.max_retries = attributes[:'max_retries']
|
200
|
+
end
|
201
|
+
|
191
202
|
if attributes.key?(:'policy')
|
192
203
|
self.policy = attributes[:'policy']
|
193
204
|
end
|
@@ -333,6 +344,7 @@ module PulpAnsibleClient
|
|
333
344
|
pulp_labels == o.pulp_labels &&
|
334
345
|
pulp_last_updated == o.pulp_last_updated &&
|
335
346
|
download_concurrency == o.download_concurrency &&
|
347
|
+
max_retries == o.max_retries &&
|
336
348
|
policy == o.policy &&
|
337
349
|
total_timeout == o.total_timeout &&
|
338
350
|
connect_timeout == o.connect_timeout &&
|
@@ -351,7 +363,7 @@ module PulpAnsibleClient
|
|
351
363
|
# Calculates hash code according to all attributes.
|
352
364
|
# @return [Integer] Hash code
|
353
365
|
def hash
|
354
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
366
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
355
367
|
end
|
356
368
|
|
357
369
|
# Builds the object from hash
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Role versions.
|
17
17
|
class AnsibleRoleResponse
|
18
|
-
# Timestamp of creation.
|
19
|
-
attr_accessor :pulp_created
|
20
|
-
|
21
18
|
# Artifact file representing the physical content
|
22
19
|
attr_accessor :artifact
|
23
20
|
|
24
21
|
attr_accessor :pulp_href
|
25
22
|
|
23
|
+
# Timestamp of creation.
|
24
|
+
attr_accessor :pulp_created
|
25
|
+
|
26
26
|
attr_accessor :version
|
27
27
|
|
28
28
|
attr_accessor :name
|
@@ -32,9 +32,9 @@ module PulpAnsibleClient
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'pulp_created' => :'pulp_created',
|
36
35
|
:'artifact' => :'artifact',
|
37
36
|
:'pulp_href' => :'pulp_href',
|
37
|
+
:'pulp_created' => :'pulp_created',
|
38
38
|
:'version' => :'version',
|
39
39
|
:'name' => :'name',
|
40
40
|
:'namespace' => :'namespace'
|
@@ -44,9 +44,9 @@ module PulpAnsibleClient
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
-
:'pulp_created' => :'DateTime',
|
48
47
|
:'artifact' => :'String',
|
49
48
|
:'pulp_href' => :'String',
|
49
|
+
:'pulp_created' => :'DateTime',
|
50
50
|
:'version' => :'String',
|
51
51
|
:'name' => :'String',
|
52
52
|
:'namespace' => :'String'
|
@@ -74,10 +74,6 @@ module PulpAnsibleClient
|
|
74
74
|
h[k.to_sym] = v
|
75
75
|
}
|
76
76
|
|
77
|
-
if attributes.key?(:'pulp_created')
|
78
|
-
self.pulp_created = attributes[:'pulp_created']
|
79
|
-
end
|
80
|
-
|
81
77
|
if attributes.key?(:'artifact')
|
82
78
|
self.artifact = attributes[:'artifact']
|
83
79
|
end
|
@@ -86,6 +82,10 @@ module PulpAnsibleClient
|
|
86
82
|
self.pulp_href = attributes[:'pulp_href']
|
87
83
|
end
|
88
84
|
|
85
|
+
if attributes.key?(:'pulp_created')
|
86
|
+
self.pulp_created = attributes[:'pulp_created']
|
87
|
+
end
|
88
|
+
|
89
89
|
if attributes.key?(:'version')
|
90
90
|
self.version = attributes[:'version']
|
91
91
|
end
|
@@ -137,9 +137,9 @@ module PulpAnsibleClient
|
|
137
137
|
def ==(o)
|
138
138
|
return true if self.equal?(o)
|
139
139
|
self.class == o.class &&
|
140
|
-
pulp_created == o.pulp_created &&
|
141
140
|
artifact == o.artifact &&
|
142
141
|
pulp_href == o.pulp_href &&
|
142
|
+
pulp_created == o.pulp_created &&
|
143
143
|
version == o.version &&
|
144
144
|
name == o.name &&
|
145
145
|
namespace == o.namespace
|
@@ -154,7 +154,7 @@ module PulpAnsibleClient
|
|
154
154
|
# Calculates hash code according to all attributes.
|
155
155
|
# @return [Integer] Hash code
|
156
156
|
def hash
|
157
|
-
[
|
157
|
+
[artifact, pulp_href, pulp_created, version, name, namespace].hash
|
158
158
|
end
|
159
159
|
|
160
160
|
# Builds the object from hash
|
@@ -50,22 +50,25 @@ module PulpAnsibleClient
|
|
50
50
|
|
51
51
|
attr_accessor :pulp_labels
|
52
52
|
|
53
|
-
# Total number of simultaneous connections.
|
53
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
54
54
|
attr_accessor :download_concurrency
|
55
55
|
|
56
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
|
+
attr_accessor :max_retries
|
58
|
+
|
56
59
|
# The policy to use when downloading content.
|
57
60
|
attr_accessor :policy
|
58
61
|
|
59
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
62
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
60
63
|
attr_accessor :total_timeout
|
61
64
|
|
62
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
65
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
63
66
|
attr_accessor :connect_timeout
|
64
67
|
|
65
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
68
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
66
69
|
attr_accessor :sock_connect_timeout
|
67
70
|
|
68
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
71
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
69
72
|
attr_accessor :sock_read_timeout
|
70
73
|
|
71
74
|
# Headers for aiohttp.Clientsession
|
@@ -102,6 +105,7 @@ module PulpAnsibleClient
|
|
102
105
|
:'password' => :'password',
|
103
106
|
:'pulp_labels' => :'pulp_labels',
|
104
107
|
:'download_concurrency' => :'download_concurrency',
|
108
|
+
:'max_retries' => :'max_retries',
|
105
109
|
:'policy' => :'policy',
|
106
110
|
:'total_timeout' => :'total_timeout',
|
107
111
|
:'connect_timeout' => :'connect_timeout',
|
@@ -132,6 +136,7 @@ module PulpAnsibleClient
|
|
132
136
|
:'password' => :'String',
|
133
137
|
:'pulp_labels' => :'Object',
|
134
138
|
:'download_concurrency' => :'Integer',
|
139
|
+
:'max_retries' => :'Integer',
|
135
140
|
:'policy' => :'PolicyEnum',
|
136
141
|
:'total_timeout' => :'Float',
|
137
142
|
:'connect_timeout' => :'Float',
|
@@ -157,6 +162,8 @@ module PulpAnsibleClient
|
|
157
162
|
:'proxy_password',
|
158
163
|
:'username',
|
159
164
|
:'password',
|
165
|
+
:'download_concurrency',
|
166
|
+
:'max_retries',
|
160
167
|
:'total_timeout',
|
161
168
|
:'connect_timeout',
|
162
169
|
:'sock_connect_timeout',
|
@@ -236,6 +243,10 @@ module PulpAnsibleClient
|
|
236
243
|
self.download_concurrency = attributes[:'download_concurrency']
|
237
244
|
end
|
238
245
|
|
246
|
+
if attributes.key?(:'max_retries')
|
247
|
+
self.max_retries = attributes[:'max_retries']
|
248
|
+
end
|
249
|
+
|
239
250
|
if attributes.key?(:'policy')
|
240
251
|
self.policy = attributes[:'policy']
|
241
252
|
end
|
@@ -421,6 +432,7 @@ module PulpAnsibleClient
|
|
421
432
|
password == o.password &&
|
422
433
|
pulp_labels == o.pulp_labels &&
|
423
434
|
download_concurrency == o.download_concurrency &&
|
435
|
+
max_retries == o.max_retries &&
|
424
436
|
policy == o.policy &&
|
425
437
|
total_timeout == o.total_timeout &&
|
426
438
|
connect_timeout == o.connect_timeout &&
|
@@ -443,7 +455,7 @@ module PulpAnsibleClient
|
|
443
455
|
# Calculates hash code according to all attributes.
|
444
456
|
# @return [Integer] Hash code
|
445
457
|
def hash
|
446
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, requirements_file, auth_url, token, sync_dependencies].hash
|
458
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, requirements_file, auth_url, token, sync_dependencies].hash
|
447
459
|
end
|
448
460
|
|
449
461
|
# Builds the object from hash
|