pulp_ansible_client 0.7.1 → 0.7.5
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 +6 -6
- data/docs/AnsibleCollectionRemote.md +7 -1
- data/docs/AnsibleCollectionRemoteResponse.md +3 -7
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleCollectionsApi.md +4 -4
- data/docs/AnsibleRoleRemote.md +7 -1
- data/docs/AnsibleRoleRemoteResponse.md +3 -7
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ContentCollectionVersionsApi.md +18 -18
- data/docs/ContentRolesApi.md +12 -12
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +3 -3
- data/docs/DistributionsAnsibleApi.md +20 -20
- data/docs/PatchedansibleCollectionRemote.md +7 -1
- data/docs/PatchedansibleRoleRemote.md +7 -1
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +6 -6
- data/docs/PulpAnsibleGalaxyApiV3AllApi.md +6 -24
- data/docs/PulpAnsibleGalaxyApiV3VersionsApi.md +18 -18
- data/docs/RemotesCollectionApi.md +24 -24
- data/docs/RemotesRoleApi.md +24 -24
- data/docs/RepositoriesAnsibleApi.md +12 -12
- data/docs/RepositoriesAnsibleVersionsApi.md +28 -28
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +5 -5
- 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 +19 -19
- data/lib/pulp_ansible_client/api/content_roles_api.rb +13 -13
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +23 -23
- 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 +7 -7
- 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 +7 -34
- 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 +19 -19
- 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 +27 -27
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +27 -27
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +14 -14
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +31 -31
- 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 +37 -3
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +15 -36
- data/lib/pulp_ansible_client/models/ansible_collection_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +16 -16
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +27 -27
- 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 +37 -3
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +15 -36
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +12 -12
- 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 +13 -7
- data/lib/pulp_ansible_client/models/content_summary_response.rb +13 -7
- 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 +37 -3
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +37 -3
- 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 +2 -2
- data/spec/api/ansible_collections_api_spec.rb +3 -3
- 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 +10 -10
- data/spec/api/content_roles_api_spec.rb +7 -7
- data/spec/api/distributions_ansible_api_spec.rb +11 -11
- 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 +4 -4
- 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 +4 -13
- 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 +10 -10
- 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 +13 -13
- data/spec/api/remotes_role_api_spec.rb +13 -13
- data/spec/api/repositories_ansible_api_spec.rb +7 -7
- data/spec/api/repositories_ansible_versions_api_spec.rb +15 -15
- 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 +7 -19
- data/spec/models/ansible_collection_remote_spec.rb +19 -1
- data/spec/models/ansible_collection_response_spec.rb +1 -1
- data/spec/models/ansible_collection_version_response_spec.rb +4 -4
- 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 +7 -19
- data/spec/models/ansible_role_remote_spec.rb +19 -1
- data/spec/models/ansible_role_response_spec.rb +4 -4
- 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 +19 -1
- data/spec/models/patchedansible_role_remote_spec.rb +19 -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 +74 -68
@@ -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
|
|
@@ -85,23 +85,23 @@ module PulpAnsibleClient
|
|
85
85
|
# AnsibleRepositoryVersion represents a single file repository version.
|
86
86
|
# @param ansible_ansible_repository_href [String]
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @option opts [String] :content
|
89
|
-
# @option opts [String] :content__in
|
88
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
89
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
90
90
|
# @option opts [Integer] :limit Number of results to return per page.
|
91
|
-
# @option opts [
|
92
|
-
# @option opts [
|
93
|
-
# @option opts [
|
94
|
-
# @option opts [
|
95
|
-
# @option opts [
|
96
|
-
# @option opts [
|
91
|
+
# @option opts [Integer] :number
|
92
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
93
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
94
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
95
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
96
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
97
97
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
98
98
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
99
|
-
# @option opts [
|
100
|
-
# @option opts [
|
101
|
-
# @option opts [
|
102
|
-
# @option opts [
|
103
|
-
# @option opts [
|
104
|
-
# @option opts [
|
99
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
100
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
101
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
102
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
103
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
105
|
# @option opts [String] :fields A list of fields to include in the response.
|
106
106
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
107
107
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -114,23 +114,23 @@ module PulpAnsibleClient
|
|
114
114
|
# AnsibleRepositoryVersion represents a single file repository version.
|
115
115
|
# @param ansible_ansible_repository_href [String]
|
116
116
|
# @param [Hash] opts the optional parameters
|
117
|
-
# @option opts [String] :content
|
118
|
-
# @option opts [String] :content__in
|
117
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
118
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
119
119
|
# @option opts [Integer] :limit Number of results to return per page.
|
120
|
-
# @option opts [
|
121
|
-
# @option opts [
|
122
|
-
# @option opts [
|
123
|
-
# @option opts [
|
124
|
-
# @option opts [
|
125
|
-
# @option opts [
|
120
|
+
# @option opts [Integer] :number
|
121
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
122
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
123
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
124
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
125
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
126
126
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
127
127
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
128
|
-
# @option opts [
|
129
|
-
# @option opts [
|
130
|
-
# @option opts [
|
131
|
-
# @option opts [
|
132
|
-
# @option opts [
|
133
|
-
# @option opts [
|
128
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
129
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
130
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
131
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
132
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
133
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
134
134
|
# @option opts [String] :fields A list of fields to include in the response.
|
135
135
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
136
136
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -155,7 +155,7 @@ module PulpAnsibleClient
|
|
155
155
|
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
156
156
|
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
157
157
|
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
158
|
-
query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
|
158
|
+
query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
|
159
159
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
160
160
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
161
161
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
@@ -163,7 +163,7 @@ module PulpAnsibleClient
|
|
163
163
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
164
164
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
165
165
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
166
|
-
query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
|
166
|
+
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
167
167
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
168
168
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
169
169
|
|
@@ -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
|
@@ -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
|
|
@@ -33,9 +33,15 @@ module PulpAnsibleClient
|
|
33
33
|
# If True, TLS peer validation must be performed.
|
34
34
|
attr_accessor :tls_validation
|
35
35
|
|
36
|
-
# The proxy URL. Format: scheme://
|
36
|
+
# The proxy URL. Format: scheme://host:port
|
37
37
|
attr_accessor :proxy_url
|
38
38
|
|
39
|
+
# The username to authenticte to the proxy.
|
40
|
+
attr_accessor :proxy_username
|
41
|
+
|
42
|
+
# The password to authenticte to the proxy.
|
43
|
+
attr_accessor :proxy_password
|
44
|
+
|
39
45
|
# The username to be used for authentication when syncing.
|
40
46
|
attr_accessor :username
|
41
47
|
|
@@ -62,6 +68,9 @@ module PulpAnsibleClient
|
|
62
68
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
63
69
|
attr_accessor :sock_read_timeout
|
64
70
|
|
71
|
+
# Headers for aiohttp.Clientsession
|
72
|
+
attr_accessor :headers
|
73
|
+
|
65
74
|
# Limits total download rate in requests per second
|
66
75
|
attr_accessor :rate_limit
|
67
76
|
|
@@ -84,6 +93,8 @@ module PulpAnsibleClient
|
|
84
93
|
:'client_key' => :'client_key',
|
85
94
|
:'tls_validation' => :'tls_validation',
|
86
95
|
:'proxy_url' => :'proxy_url',
|
96
|
+
:'proxy_username' => :'proxy_username',
|
97
|
+
:'proxy_password' => :'proxy_password',
|
87
98
|
:'username' => :'username',
|
88
99
|
:'password' => :'password',
|
89
100
|
:'pulp_labels' => :'pulp_labels',
|
@@ -93,6 +104,7 @@ module PulpAnsibleClient
|
|
93
104
|
:'connect_timeout' => :'connect_timeout',
|
94
105
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
95
106
|
:'sock_read_timeout' => :'sock_read_timeout',
|
107
|
+
:'headers' => :'headers',
|
96
108
|
:'rate_limit' => :'rate_limit',
|
97
109
|
:'requirements_file' => :'requirements_file',
|
98
110
|
:'auth_url' => :'auth_url',
|
@@ -110,6 +122,8 @@ module PulpAnsibleClient
|
|
110
122
|
:'client_key' => :'String',
|
111
123
|
:'tls_validation' => :'Boolean',
|
112
124
|
:'proxy_url' => :'String',
|
125
|
+
:'proxy_username' => :'String',
|
126
|
+
:'proxy_password' => :'String',
|
113
127
|
:'username' => :'String',
|
114
128
|
:'password' => :'String',
|
115
129
|
:'pulp_labels' => :'Object',
|
@@ -119,6 +133,7 @@ module PulpAnsibleClient
|
|
119
133
|
:'connect_timeout' => :'Float',
|
120
134
|
:'sock_connect_timeout' => :'Float',
|
121
135
|
:'sock_read_timeout' => :'Float',
|
136
|
+
:'headers' => :'Array<Object>',
|
122
137
|
:'rate_limit' => :'Integer',
|
123
138
|
:'requirements_file' => :'String',
|
124
139
|
:'auth_url' => :'String',
|
@@ -133,6 +148,8 @@ module PulpAnsibleClient
|
|
133
148
|
:'client_cert',
|
134
149
|
:'client_key',
|
135
150
|
:'proxy_url',
|
151
|
+
:'proxy_username',
|
152
|
+
:'proxy_password',
|
136
153
|
:'username',
|
137
154
|
:'password',
|
138
155
|
:'total_timeout',
|
@@ -189,6 +206,14 @@ module PulpAnsibleClient
|
|
189
206
|
self.proxy_url = attributes[:'proxy_url']
|
190
207
|
end
|
191
208
|
|
209
|
+
if attributes.key?(:'proxy_username')
|
210
|
+
self.proxy_username = attributes[:'proxy_username']
|
211
|
+
end
|
212
|
+
|
213
|
+
if attributes.key?(:'proxy_password')
|
214
|
+
self.proxy_password = attributes[:'proxy_password']
|
215
|
+
end
|
216
|
+
|
192
217
|
if attributes.key?(:'username')
|
193
218
|
self.username = attributes[:'username']
|
194
219
|
end
|
@@ -225,6 +250,12 @@ module PulpAnsibleClient
|
|
225
250
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
226
251
|
end
|
227
252
|
|
253
|
+
if attributes.key?(:'headers')
|
254
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
255
|
+
self.headers = value
|
256
|
+
end
|
257
|
+
end
|
258
|
+
|
228
259
|
if attributes.key?(:'rate_limit')
|
229
260
|
self.rate_limit = attributes[:'rate_limit']
|
230
261
|
end
|
@@ -382,6 +413,8 @@ module PulpAnsibleClient
|
|
382
413
|
client_key == o.client_key &&
|
383
414
|
tls_validation == o.tls_validation &&
|
384
415
|
proxy_url == o.proxy_url &&
|
416
|
+
proxy_username == o.proxy_username &&
|
417
|
+
proxy_password == o.proxy_password &&
|
385
418
|
username == o.username &&
|
386
419
|
password == o.password &&
|
387
420
|
pulp_labels == o.pulp_labels &&
|
@@ -391,6 +424,7 @@ module PulpAnsibleClient
|
|
391
424
|
connect_timeout == o.connect_timeout &&
|
392
425
|
sock_connect_timeout == o.sock_connect_timeout &&
|
393
426
|
sock_read_timeout == o.sock_read_timeout &&
|
427
|
+
headers == o.headers &&
|
394
428
|
rate_limit == o.rate_limit &&
|
395
429
|
requirements_file == o.requirements_file &&
|
396
430
|
auth_url == o.auth_url &&
|
@@ -406,7 +440,7 @@ module PulpAnsibleClient
|
|
406
440
|
# Calculates hash code according to all attributes.
|
407
441
|
# @return [Integer] Hash code
|
408
442
|
def hash
|
409
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, requirements_file, auth_url, token].hash
|
443
|
+
[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].hash
|
410
444
|
end
|
411
445
|
|
412
446
|
# 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.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,21 +32,12 @@ module PulpAnsibleClient
|
|
32
32
|
# A PEM encoded client certificate used for authentication.
|
33
33
|
attr_accessor :client_cert
|
34
34
|
|
35
|
-
# A PEM encoded private key used for authentication.
|
36
|
-
attr_accessor :client_key
|
37
|
-
|
38
35
|
# If True, TLS peer validation must be performed.
|
39
36
|
attr_accessor :tls_validation
|
40
37
|
|
41
|
-
# The proxy URL. Format: scheme://
|
38
|
+
# The proxy URL. Format: scheme://host:port
|
42
39
|
attr_accessor :proxy_url
|
43
40
|
|
44
|
-
# The username to be used for authentication when syncing.
|
45
|
-
attr_accessor :username
|
46
|
-
|
47
|
-
# The password to be used for authentication when syncing.
|
48
|
-
attr_accessor :password
|
49
|
-
|
50
41
|
attr_accessor :pulp_labels
|
51
42
|
|
52
43
|
# Timestamp of the most recent update of the remote.
|
@@ -70,6 +61,9 @@ module PulpAnsibleClient
|
|
70
61
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
71
62
|
attr_accessor :sock_read_timeout
|
72
63
|
|
64
|
+
# Headers for aiohttp.Clientsession
|
65
|
+
attr_accessor :headers
|
66
|
+
|
73
67
|
# Limits total download rate in requests per second
|
74
68
|
attr_accessor :rate_limit
|
75
69
|
|
@@ -91,11 +85,8 @@ module PulpAnsibleClient
|
|
91
85
|
:'url' => :'url',
|
92
86
|
:'ca_cert' => :'ca_cert',
|
93
87
|
:'client_cert' => :'client_cert',
|
94
|
-
:'client_key' => :'client_key',
|
95
88
|
:'tls_validation' => :'tls_validation',
|
96
89
|
:'proxy_url' => :'proxy_url',
|
97
|
-
:'username' => :'username',
|
98
|
-
:'password' => :'password',
|
99
90
|
:'pulp_labels' => :'pulp_labels',
|
100
91
|
:'pulp_last_updated' => :'pulp_last_updated',
|
101
92
|
:'download_concurrency' => :'download_concurrency',
|
@@ -104,6 +95,7 @@ module PulpAnsibleClient
|
|
104
95
|
:'connect_timeout' => :'connect_timeout',
|
105
96
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
106
97
|
:'sock_read_timeout' => :'sock_read_timeout',
|
98
|
+
:'headers' => :'headers',
|
107
99
|
:'rate_limit' => :'rate_limit',
|
108
100
|
:'requirements_file' => :'requirements_file',
|
109
101
|
:'auth_url' => :'auth_url',
|
@@ -120,11 +112,8 @@ module PulpAnsibleClient
|
|
120
112
|
:'url' => :'String',
|
121
113
|
:'ca_cert' => :'String',
|
122
114
|
:'client_cert' => :'String',
|
123
|
-
:'client_key' => :'String',
|
124
115
|
:'tls_validation' => :'Boolean',
|
125
116
|
:'proxy_url' => :'String',
|
126
|
-
:'username' => :'String',
|
127
|
-
:'password' => :'String',
|
128
117
|
:'pulp_labels' => :'Object',
|
129
118
|
:'pulp_last_updated' => :'DateTime',
|
130
119
|
:'download_concurrency' => :'Integer',
|
@@ -133,6 +122,7 @@ module PulpAnsibleClient
|
|
133
122
|
:'connect_timeout' => :'Float',
|
134
123
|
:'sock_connect_timeout' => :'Float',
|
135
124
|
:'sock_read_timeout' => :'Float',
|
125
|
+
:'headers' => :'Array<Object>',
|
136
126
|
:'rate_limit' => :'Integer',
|
137
127
|
:'requirements_file' => :'String',
|
138
128
|
:'auth_url' => :'String',
|
@@ -145,10 +135,7 @@ module PulpAnsibleClient
|
|
145
135
|
Set.new([
|
146
136
|
:'ca_cert',
|
147
137
|
:'client_cert',
|
148
|
-
:'client_key',
|
149
138
|
:'proxy_url',
|
150
|
-
:'username',
|
151
|
-
:'password',
|
152
139
|
:'total_timeout',
|
153
140
|
:'connect_timeout',
|
154
141
|
:'sock_connect_timeout',
|
@@ -199,10 +186,6 @@ module PulpAnsibleClient
|
|
199
186
|
self.client_cert = attributes[:'client_cert']
|
200
187
|
end
|
201
188
|
|
202
|
-
if attributes.key?(:'client_key')
|
203
|
-
self.client_key = attributes[:'client_key']
|
204
|
-
end
|
205
|
-
|
206
189
|
if attributes.key?(:'tls_validation')
|
207
190
|
self.tls_validation = attributes[:'tls_validation']
|
208
191
|
end
|
@@ -211,14 +194,6 @@ module PulpAnsibleClient
|
|
211
194
|
self.proxy_url = attributes[:'proxy_url']
|
212
195
|
end
|
213
196
|
|
214
|
-
if attributes.key?(:'username')
|
215
|
-
self.username = attributes[:'username']
|
216
|
-
end
|
217
|
-
|
218
|
-
if attributes.key?(:'password')
|
219
|
-
self.password = attributes[:'password']
|
220
|
-
end
|
221
|
-
|
222
197
|
if attributes.key?(:'pulp_labels')
|
223
198
|
self.pulp_labels = attributes[:'pulp_labels']
|
224
199
|
end
|
@@ -251,6 +226,12 @@ module PulpAnsibleClient
|
|
251
226
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
252
227
|
end
|
253
228
|
|
229
|
+
if attributes.key?(:'headers')
|
230
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
231
|
+
self.headers = value
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
254
235
|
if attributes.key?(:'rate_limit')
|
255
236
|
self.rate_limit = attributes[:'rate_limit']
|
256
237
|
end
|
@@ -407,11 +388,8 @@ module PulpAnsibleClient
|
|
407
388
|
url == o.url &&
|
408
389
|
ca_cert == o.ca_cert &&
|
409
390
|
client_cert == o.client_cert &&
|
410
|
-
client_key == o.client_key &&
|
411
391
|
tls_validation == o.tls_validation &&
|
412
392
|
proxy_url == o.proxy_url &&
|
413
|
-
username == o.username &&
|
414
|
-
password == o.password &&
|
415
393
|
pulp_labels == o.pulp_labels &&
|
416
394
|
pulp_last_updated == o.pulp_last_updated &&
|
417
395
|
download_concurrency == o.download_concurrency &&
|
@@ -420,6 +398,7 @@ module PulpAnsibleClient
|
|
420
398
|
connect_timeout == o.connect_timeout &&
|
421
399
|
sock_connect_timeout == o.sock_connect_timeout &&
|
422
400
|
sock_read_timeout == o.sock_read_timeout &&
|
401
|
+
headers == o.headers &&
|
423
402
|
rate_limit == o.rate_limit &&
|
424
403
|
requirements_file == o.requirements_file &&
|
425
404
|
auth_url == o.auth_url &&
|
@@ -435,7 +414,7 @@ module PulpAnsibleClient
|
|
435
414
|
# Calculates hash code according to all attributes.
|
436
415
|
# @return [Integer] Hash code
|
437
416
|
def hash
|
438
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert,
|
417
|
+
[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].hash
|
439
418
|
end
|
440
419
|
|
441
420
|
# 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.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -290,16 +290,16 @@ module PulpAnsibleClient
|
|
290
290
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
291
291
|
end
|
292
292
|
|
293
|
-
if @name.to_s.length >
|
294
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to
|
293
|
+
if @name.to_s.length > 64
|
294
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 64.')
|
295
295
|
end
|
296
296
|
|
297
297
|
if @namespace.nil?
|
298
298
|
invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
|
299
299
|
end
|
300
300
|
|
301
|
-
if @namespace.to_s.length >
|
302
|
-
invalid_properties.push('invalid value for "namespace", the character length must be smaller than or equal to
|
301
|
+
if @namespace.to_s.length > 64
|
302
|
+
invalid_properties.push('invalid value for "namespace", the character length must be smaller than or equal to 64.')
|
303
303
|
end
|
304
304
|
|
305
305
|
if @repository.nil?
|
@@ -314,8 +314,8 @@ module PulpAnsibleClient
|
|
314
314
|
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
315
315
|
end
|
316
316
|
|
317
|
-
if @version.to_s.length >
|
318
|
-
invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to
|
317
|
+
if @version.to_s.length > 128
|
318
|
+
invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
|
319
319
|
end
|
320
320
|
|
321
321
|
if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
|
@@ -345,13 +345,13 @@ module PulpAnsibleClient
|
|
345
345
|
return false if @issues.to_s.length > 2000
|
346
346
|
return false if @license.nil?
|
347
347
|
return false if @name.nil?
|
348
|
-
return false if @name.to_s.length >
|
348
|
+
return false if @name.to_s.length > 64
|
349
349
|
return false if @namespace.nil?
|
350
|
-
return false if @namespace.to_s.length >
|
350
|
+
return false if @namespace.to_s.length > 64
|
351
351
|
return false if @repository.nil?
|
352
352
|
return false if @repository.to_s.length > 2000
|
353
353
|
return false if @version.nil?
|
354
|
-
return false if @version.to_s.length >
|
354
|
+
return false if @version.to_s.length > 128
|
355
355
|
return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
|
356
356
|
true
|
357
357
|
end
|
@@ -405,8 +405,8 @@ module PulpAnsibleClient
|
|
405
405
|
fail ArgumentError, 'name cannot be nil'
|
406
406
|
end
|
407
407
|
|
408
|
-
if name.to_s.length >
|
409
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to
|
408
|
+
if name.to_s.length > 64
|
409
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 64.'
|
410
410
|
end
|
411
411
|
|
412
412
|
@name = name
|
@@ -419,8 +419,8 @@ module PulpAnsibleClient
|
|
419
419
|
fail ArgumentError, 'namespace cannot be nil'
|
420
420
|
end
|
421
421
|
|
422
|
-
if namespace.to_s.length >
|
423
|
-
fail ArgumentError, 'invalid value for "namespace", the character length must be smaller than or equal to
|
422
|
+
if namespace.to_s.length > 64
|
423
|
+
fail ArgumentError, 'invalid value for "namespace", the character length must be smaller than or equal to 64.'
|
424
424
|
end
|
425
425
|
|
426
426
|
@namespace = namespace
|
@@ -447,8 +447,8 @@ module PulpAnsibleClient
|
|
447
447
|
fail ArgumentError, 'version cannot be nil'
|
448
448
|
end
|
449
449
|
|
450
|
-
if version.to_s.length >
|
451
|
-
fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to
|
450
|
+
if version.to_s.length > 128
|
451
|
+
fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 128.'
|
452
452
|
end
|
453
453
|
|
454
454
|
@version = version
|