pulp_ansible_client 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +1 -1
- data/lib/pulp_ansible_client/api/ansible_copy_api.rb +1 -1
- data/lib/pulp_ansible_client/api/api_collections_api.rb +1 -1
- data/lib/pulp_ansible_client/api/api_roles_api.rb +1 -1
- data/lib/pulp_ansible_client/api/collection_import_api.rb +1 -1
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/content_roles_api.rb +1 -1
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +1 -1
- data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_all_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_docs_blob_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_v3_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +1 -1
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +1 -1
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +1 -1
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +1 -1
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api_client.rb +12 -8
- data/lib/pulp_ansible_client/api_error.rb +1 -1
- data/lib/pulp_ansible_client/configuration.rb +8 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_repository_sync_url.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_tag_response.rb +1 -1
- data/lib/pulp_ansible_client/models/artifact_ref_response.rb +1 -1
- data/lib/pulp_ansible_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_metadata_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_namespace_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_one_shot.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_ref_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_version_response.rb +1 -1
- data/lib/pulp_ansible_client/models/content_summary.rb +1 -1
- data/lib/pulp_ansible_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_ansible_client/models/copy.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_role_response.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_collection_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_collection_response_list_links.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_collection_response_list_meta.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_collection_version_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_galaxy_collection_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_galaxy_collection_version_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/policy_enum.rb +1 -1
- data/lib/pulp_ansible_client/models/repo_metadata_response.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +3 -3
- data/lib/pulp_ansible_client/models/repository_version.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_ansible_client/models/tag_response.rb +1 -1
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +1 -1
- data/lib/pulp_ansible_client/version.rb +2 -2
- data/lib/pulp_ansible_client.rb +1 -1
- data/pulp_ansible_client.gemspec +1 -1
- data/spec/api/ansible_collections_api_spec.rb +1 -1
- data/spec/api/ansible_copy_api_spec.rb +1 -1
- data/spec/api/api_collections_api_spec.rb +1 -1
- data/spec/api/api_roles_api_spec.rb +1 -1
- data/spec/api/collection_import_api_spec.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +1 -1
- data/spec/api/content_roles_api_spec.rb +1 -1
- data/spec/api/distributions_ansible_api_spec.rb +1 -1
- data/spec/api/galaxy_detail_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v3_all_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_docs_blob_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v3_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_v3_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_tags_api_spec.rb +1 -1
- data/spec/api/remotes_collection_api_spec.rb +1 -1
- data/spec/api/remotes_role_api_spec.rb +1 -1
- data/spec/api/repositories_ansible_api_spec.rb +1 -1
- data/spec/api/repositories_ansible_versions_api_spec.rb +1 -1
- data/spec/api/versions_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/ansible_ansible_distribution_response_spec.rb +1 -1
- data/spec/models/ansible_ansible_distribution_spec.rb +1 -1
- data/spec/models/ansible_ansible_repository_response_spec.rb +1 -1
- data/spec/models/ansible_ansible_repository_spec.rb +1 -1
- data/spec/models/ansible_collection_remote_response_spec.rb +1 -1
- data/spec/models/ansible_collection_remote_spec.rb +1 -1
- data/spec/models/ansible_collection_response_spec.rb +1 -1
- data/spec/models/ansible_collection_version_response_spec.rb +1 -1
- data/spec/models/ansible_collection_version_spec.rb +1 -1
- data/spec/models/ansible_repository_sync_url_spec.rb +1 -1
- data/spec/models/ansible_role_remote_response_spec.rb +1 -1
- data/spec/models/ansible_role_remote_spec.rb +1 -1
- data/spec/models/ansible_role_response_spec.rb +1 -1
- data/spec/models/ansible_role_spec.rb +1 -1
- data/spec/models/ansible_tag_response_spec.rb +1 -1
- data/spec/models/artifact_ref_response_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/collection_import_detail_response_spec.rb +1 -1
- data/spec/models/collection_metadata_response_spec.rb +1 -1
- data/spec/models/collection_namespace_response_spec.rb +1 -1
- data/spec/models/collection_one_shot_spec.rb +1 -1
- data/spec/models/collection_ref_response_spec.rb +1 -1
- data/spec/models/collection_response_spec.rb +1 -1
- data/spec/models/collection_version_docs_response_spec.rb +1 -1
- data/spec/models/collection_version_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/copy_spec.rb +1 -1
- data/spec/models/galaxy_collection_response_spec.rb +1 -1
- data/spec/models/galaxy_collection_spec.rb +1 -1
- data/spec/models/galaxy_collection_version_response_spec.rb +1 -1
- data/spec/models/galaxy_role_response_spec.rb +1 -1
- data/spec/models/galaxy_role_version_response_spec.rb +1 -1
- data/spec/models/paginated_collection_response_list_links_spec.rb +1 -1
- data/spec/models/paginated_collection_response_list_meta_spec.rb +1 -1
- data/spec/models/paginated_collection_response_list_spec.rb +1 -1
- data/spec/models/paginated_collection_version_response_list_spec.rb +1 -1
- data/spec/models/paginated_galaxy_collection_response_list_spec.rb +1 -1
- data/spec/models/paginated_galaxy_collection_version_response_list_spec.rb +1 -1
- data/spec/models/paginated_galaxy_role_response_list_spec.rb +1 -1
- data/spec/models/paginated_galaxy_role_version_response_list_spec.rb +1 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginated_tag_response_list_spec.rb +1 -1
- data/spec/models/paginatedansible_ansible_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginatedansible_ansible_repository_response_list_spec.rb +1 -1
- data/spec/models/paginatedansible_collection_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatedansible_collection_response_list_spec.rb +1 -1
- data/spec/models/paginatedansible_collection_version_response_list_spec.rb +1 -1
- data/spec/models/paginatedansible_role_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatedansible_role_response_list_spec.rb +1 -1
- data/spec/models/patchedansible_ansible_distribution_spec.rb +1 -1
- data/spec/models/patchedansible_ansible_repository_spec.rb +1 -1
- data/spec/models/patchedansible_collection_remote_spec.rb +1 -1
- data/spec/models/patchedansible_role_remote_spec.rb +1 -1
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/repo_metadata_response_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_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_response_spec.rb +1 -1
- data/spec/models/unpaginated_collection_version_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +66 -66
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b005e269d038c5a4d003704c2c613d9542105b5d24d59eb740419cdbf8efc85
|
4
|
+
data.tar.gz: 1b06a6117e97f74986ff52233a7b44ab6758550fd6f18896406e333d45bf1aa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69568c5c8fa6526c4783d7a91096610cc86c1e699e832807f9a44c97308eb4b24b03f74198ec33f4408359f654cd4de7f20be0dd433f0b21eb2cee35657e1039
|
7
|
+
data.tar.gz: d672622944d2ed9a579add466c7b3bc80c4ab94b83cef8de8762f3677b7fc57e9157c5e4bd493c3a2c08fa32c581c8d5199aa417221f5b4012a5a44afb6b95b7
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: v3
|
10
|
-
- Package version: 0.7.
|
10
|
+
- Package version: 0.7.4
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulp_ansible_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_ansible_client-0.7.
|
27
|
+
gem install ./pulp_ansible_client-0.7.4.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_ansible_client-0.7.
|
30
|
+
(for development, run `gem install --dev ./pulp_ansible_client-0.7.4.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulp_ansible_client', '~> 0.7.
|
36
|
+
gem 'pulp_ansible_client', '~> 0.7.4'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**add_content_units** | **Array<
|
8
|
-
**remove_content_units** | **Array<
|
7
|
+
**add_content_units** | [**Array<AnyType>**](AnyType.md) | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional]
|
8
|
+
**remove_content_units** | [**Array<AnyType>**](AnyType.md) | A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added. | [optional]
|
9
9
|
**base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional]
|
10
10
|
|
11
11
|
## Code Sample
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -53,8 +53,10 @@ module PulpAnsibleClient
|
|
53
53
|
:client_cert => @config.ssl_client_cert,
|
54
54
|
:client_key => @config.ssl_client_key
|
55
55
|
}
|
56
|
-
|
57
|
-
|
56
|
+
request_options = {
|
57
|
+
:params_encoder => @config.params_encoder
|
58
|
+
}
|
59
|
+
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options, :request => request_options) do |conn|
|
58
60
|
conn.basic_auth(config.username, config.password)
|
59
61
|
if opts[:header_params]["Content-Type"] == "multipart/form-data"
|
60
62
|
conn.request :multipart
|
@@ -285,11 +287,13 @@ module PulpAnsibleClient
|
|
285
287
|
tempfile.write(chunk)
|
286
288
|
end
|
287
289
|
request.on_complete do |response|
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
290
|
+
if tempfile
|
291
|
+
tempfile.close
|
292
|
+
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
293
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
294
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
295
|
+
"explicitly with `tempfile.delete`"
|
296
|
+
end
|
293
297
|
end
|
294
298
|
end
|
295
299
|
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -109,6 +109,12 @@ module PulpAnsibleClient
|
|
109
109
|
# Client private key file (for client certificate)
|
110
110
|
attr_accessor :ssl_client_key
|
111
111
|
|
112
|
+
# Set this to customize parameters encoder of array parameter.
|
113
|
+
# Default to nil. Faraday uses NestedParamsEncoder when nil.
|
114
|
+
#
|
115
|
+
# @see The params_encoder option of Faraday. Related source code:
|
116
|
+
# https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders
|
117
|
+
attr_accessor :params_encoder
|
112
118
|
# Set this to customize parameters encoding of array parameter with multi collectionFormat.
|
113
119
|
# Default to nil.
|
114
120
|
#
|
@@ -133,6 +139,7 @@ module PulpAnsibleClient
|
|
133
139
|
@ssl_ca_file = nil
|
134
140
|
@ssl_client_cert = nil
|
135
141
|
@ssl_client_key = nil
|
142
|
+
@params_encoder = nil
|
136
143
|
@debugging = false
|
137
144
|
@inject_format = false
|
138
145
|
@force_ending_format = false
|