pulp_gem_client 0.6.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +14 -8
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentGemApi.md +268 -66
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsGemApi.md +388 -183
- data/docs/GemGemContentResponse.md +34 -29
- data/docs/GemGemDistribution.md +22 -21
- data/docs/GemGemDistributionResponse.md +34 -29
- data/docs/GemGemPublication.md +10 -9
- data/docs/GemGemPublicationResponse.md +18 -15
- data/docs/GemGemRemote.md +54 -53
- data/docs/GemGemRemoteResponse.md +54 -51
- data/docs/GemGemRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/GemGemRepository.md +16 -15
- data/docs/GemGemRepositoryResponse.md +28 -25
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedgemGemContentResponseList.md +14 -13
- data/docs/PaginatedgemGemDistributionResponseList.md +14 -13
- data/docs/PaginatedgemGemPublicationResponseList.md +14 -13
- data/docs/PaginatedgemGemRemoteResponseList.md +14 -13
- data/docs/PaginatedgemGemRepositoryResponseList.md +14 -13
- data/docs/PatchedgemGemDistribution.md +22 -21
- data/docs/PatchedgemGemRemote.md +54 -53
- data/docs/PatchedgemGemRepository.md +16 -15
- data/docs/PolicyEnum.md +4 -5
- data/docs/PublicationsGemApi.md +271 -132
- data/docs/RemotesGemApi.md +392 -185
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesGemApi.md +449 -210
- data/docs/RepositoriesGemVersionsApi.md +155 -83
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositorySyncURL.md +10 -9
- data/docs/RepositoryVersionResponse.md +22 -19
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_gem_client/api/content_gem_api.rb +188 -25
- data/lib/pulp_gem_client/api/distributions_gem_api.rb +94 -58
- data/lib/pulp_gem_client/api/publications_gem_api.rb +81 -58
- data/lib/pulp_gem_client/api/remotes_gem_api.rb +109 -70
- data/lib/pulp_gem_client/api/repositories_gem_api.rb +116 -72
- data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +50 -37
- data/lib/pulp_gem_client/api_client.rb +137 -102
- data/lib/pulp_gem_client/api_error.rb +2 -1
- data/lib/pulp_gem_client/configuration.rb +162 -21
- data/lib/pulp_gem_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_gem_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_gem_client/models/gem_gem_content_response.rb +57 -25
- data/lib/pulp_gem_client/models/gem_gem_distribution.rb +34 -22
- data/lib/pulp_gem_client/models/gem_gem_distribution_response.rb +57 -25
- data/lib/pulp_gem_client/models/gem_gem_publication.rb +30 -22
- data/lib/pulp_gem_client/models/gem_gem_publication_response.rb +43 -25
- data/lib/pulp_gem_client/models/gem_gem_remote.rb +56 -22
- data/lib/pulp_gem_client/models/gem_gem_remote_response.rb +70 -26
- data/lib/pulp_gem_client/models/{gem_gem_remote_response_hidden_fields.rb → gem_gem_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_gem_client/models/gem_gem_repository.rb +32 -22
- data/lib/pulp_gem_client/models/gem_gem_repository_response.rb +45 -25
- data/lib/pulp_gem_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_gem_client/models/nested_role.rb +32 -22
- data/lib/pulp_gem_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_gem_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_gem_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/paginatedgem_gem_content_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/paginatedgem_gem_distribution_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/paginatedgem_gem_publication_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/paginatedgem_gem_remote_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/paginatedgem_gem_repository_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/patchedgem_gem_distribution.rb +40 -24
- data/lib/pulp_gem_client/models/patchedgem_gem_remote.rb +62 -24
- data/lib/pulp_gem_client/models/patchedgem_gem_repository.rb +35 -23
- data/lib/pulp_gem_client/models/policy_enum.rb +8 -4
- data/lib/pulp_gem_client/models/repair.rb +30 -22
- data/lib/pulp_gem_client/models/repository_add_remove_content.rb +31 -23
- data/lib/pulp_gem_client/models/repository_sync_url.rb +30 -22
- data/lib/pulp_gem_client/models/repository_version_response.rb +44 -26
- data/lib/pulp_gem_client/models/set_label.rb +34 -22
- data/lib/pulp_gem_client/models/set_label_response.rb +34 -22
- data/lib/pulp_gem_client/models/unset_label.rb +33 -23
- data/lib/pulp_gem_client/models/unset_label_response.rb +33 -23
- data/lib/pulp_gem_client/version.rb +2 -2
- data/lib/pulp_gem_client.rb +2 -3
- data/pulp_gem_client.gemspec +9 -6
- data/spec/api/content_gem_api_spec.rb +38 -9
- data/spec/api/distributions_gem_api_spec.rb +15 -14
- data/spec/api/publications_gem_api_spec.rb +22 -20
- data/spec/api/remotes_gem_api_spec.rb +22 -20
- data/spec/api/repositories_gem_api_spec.rb +19 -18
- data/spec/api/repositories_gem_versions_api_spec.rb +16 -14
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/gem_gem_content_response_spec.rb +30 -23
- data/spec/models/gem_gem_distribution_response_spec.rb +30 -23
- data/spec/models/gem_gem_distribution_spec.rb +14 -19
- data/spec/models/gem_gem_publication_response_spec.rb +17 -16
- data/spec/models/gem_gem_publication_spec.rb +8 -13
- data/spec/models/{gem_gem_remote_response_hidden_fields_spec.rb → gem_gem_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/gem_gem_remote_response_spec.rb +35 -34
- data/spec/models/gem_gem_remote_spec.rb +30 -35
- data/spec/models/gem_gem_repository_response_spec.rb +22 -21
- data/spec/models/gem_gem_repository_spec.rb +11 -16
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedgem_gem_content_response_list_spec.rb +10 -15
- data/spec/models/paginatedgem_gem_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedgem_gem_publication_response_list_spec.rb +10 -15
- data/spec/models/paginatedgem_gem_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedgem_gem_repository_response_list_spec.rb +10 -15
- data/spec/models/patchedgem_gem_distribution_spec.rb +14 -19
- data/spec/models/patchedgem_gem_remote_spec.rb +30 -35
- data/spec/models/patchedgem_gem_repository_spec.rb +11 -16
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_sync_url_spec.rb +8 -13
- data/spec/models/repository_version_response_spec.rb +19 -18
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +83 -63
- data/docs/GemGemContent.md +0 -21
- data/docs/GemGemRemoteResponseHiddenFields.md +0 -19
- data/lib/pulp_gem_client/models/gem_gem_content.rb +0 -228
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/gem_gem_content_spec.rb +0 -53
@@ -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
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -23,6 +23,7 @@ module PulpGemClient
|
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
26
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
26
27
|
# @option opts [String] :artifact Artifact file representing the physical content
|
27
28
|
# @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
|
28
29
|
# @return [AsyncOperationResponse]
|
@@ -35,6 +36,7 @@ module PulpGemClient
|
|
35
36
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
36
37
|
# @param [Hash] opts the optional parameters
|
37
38
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
39
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
38
40
|
# @option opts [String] :artifact Artifact file representing the physical content
|
39
41
|
# @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
|
40
42
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
@@ -51,26 +53,31 @@ module PulpGemClient
|
|
51
53
|
# header parameters
|
52
54
|
header_params = opts[:header_params] || {}
|
53
55
|
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
56
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
55
57
|
# HTTP header 'Content-Type'
|
56
|
-
|
58
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
59
|
+
if !content_type.nil?
|
60
|
+
header_params['Content-Type'] = content_type
|
61
|
+
end
|
57
62
|
|
58
63
|
# form parameters
|
59
64
|
form_params = opts[:form_params] || {}
|
60
65
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
66
|
+
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
61
67
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
62
68
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
63
69
|
|
64
70
|
# http body (model)
|
65
|
-
post_body = opts[:
|
71
|
+
post_body = opts[:debug_body]
|
66
72
|
|
67
73
|
# return_type
|
68
|
-
return_type = opts[:
|
74
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
69
75
|
|
70
76
|
# auth_names
|
71
|
-
auth_names = opts[:
|
77
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
72
78
|
|
73
79
|
new_options = opts.merge(
|
80
|
+
:operation => :"ContentGemApi.create",
|
74
81
|
:header_params => header_params,
|
75
82
|
:query_params => query_params,
|
76
83
|
:form_params => form_params,
|
@@ -93,15 +100,17 @@ module PulpGemClient
|
|
93
100
|
# @option opts [Integer] :limit Number of results to return per page.
|
94
101
|
# @option opts [String] :name Filter results where name matches value
|
95
102
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
96
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `platform` - Platform * `-platform` - Platform (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `prerelease` - Prerelease * `-prerelease` - Prerelease (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `required_ruby_version` - Required ruby version * `-required_ruby_version` - Required ruby version (descending) * `required_rubygems_version` - Required rubygems version * `-required_rubygems_version` - Required rubygems version (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
103
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `platform` - Platform * `-platform` - Platform (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `prerelease` - Prerelease * `-prerelease` - Prerelease (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `required_ruby_version` - Required ruby version * `-required_ruby_version` - Required ruby version (descending) * `required_rubygems_version` - Required rubygems version * `-required_rubygems_version` - Required rubygems version (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
97
104
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
98
105
|
# @option opts [Boolean] :prerelease Filter results where prerelease matches value
|
106
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
99
107
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
100
108
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
101
|
-
# @option opts [String] :
|
102
|
-
# @option opts [String] :
|
103
|
-
# @option opts [String] :
|
104
|
-
# @option opts [String] :
|
109
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
110
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
111
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
112
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
113
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
|
105
114
|
# @option opts [String] :version Filter results where version matches value
|
106
115
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
107
116
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
@@ -118,15 +127,17 @@ module PulpGemClient
|
|
118
127
|
# @option opts [Integer] :limit Number of results to return per page.
|
119
128
|
# @option opts [String] :name Filter results where name matches value
|
120
129
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
121
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `platform` - Platform * `-platform` - Platform (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `prerelease` - Prerelease * `-prerelease` - Prerelease (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `required_ruby_version` - Required ruby version * `-required_ruby_version` - Required ruby version (descending) * `required_rubygems_version` - Required rubygems version * `-required_rubygems_version` - Required rubygems version (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
130
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `platform` - Platform * `-platform` - Platform (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `prerelease` - Prerelease * `-prerelease` - Prerelease (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `required_ruby_version` - Required ruby version * `-required_ruby_version` - Required ruby version (descending) * `required_rubygems_version` - Required rubygems version * `-required_rubygems_version` - Required rubygems version (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
122
131
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
123
132
|
# @option opts [Boolean] :prerelease Filter results where prerelease matches value
|
133
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
124
134
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
125
135
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
126
|
-
# @option opts [String] :
|
127
|
-
# @option opts [String] :
|
128
|
-
# @option opts [String] :
|
129
|
-
# @option opts [String] :
|
136
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
137
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
138
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
139
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
140
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
|
130
141
|
# @option opts [String] :version Filter results where version matches value
|
131
142
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
132
143
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
@@ -135,7 +146,7 @@ module PulpGemClient
|
|
135
146
|
if @api_client.config.debugging
|
136
147
|
@api_client.config.logger.debug 'Calling API: ContentGemApi.list ...'
|
137
148
|
end
|
138
|
-
allowable_values = ["-checksum", "-dependencies", "-name", "-pk", "-platform", "-prerelease", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-required_ruby_version", "-required_rubygems_version", "-timestamp_of_interest", "-upstream_id", "-version", "checksum", "dependencies", "name", "pk", "platform", "prerelease", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "required_ruby_version", "required_rubygems_version", "timestamp_of_interest", "upstream_id", "version"]
|
149
|
+
allowable_values = ["-checksum", "-dependencies", "-name", "-pk", "-platform", "-prerelease", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-required_ruby_version", "-required_rubygems_version", "-timestamp_of_interest", "-upstream_id", "-version", "checksum", "dependencies", "name", "pk", "platform", "prerelease", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "required_ruby_version", "required_rubygems_version", "timestamp_of_interest", "upstream_id", "version"]
|
139
150
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
140
151
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
141
152
|
end
|
@@ -151,8 +162,10 @@ module PulpGemClient
|
|
151
162
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
152
163
|
query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
|
153
164
|
query_params[:'prerelease'] = opts[:'prerelease'] if !opts[:'prerelease'].nil?
|
165
|
+
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
154
166
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
155
167
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
168
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
156
169
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
157
170
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
158
171
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -164,21 +177,22 @@ module PulpGemClient
|
|
164
177
|
# header parameters
|
165
178
|
header_params = opts[:header_params] || {}
|
166
179
|
# HTTP header 'Accept' (if needed)
|
167
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
180
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
168
181
|
|
169
182
|
# form parameters
|
170
183
|
form_params = opts[:form_params] || {}
|
171
184
|
|
172
185
|
# http body (model)
|
173
|
-
post_body = opts[:
|
186
|
+
post_body = opts[:debug_body]
|
174
187
|
|
175
188
|
# return_type
|
176
|
-
return_type = opts[:
|
189
|
+
return_type = opts[:debug_return_type] || 'PaginatedgemGemContentResponseList'
|
177
190
|
|
178
191
|
# auth_names
|
179
|
-
auth_names = opts[:
|
192
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
180
193
|
|
181
194
|
new_options = opts.merge(
|
195
|
+
:operation => :"ContentGemApi.list",
|
182
196
|
:header_params => header_params,
|
183
197
|
:query_params => query_params,
|
184
198
|
:form_params => form_params,
|
@@ -232,21 +246,22 @@ module PulpGemClient
|
|
232
246
|
# header parameters
|
233
247
|
header_params = opts[:header_params] || {}
|
234
248
|
# HTTP header 'Accept' (if needed)
|
235
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
249
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
236
250
|
|
237
251
|
# form parameters
|
238
252
|
form_params = opts[:form_params] || {}
|
239
253
|
|
240
254
|
# http body (model)
|
241
|
-
post_body = opts[:
|
255
|
+
post_body = opts[:debug_body]
|
242
256
|
|
243
257
|
# return_type
|
244
|
-
return_type = opts[:
|
258
|
+
return_type = opts[:debug_return_type] || 'GemGemContentResponse'
|
245
259
|
|
246
260
|
# auth_names
|
247
|
-
auth_names = opts[:
|
261
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
248
262
|
|
249
263
|
new_options = opts.merge(
|
264
|
+
:operation => :"ContentGemApi.read",
|
250
265
|
:header_params => header_params,
|
251
266
|
:query_params => query_params,
|
252
267
|
:form_params => form_params,
|
@@ -261,5 +276,153 @@ module PulpGemClient
|
|
261
276
|
end
|
262
277
|
return data, status_code, headers
|
263
278
|
end
|
279
|
+
|
280
|
+
# Set a label
|
281
|
+
# Set a single pulp_label on the object to a specific value or null.
|
282
|
+
# @param gem_gem_content_href [String]
|
283
|
+
# @param set_label [SetLabel]
|
284
|
+
# @param [Hash] opts the optional parameters
|
285
|
+
# @return [SetLabelResponse]
|
286
|
+
def set_label(gem_gem_content_href, set_label, opts = {})
|
287
|
+
data, _status_code, _headers = set_label_with_http_info(gem_gem_content_href, set_label, opts)
|
288
|
+
data
|
289
|
+
end
|
290
|
+
|
291
|
+
# Set a label
|
292
|
+
# Set a single pulp_label on the object to a specific value or null.
|
293
|
+
# @param gem_gem_content_href [String]
|
294
|
+
# @param set_label [SetLabel]
|
295
|
+
# @param [Hash] opts the optional parameters
|
296
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
297
|
+
def set_label_with_http_info(gem_gem_content_href, set_label, opts = {})
|
298
|
+
if @api_client.config.debugging
|
299
|
+
@api_client.config.logger.debug 'Calling API: ContentGemApi.set_label ...'
|
300
|
+
end
|
301
|
+
# verify the required parameter 'gem_gem_content_href' is set
|
302
|
+
if @api_client.config.client_side_validation && gem_gem_content_href.nil?
|
303
|
+
fail ArgumentError, "Missing the required parameter 'gem_gem_content_href' when calling ContentGemApi.set_label"
|
304
|
+
end
|
305
|
+
# verify the required parameter 'set_label' is set
|
306
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
307
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentGemApi.set_label"
|
308
|
+
end
|
309
|
+
# resource path
|
310
|
+
local_var_path = '{gem_gem_content_href}set_label/'.sub('{' + 'gem_gem_content_href' + '}', CGI.escape(gem_gem_content_href.to_s).gsub('%2F', '/'))
|
311
|
+
|
312
|
+
# query parameters
|
313
|
+
query_params = opts[:query_params] || {}
|
314
|
+
|
315
|
+
# header parameters
|
316
|
+
header_params = opts[:header_params] || {}
|
317
|
+
# HTTP header 'Accept' (if needed)
|
318
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
319
|
+
# HTTP header 'Content-Type'
|
320
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
321
|
+
if !content_type.nil?
|
322
|
+
header_params['Content-Type'] = content_type
|
323
|
+
end
|
324
|
+
|
325
|
+
# form parameters
|
326
|
+
form_params = opts[:form_params] || {}
|
327
|
+
|
328
|
+
# http body (model)
|
329
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
330
|
+
|
331
|
+
# return_type
|
332
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
333
|
+
|
334
|
+
# auth_names
|
335
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
336
|
+
|
337
|
+
new_options = opts.merge(
|
338
|
+
:operation => :"ContentGemApi.set_label",
|
339
|
+
:header_params => header_params,
|
340
|
+
:query_params => query_params,
|
341
|
+
:form_params => form_params,
|
342
|
+
:body => post_body,
|
343
|
+
:auth_names => auth_names,
|
344
|
+
:return_type => return_type
|
345
|
+
)
|
346
|
+
|
347
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
348
|
+
if @api_client.config.debugging
|
349
|
+
@api_client.config.logger.debug "API called: ContentGemApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
350
|
+
end
|
351
|
+
return data, status_code, headers
|
352
|
+
end
|
353
|
+
|
354
|
+
# Unset a label
|
355
|
+
# Unset a single pulp_label on the object.
|
356
|
+
# @param gem_gem_content_href [String]
|
357
|
+
# @param unset_label [UnsetLabel]
|
358
|
+
# @param [Hash] opts the optional parameters
|
359
|
+
# @return [UnsetLabelResponse]
|
360
|
+
def unset_label(gem_gem_content_href, unset_label, opts = {})
|
361
|
+
data, _status_code, _headers = unset_label_with_http_info(gem_gem_content_href, unset_label, opts)
|
362
|
+
data
|
363
|
+
end
|
364
|
+
|
365
|
+
# Unset a label
|
366
|
+
# Unset a single pulp_label on the object.
|
367
|
+
# @param gem_gem_content_href [String]
|
368
|
+
# @param unset_label [UnsetLabel]
|
369
|
+
# @param [Hash] opts the optional parameters
|
370
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
371
|
+
def unset_label_with_http_info(gem_gem_content_href, unset_label, opts = {})
|
372
|
+
if @api_client.config.debugging
|
373
|
+
@api_client.config.logger.debug 'Calling API: ContentGemApi.unset_label ...'
|
374
|
+
end
|
375
|
+
# verify the required parameter 'gem_gem_content_href' is set
|
376
|
+
if @api_client.config.client_side_validation && gem_gem_content_href.nil?
|
377
|
+
fail ArgumentError, "Missing the required parameter 'gem_gem_content_href' when calling ContentGemApi.unset_label"
|
378
|
+
end
|
379
|
+
# verify the required parameter 'unset_label' is set
|
380
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
381
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentGemApi.unset_label"
|
382
|
+
end
|
383
|
+
# resource path
|
384
|
+
local_var_path = '{gem_gem_content_href}unset_label/'.sub('{' + 'gem_gem_content_href' + '}', CGI.escape(gem_gem_content_href.to_s).gsub('%2F', '/'))
|
385
|
+
|
386
|
+
# query parameters
|
387
|
+
query_params = opts[:query_params] || {}
|
388
|
+
|
389
|
+
# header parameters
|
390
|
+
header_params = opts[:header_params] || {}
|
391
|
+
# HTTP header 'Accept' (if needed)
|
392
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
393
|
+
# HTTP header 'Content-Type'
|
394
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
395
|
+
if !content_type.nil?
|
396
|
+
header_params['Content-Type'] = content_type
|
397
|
+
end
|
398
|
+
|
399
|
+
# form parameters
|
400
|
+
form_params = opts[:form_params] || {}
|
401
|
+
|
402
|
+
# http body (model)
|
403
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
404
|
+
|
405
|
+
# return_type
|
406
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
407
|
+
|
408
|
+
# auth_names
|
409
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
410
|
+
|
411
|
+
new_options = opts.merge(
|
412
|
+
:operation => :"ContentGemApi.unset_label",
|
413
|
+
:header_params => header_params,
|
414
|
+
:query_params => query_params,
|
415
|
+
:form_params => form_params,
|
416
|
+
:body => post_body,
|
417
|
+
:auth_names => auth_names,
|
418
|
+
:return_type => return_type
|
419
|
+
)
|
420
|
+
|
421
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
422
|
+
if @api_client.config.debugging
|
423
|
+
@api_client.config.logger.debug "API called: ContentGemApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
424
|
+
end
|
425
|
+
return data, status_code, headers
|
426
|
+
end
|
264
427
|
end
|
265
428
|
end
|