pulp_ansible_client 0.11.1 → 0.12.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 +10 -4
- data/docs/AnsibleCollectionRemote.md +3 -1
- data/docs/AnsibleCollectionRemoteResponse.md +3 -1
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleCollectionVersionSignatureResponse.md +25 -0
- data/docs/AnsibleGitRemote.md +27 -27
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- data/docs/AnsibleRepositorySignature.md +19 -0
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/CollectionVersionResponse.md +2 -0
- data/docs/ContentCollectionSignaturesApi.md +146 -0
- data/docs/PaginatedansibleCollectionVersionSignatureResponseList.md +23 -0
- data/docs/PatchedansibleCollectionRemote.md +3 -1
- data/docs/PatchedansibleGitRemote.md +27 -27
- data/docs/RepositoriesAnsibleApi.md +55 -0
- data/docs/UnpaginatedCollectionVersionResponse.md +2 -0
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +182 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +68 -0
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +18 -5
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +18 -5
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +258 -0
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +233 -233
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +148 -148
- data/lib/pulp_ansible_client/models/ansible_repository_signature.rb +230 -0
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
- data/lib/pulp_ansible_client/models/collection_version_response.rb +10 -1
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +237 -0
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +18 -5
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +224 -224
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +10 -1
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +4 -0
- data/pulp_ansible_client.gemspec +1 -1
- data/spec/api/content_collection_signatures_api_spec.rb +72 -0
- data/spec/api/repositories_ansible_api_spec.rb +12 -0
- 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 +2 -2
- data/spec/models/ansible_collection_version_signature_response_spec.rb +65 -0
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_repository_signature_spec.rb +47 -0
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/collection_version_response_spec.rb +6 -0
- data/spec/models/paginatedansible_collection_version_signature_response_list_spec.rb +59 -0
- data/spec/models/patchedansible_collection_remote_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- data/spec/models/unpaginated_collection_version_response_spec.rb +6 -0
- metadata +100 -78
@@ -4,26 +4,26 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**url** | **String** | The URL of an external content source. | [optional]
|
8
|
+
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
9
|
+
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
7
10
|
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
8
|
-
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
9
|
-
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
10
11
|
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
12
|
+
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
13
|
+
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
11
14
|
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
12
|
-
**
|
13
|
-
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
15
|
+
**sock_read_timeout** | **Float** | 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. | [optional]
|
14
16
|
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
15
|
-
**
|
16
|
-
**sock_connect_timeout** | **Float** | 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. | [optional]
|
17
|
-
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
17
|
+
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
18
18
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
19
|
-
**
|
19
|
+
**sock_connect_timeout** | **Float** | 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. | [optional]
|
20
|
+
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
20
21
|
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
21
|
-
**
|
22
|
+
**proxy_password** | **String** | The password to authenticte to the proxy. | [optional]
|
22
23
|
**name** | **String** | A unique name for this remote. | [optional]
|
23
|
-
**
|
24
|
-
**
|
25
|
-
**
|
26
|
-
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
24
|
+
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
25
|
+
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
26
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
27
27
|
**metadata_only** | **Boolean** | If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL. | [optional]
|
28
28
|
**git_ref** | **String** | A git ref. e.g.: branch, tag, or commit sha. | [optional]
|
29
29
|
|
@@ -32,26 +32,26 @@ Name | Type | Description | Notes
|
|
32
32
|
```ruby
|
33
33
|
require 'PulpAnsibleClient'
|
34
34
|
|
35
|
-
instance = PulpAnsibleClient::PatchedansibleGitRemote.new(
|
36
|
-
|
37
|
-
|
35
|
+
instance = PulpAnsibleClient::PatchedansibleGitRemote.new(url: null,
|
36
|
+
total_timeout: null,
|
37
|
+
client_cert: null,
|
38
|
+
proxy_username: null,
|
38
39
|
connect_timeout: null,
|
40
|
+
ca_cert: null,
|
41
|
+
proxy_url: null,
|
39
42
|
tls_validation: null,
|
40
|
-
|
41
|
-
rate_limit: null,
|
43
|
+
sock_read_timeout: null,
|
42
44
|
client_key: null,
|
43
|
-
|
44
|
-
sock_connect_timeout: null,
|
45
|
-
download_concurrency: null,
|
45
|
+
password: null,
|
46
46
|
pulp_labels: null,
|
47
|
-
|
47
|
+
sock_connect_timeout: null,
|
48
|
+
rate_limit: null,
|
48
49
|
headers: null,
|
49
|
-
|
50
|
+
proxy_password: null,
|
50
51
|
name: null,
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
password: null,
|
52
|
+
username: null,
|
53
|
+
max_retries: null,
|
54
|
+
download_concurrency: null,
|
55
55
|
metadata_only: null,
|
56
56
|
git_ref: null)
|
57
57
|
```
|
@@ -10,6 +10,7 @@ Method | HTTP request | Description
|
|
10
10
|
[**modify**](RepositoriesAnsibleApi.md#modify) | **POST** {ansible_ansible_repository_href}modify/ | Modify Repository Content
|
11
11
|
[**partial_update**](RepositoriesAnsibleApi.md#partial_update) | **PATCH** {ansible_ansible_repository_href} | Update an ansible repository
|
12
12
|
[**read**](RepositoriesAnsibleApi.md#read) | **GET** {ansible_ansible_repository_href} | Inspect an ansible repository
|
13
|
+
[**sign**](RepositoriesAnsibleApi.md#sign) | **POST** {ansible_ansible_repository_href}sign/ |
|
13
14
|
[**sync**](RepositoriesAnsibleApi.md#sync) | **POST** {ansible_ansible_repository_href}sync/ |
|
14
15
|
[**update**](RepositoriesAnsibleApi.md#update) | **PUT** {ansible_ansible_repository_href} | Update an ansible repository
|
15
16
|
|
@@ -365,6 +366,60 @@ Name | Type | Description | Notes
|
|
365
366
|
- **Accept**: application/json
|
366
367
|
|
367
368
|
|
369
|
+
## sign
|
370
|
+
|
371
|
+
> AsyncOperationResponse sign(ansible_ansible_repository_href, ansible_repository_signature)
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
Trigger an asynchronous task to sign Ansible content.
|
376
|
+
|
377
|
+
### Example
|
378
|
+
|
379
|
+
```ruby
|
380
|
+
# load the gem
|
381
|
+
require 'pulp_ansible_client'
|
382
|
+
# setup authorization
|
383
|
+
PulpAnsibleClient.configure do |config|
|
384
|
+
# Configure HTTP basic authorization: basicAuth
|
385
|
+
config.username = 'YOUR USERNAME'
|
386
|
+
config.password = 'YOUR PASSWORD'
|
387
|
+
end
|
388
|
+
|
389
|
+
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
390
|
+
ansible_ansible_repository_href = 'ansible_ansible_repository_href_example' # String |
|
391
|
+
ansible_repository_signature = PulpAnsibleClient::AnsibleRepositorySignature.new # AnsibleRepositorySignature |
|
392
|
+
|
393
|
+
begin
|
394
|
+
result = api_instance.sign(ansible_ansible_repository_href, ansible_repository_signature)
|
395
|
+
p result
|
396
|
+
rescue PulpAnsibleClient::ApiError => e
|
397
|
+
puts "Exception when calling RepositoriesAnsibleApi->sign: #{e}"
|
398
|
+
end
|
399
|
+
```
|
400
|
+
|
401
|
+
### Parameters
|
402
|
+
|
403
|
+
|
404
|
+
Name | Type | Description | Notes
|
405
|
+
------------- | ------------- | ------------- | -------------
|
406
|
+
**ansible_ansible_repository_href** | **String**| |
|
407
|
+
**ansible_repository_signature** | [**AnsibleRepositorySignature**](AnsibleRepositorySignature.md)| |
|
408
|
+
|
409
|
+
### Return type
|
410
|
+
|
411
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
412
|
+
|
413
|
+
### Authorization
|
414
|
+
|
415
|
+
[basicAuth](../README.md#basicAuth)
|
416
|
+
|
417
|
+
### HTTP request headers
|
418
|
+
|
419
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
420
|
+
- **Accept**: application/json
|
421
|
+
|
422
|
+
|
368
423
|
## sync
|
369
424
|
|
370
425
|
> AsyncOperationResponse sync(ansible_ansible_repository_href, ansible_repository_sync_url)
|
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
|
|
14
14
|
**download_url** | **String** | | [optional] [readonly]
|
15
15
|
**name** | **String** | | [optional] [readonly]
|
16
16
|
**namespace** | [**CollectionNamespaceResponse**](CollectionNamespaceResponse.md) | | [optional] [readonly]
|
17
|
+
**signatures** | **String** | | [optional] [readonly]
|
17
18
|
**metadata** | [**CollectionMetadataResponse**](CollectionMetadataResponse.md) | | [optional] [readonly]
|
18
19
|
**git_url** | **String** | | [optional] [readonly]
|
19
20
|
**git_commit_sha** | **String** | | [optional] [readonly]
|
@@ -33,6 +34,7 @@ instance = PulpAnsibleClient::UnpaginatedCollectionVersionResponse.new(version:
|
|
33
34
|
download_url: null,
|
34
35
|
name: null,
|
35
36
|
namespace: null,
|
37
|
+
signatures: null,
|
36
38
|
metadata: null,
|
37
39
|
git_url: null,
|
38
40
|
git_commit_sha: null)
|
@@ -0,0 +1,182 @@
|
|
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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpAnsibleClient
|
16
|
+
class ContentCollectionSignaturesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# List collection version signatures
|
23
|
+
# ViewSet for looking at signature objects for CollectionVersion content.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
26
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
27
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
28
|
+
# @option opts [String] :pubkey_fingerprint Filter results where pubkey_fingerprint matches value
|
29
|
+
# @option opts [Array<String>] :pubkey_fingerprint__in Filter results where pubkey_fingerprint is in a comma-separated list of values
|
30
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
31
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
32
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
33
|
+
# @option opts [String] :signed_collection Filter results where signed_collection matches value
|
34
|
+
# @option opts [String] :signing_service Filter results where signing_service matches value
|
35
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
36
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
37
|
+
# @return [PaginatedansibleCollectionVersionSignatureResponseList]
|
38
|
+
def list(opts = {})
|
39
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
40
|
+
data
|
41
|
+
end
|
42
|
+
|
43
|
+
# List collection version signatures
|
44
|
+
# ViewSet for looking at signature objects for CollectionVersion content.
|
45
|
+
# @param [Hash] opts the optional parameters
|
46
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
47
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
48
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
49
|
+
# @option opts [String] :pubkey_fingerprint Filter results where pubkey_fingerprint matches value
|
50
|
+
# @option opts [Array<String>] :pubkey_fingerprint__in Filter results where pubkey_fingerprint is in a comma-separated list of values
|
51
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
52
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
53
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
54
|
+
# @option opts [String] :signed_collection Filter results where signed_collection matches value
|
55
|
+
# @option opts [String] :signing_service Filter results where signing_service matches value
|
56
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
57
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
58
|
+
# @return [Array<(PaginatedansibleCollectionVersionSignatureResponseList, Integer, Hash)>] PaginatedansibleCollectionVersionSignatureResponseList data, response status code and response headers
|
59
|
+
def list_with_http_info(opts = {})
|
60
|
+
if @api_client.config.debugging
|
61
|
+
@api_client.config.logger.debug 'Calling API: ContentCollectionSignaturesApi.list ...'
|
62
|
+
end
|
63
|
+
# resource path
|
64
|
+
local_var_path = '/pulp/api/v3/content/ansible/collection_signatures/'
|
65
|
+
|
66
|
+
# query parameters
|
67
|
+
query_params = opts[:query_params] || {}
|
68
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
69
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
70
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
71
|
+
query_params[:'pubkey_fingerprint'] = opts[:'pubkey_fingerprint'] if !opts[:'pubkey_fingerprint'].nil?
|
72
|
+
query_params[:'pubkey_fingerprint__in'] = @api_client.build_collection_param(opts[:'pubkey_fingerprint__in'], :csv) if !opts[:'pubkey_fingerprint__in'].nil?
|
73
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
74
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
75
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
76
|
+
query_params[:'signed_collection'] = opts[:'signed_collection'] if !opts[:'signed_collection'].nil?
|
77
|
+
query_params[:'signing_service'] = opts[:'signing_service'] if !opts[:'signing_service'].nil?
|
78
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
79
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
80
|
+
|
81
|
+
# header parameters
|
82
|
+
header_params = opts[:header_params] || {}
|
83
|
+
# HTTP header 'Accept' (if needed)
|
84
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
85
|
+
|
86
|
+
# form parameters
|
87
|
+
form_params = opts[:form_params] || {}
|
88
|
+
|
89
|
+
# http body (model)
|
90
|
+
post_body = opts[:body]
|
91
|
+
|
92
|
+
# return_type
|
93
|
+
return_type = opts[:return_type] || 'PaginatedansibleCollectionVersionSignatureResponseList'
|
94
|
+
|
95
|
+
# auth_names
|
96
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
97
|
+
|
98
|
+
new_options = opts.merge(
|
99
|
+
:header_params => header_params,
|
100
|
+
:query_params => query_params,
|
101
|
+
:form_params => form_params,
|
102
|
+
:body => post_body,
|
103
|
+
:auth_names => auth_names,
|
104
|
+
:return_type => return_type
|
105
|
+
)
|
106
|
+
|
107
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug "API called: ContentCollectionSignaturesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
110
|
+
end
|
111
|
+
return data, status_code, headers
|
112
|
+
end
|
113
|
+
|
114
|
+
# Inspect a collection version signature
|
115
|
+
# ViewSet for looking at signature objects for CollectionVersion content.
|
116
|
+
# @param ansible_collection_version_signature_href [String]
|
117
|
+
# @param [Hash] opts the optional parameters
|
118
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
119
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
120
|
+
# @return [AnsibleCollectionVersionSignatureResponse]
|
121
|
+
def read(ansible_collection_version_signature_href, opts = {})
|
122
|
+
data, _status_code, _headers = read_with_http_info(ansible_collection_version_signature_href, opts)
|
123
|
+
data
|
124
|
+
end
|
125
|
+
|
126
|
+
# Inspect a collection version signature
|
127
|
+
# ViewSet for looking at signature objects for CollectionVersion content.
|
128
|
+
# @param ansible_collection_version_signature_href [String]
|
129
|
+
# @param [Hash] opts the optional parameters
|
130
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
131
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
132
|
+
# @return [Array<(AnsibleCollectionVersionSignatureResponse, Integer, Hash)>] AnsibleCollectionVersionSignatureResponse data, response status code and response headers
|
133
|
+
def read_with_http_info(ansible_collection_version_signature_href, opts = {})
|
134
|
+
if @api_client.config.debugging
|
135
|
+
@api_client.config.logger.debug 'Calling API: ContentCollectionSignaturesApi.read ...'
|
136
|
+
end
|
137
|
+
# verify the required parameter 'ansible_collection_version_signature_href' is set
|
138
|
+
if @api_client.config.client_side_validation && ansible_collection_version_signature_href.nil?
|
139
|
+
fail ArgumentError, "Missing the required parameter 'ansible_collection_version_signature_href' when calling ContentCollectionSignaturesApi.read"
|
140
|
+
end
|
141
|
+
# resource path
|
142
|
+
local_var_path = '{ansible_collection_version_signature_href}'.sub('{' + 'ansible_collection_version_signature_href' + '}', CGI.escape(ansible_collection_version_signature_href.to_s).gsub('%2F', '/'))
|
143
|
+
|
144
|
+
# query parameters
|
145
|
+
query_params = opts[:query_params] || {}
|
146
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
147
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
148
|
+
|
149
|
+
# header parameters
|
150
|
+
header_params = opts[:header_params] || {}
|
151
|
+
# HTTP header 'Accept' (if needed)
|
152
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
153
|
+
|
154
|
+
# form parameters
|
155
|
+
form_params = opts[:form_params] || {}
|
156
|
+
|
157
|
+
# http body (model)
|
158
|
+
post_body = opts[:body]
|
159
|
+
|
160
|
+
# return_type
|
161
|
+
return_type = opts[:return_type] || 'AnsibleCollectionVersionSignatureResponse'
|
162
|
+
|
163
|
+
# auth_names
|
164
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
165
|
+
|
166
|
+
new_options = opts.merge(
|
167
|
+
:header_params => header_params,
|
168
|
+
:query_params => query_params,
|
169
|
+
:form_params => form_params,
|
170
|
+
:body => post_body,
|
171
|
+
:auth_names => auth_names,
|
172
|
+
:return_type => return_type
|
173
|
+
)
|
174
|
+
|
175
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
176
|
+
if @api_client.config.debugging
|
177
|
+
@api_client.config.logger.debug "API called: ContentCollectionSignaturesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
178
|
+
end
|
179
|
+
return data, status_code, headers
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
@@ -442,6 +442,74 @@ module PulpAnsibleClient
|
|
442
442
|
return data, status_code, headers
|
443
443
|
end
|
444
444
|
|
445
|
+
# Trigger an asynchronous task to sign Ansible content.
|
446
|
+
# @param ansible_ansible_repository_href [String]
|
447
|
+
# @param ansible_repository_signature [AnsibleRepositorySignature]
|
448
|
+
# @param [Hash] opts the optional parameters
|
449
|
+
# @return [AsyncOperationResponse]
|
450
|
+
def sign(ansible_ansible_repository_href, ansible_repository_signature, opts = {})
|
451
|
+
data, _status_code, _headers = sign_with_http_info(ansible_ansible_repository_href, ansible_repository_signature, opts)
|
452
|
+
data
|
453
|
+
end
|
454
|
+
|
455
|
+
# Trigger an asynchronous task to sign Ansible content.
|
456
|
+
# @param ansible_ansible_repository_href [String]
|
457
|
+
# @param ansible_repository_signature [AnsibleRepositorySignature]
|
458
|
+
# @param [Hash] opts the optional parameters
|
459
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
460
|
+
def sign_with_http_info(ansible_ansible_repository_href, ansible_repository_signature, opts = {})
|
461
|
+
if @api_client.config.debugging
|
462
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.sign ...'
|
463
|
+
end
|
464
|
+
# verify the required parameter 'ansible_ansible_repository_href' is set
|
465
|
+
if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
|
466
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleApi.sign"
|
467
|
+
end
|
468
|
+
# verify the required parameter 'ansible_repository_signature' is set
|
469
|
+
if @api_client.config.client_side_validation && ansible_repository_signature.nil?
|
470
|
+
fail ArgumentError, "Missing the required parameter 'ansible_repository_signature' when calling RepositoriesAnsibleApi.sign"
|
471
|
+
end
|
472
|
+
# resource path
|
473
|
+
local_var_path = '{ansible_ansible_repository_href}sign/'.sub('{' + 'ansible_ansible_repository_href' + '}', CGI.escape(ansible_ansible_repository_href.to_s).gsub('%2F', '/'))
|
474
|
+
|
475
|
+
# query parameters
|
476
|
+
query_params = opts[:query_params] || {}
|
477
|
+
|
478
|
+
# header parameters
|
479
|
+
header_params = opts[:header_params] || {}
|
480
|
+
# HTTP header 'Accept' (if needed)
|
481
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
482
|
+
# HTTP header 'Content-Type'
|
483
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
484
|
+
|
485
|
+
# form parameters
|
486
|
+
form_params = opts[:form_params] || {}
|
487
|
+
|
488
|
+
# http body (model)
|
489
|
+
post_body = opts[:body] || @api_client.object_to_http_body(ansible_repository_signature)
|
490
|
+
|
491
|
+
# return_type
|
492
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
493
|
+
|
494
|
+
# auth_names
|
495
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
496
|
+
|
497
|
+
new_options = opts.merge(
|
498
|
+
:header_params => header_params,
|
499
|
+
:query_params => query_params,
|
500
|
+
:form_params => form_params,
|
501
|
+
:body => post_body,
|
502
|
+
:auth_names => auth_names,
|
503
|
+
:return_type => return_type
|
504
|
+
)
|
505
|
+
|
506
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
507
|
+
if @api_client.config.debugging
|
508
|
+
@api_client.config.logger.debug "API called: RepositoriesAnsibleApi#sign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
509
|
+
end
|
510
|
+
return data, status_code, headers
|
511
|
+
end
|
512
|
+
|
445
513
|
# Trigger an asynchronous task to sync Ansible content.
|
446
514
|
# @param ansible_ansible_repository_href [String]
|
447
515
|
# @param ansible_repository_sync_url [AnsibleRepositorySyncURL]
|
@@ -89,6 +89,9 @@ module PulpAnsibleClient
|
|
89
89
|
# Sync dependencies for collections specified via requirements file
|
90
90
|
attr_accessor :sync_dependencies
|
91
91
|
|
92
|
+
# Sync only collections that have a signature
|
93
|
+
attr_accessor :signed_only
|
94
|
+
|
92
95
|
# Attribute mapping from ruby-style variable name to JSON key.
|
93
96
|
def self.attribute_map
|
94
97
|
{
|
@@ -116,7 +119,8 @@ module PulpAnsibleClient
|
|
116
119
|
:'requirements_file' => :'requirements_file',
|
117
120
|
:'auth_url' => :'auth_url',
|
118
121
|
:'token' => :'token',
|
119
|
-
:'sync_dependencies' => :'sync_dependencies'
|
122
|
+
:'sync_dependencies' => :'sync_dependencies',
|
123
|
+
:'signed_only' => :'signed_only'
|
120
124
|
}
|
121
125
|
end
|
122
126
|
|
@@ -147,7 +151,8 @@ module PulpAnsibleClient
|
|
147
151
|
:'requirements_file' => :'String',
|
148
152
|
:'auth_url' => :'String',
|
149
153
|
:'token' => :'String',
|
150
|
-
:'sync_dependencies' => :'Boolean'
|
154
|
+
:'sync_dependencies' => :'Boolean',
|
155
|
+
:'signed_only' => :'Boolean'
|
151
156
|
}
|
152
157
|
end
|
153
158
|
|
@@ -172,7 +177,8 @@ module PulpAnsibleClient
|
|
172
177
|
:'requirements_file',
|
173
178
|
:'auth_url',
|
174
179
|
:'token',
|
175
|
-
:'sync_dependencies'
|
180
|
+
:'sync_dependencies',
|
181
|
+
:'signed_only'
|
176
182
|
])
|
177
183
|
end
|
178
184
|
|
@@ -294,6 +300,12 @@ module PulpAnsibleClient
|
|
294
300
|
else
|
295
301
|
self.sync_dependencies = true
|
296
302
|
end
|
303
|
+
|
304
|
+
if attributes.key?(:'signed_only')
|
305
|
+
self.signed_only = attributes[:'signed_only']
|
306
|
+
else
|
307
|
+
self.signed_only = false
|
308
|
+
end
|
297
309
|
end
|
298
310
|
|
299
311
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -644,7 +656,8 @@ module PulpAnsibleClient
|
|
644
656
|
requirements_file == o.requirements_file &&
|
645
657
|
auth_url == o.auth_url &&
|
646
658
|
token == o.token &&
|
647
|
-
sync_dependencies == o.sync_dependencies
|
659
|
+
sync_dependencies == o.sync_dependencies &&
|
660
|
+
signed_only == o.signed_only
|
648
661
|
end
|
649
662
|
|
650
663
|
# @see the `==` method
|
@@ -656,7 +669,7 @@ module PulpAnsibleClient
|
|
656
669
|
# Calculates hash code according to all attributes.
|
657
670
|
# @return [Integer] Hash code
|
658
671
|
def hash
|
659
|
-
[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
|
672
|
+
[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, signed_only].hash
|
660
673
|
end
|
661
674
|
|
662
675
|
# Builds the object from hash
|
@@ -82,6 +82,9 @@ module PulpAnsibleClient
|
|
82
82
|
# Sync dependencies for collections specified via requirements file
|
83
83
|
attr_accessor :sync_dependencies
|
84
84
|
|
85
|
+
# Sync only collections that have a signature
|
86
|
+
attr_accessor :signed_only
|
87
|
+
|
85
88
|
# Attribute mapping from ruby-style variable name to JSON key.
|
86
89
|
def self.attribute_map
|
87
90
|
{
|
@@ -107,7 +110,8 @@ module PulpAnsibleClient
|
|
107
110
|
:'requirements_file' => :'requirements_file',
|
108
111
|
:'auth_url' => :'auth_url',
|
109
112
|
:'token' => :'token',
|
110
|
-
:'sync_dependencies' => :'sync_dependencies'
|
113
|
+
:'sync_dependencies' => :'sync_dependencies',
|
114
|
+
:'signed_only' => :'signed_only'
|
111
115
|
}
|
112
116
|
end
|
113
117
|
|
@@ -136,7 +140,8 @@ module PulpAnsibleClient
|
|
136
140
|
:'requirements_file' => :'String',
|
137
141
|
:'auth_url' => :'String',
|
138
142
|
:'token' => :'String',
|
139
|
-
:'sync_dependencies' => :'Boolean'
|
143
|
+
:'sync_dependencies' => :'Boolean',
|
144
|
+
:'signed_only' => :'Boolean'
|
140
145
|
}
|
141
146
|
end
|
142
147
|
|
@@ -156,7 +161,8 @@ module PulpAnsibleClient
|
|
156
161
|
:'requirements_file',
|
157
162
|
:'auth_url',
|
158
163
|
:'token',
|
159
|
-
:'sync_dependencies'
|
164
|
+
:'sync_dependencies',
|
165
|
+
:'signed_only'
|
160
166
|
])
|
161
167
|
end
|
162
168
|
|
@@ -270,6 +276,12 @@ module PulpAnsibleClient
|
|
270
276
|
else
|
271
277
|
self.sync_dependencies = true
|
272
278
|
end
|
279
|
+
|
280
|
+
if attributes.key?(:'signed_only')
|
281
|
+
self.signed_only = attributes[:'signed_only']
|
282
|
+
else
|
283
|
+
self.signed_only = false
|
284
|
+
end
|
273
285
|
end
|
274
286
|
|
275
287
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -427,7 +439,8 @@ module PulpAnsibleClient
|
|
427
439
|
requirements_file == o.requirements_file &&
|
428
440
|
auth_url == o.auth_url &&
|
429
441
|
token == o.token &&
|
430
|
-
sync_dependencies == o.sync_dependencies
|
442
|
+
sync_dependencies == o.sync_dependencies &&
|
443
|
+
signed_only == o.signed_only
|
431
444
|
end
|
432
445
|
|
433
446
|
# @see the `==` method
|
@@ -439,7 +452,7 @@ module PulpAnsibleClient
|
|
439
452
|
# Calculates hash code according to all attributes.
|
440
453
|
# @return [Integer] Hash code
|
441
454
|
def 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
|
455
|
+
[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, signed_only].hash
|
443
456
|
end
|
444
457
|
|
445
458
|
# Builds the object from hash
|
@@ -15,13 +15,13 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersionResponse
|
18
|
-
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
19
20
|
|
20
21
|
# Artifact file representing the physical content
|
21
22
|
attr_accessor :artifact
|
22
23
|
|
23
|
-
|
24
|
-
attr_accessor :pulp_created
|
24
|
+
attr_accessor :pulp_href
|
25
25
|
|
26
26
|
# The MD5 checksum if available.
|
27
27
|
attr_accessor :md5
|
@@ -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_href' => :'pulp_href',
|
101
|
-
:'artifact' => :'artifact',
|
102
100
|
:'pulp_created' => :'pulp_created',
|
101
|
+
:'artifact' => :'artifact',
|
102
|
+
:'pulp_href' => :'pulp_href',
|
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_href' => :'String',
|
134
|
-
:'artifact' => :'String',
|
135
133
|
:'pulp_created' => :'DateTime',
|
134
|
+
:'artifact' => :'String',
|
135
|
+
:'pulp_href' => :'String',
|
136
136
|
:'md5' => :'String',
|
137
137
|
:'sha1' => :'String',
|
138
138
|
:'sha224' => :'String',
|
@@ -182,16 +182,16 @@ module PulpAnsibleClient
|
|
182
182
|
h[k.to_sym] = v
|
183
183
|
}
|
184
184
|
|
185
|
-
if attributes.key?(:'
|
186
|
-
self.
|
185
|
+
if attributes.key?(:'pulp_created')
|
186
|
+
self.pulp_created = attributes[:'pulp_created']
|
187
187
|
end
|
188
188
|
|
189
189
|
if attributes.key?(:'artifact')
|
190
190
|
self.artifact = attributes[:'artifact']
|
191
191
|
end
|
192
192
|
|
193
|
-
if attributes.key?(:'
|
194
|
-
self.
|
193
|
+
if attributes.key?(:'pulp_href')
|
194
|
+
self.pulp_href = attributes[:'pulp_href']
|
195
195
|
end
|
196
196
|
|
197
197
|
if attributes.key?(:'md5')
|
@@ -543,9 +543,9 @@ module PulpAnsibleClient
|
|
543
543
|
def ==(o)
|
544
544
|
return true if self.equal?(o)
|
545
545
|
self.class == o.class &&
|
546
|
-
pulp_href == o.pulp_href &&
|
547
|
-
artifact == o.artifact &&
|
548
546
|
pulp_created == o.pulp_created &&
|
547
|
+
artifact == o.artifact &&
|
548
|
+
pulp_href == o.pulp_href &&
|
549
549
|
md5 == o.md5 &&
|
550
550
|
sha1 == o.sha1 &&
|
551
551
|
sha224 == o.sha224 &&
|
@@ -581,7 +581,7 @@ module PulpAnsibleClient
|
|
581
581
|
# Calculates hash code according to all attributes.
|
582
582
|
# @return [Integer] Hash code
|
583
583
|
def hash
|
584
|
-
[
|
584
|
+
[pulp_created, artifact, pulp_href, 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
|
585
585
|
end
|
586
586
|
|
587
587
|
# Builds the object from hash
|