pulp_npm_client 0.1.0a4 → 0.1.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 +24 -10
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentPackagesApi.md +126 -64
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsNpmApi.md +362 -93
- data/docs/NpmNpmDistribution.md +18 -15
- data/docs/NpmNpmDistributionResponse.md +30 -21
- data/docs/NpmNpmRemote.md +48 -47
- data/docs/NpmNpmRemoteResponse.md +48 -43
- data/docs/NpmNpmRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/NpmNpmRepository.md +16 -15
- data/docs/NpmNpmRepositoryResponse.md +28 -23
- data/docs/NpmPackageResponse.md +22 -17
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatednpmNpmDistributionResponseList.md +14 -13
- data/docs/PaginatednpmNpmRemoteResponseList.md +14 -13
- data/docs/PaginatednpmNpmRepositoryResponseList.md +14 -13
- data/docs/PaginatednpmPackageResponseList.md +14 -13
- data/docs/PatchednpmNpmDistribution.md +18 -15
- data/docs/PatchednpmNpmRemote.md +48 -47
- data/docs/PatchednpmNpmRepository.md +16 -15
- data/docs/PolicyEnum.md +4 -5
- data/docs/RemotesNpmApi.md +364 -99
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesNpmApi.md +429 -110
- data/docs/RepositoriesNpmVersionsApi.md +156 -80
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositorySyncURL.md +10 -9
- data/docs/RepositoryVersionResponse.md +22 -17
- data/docs/SetLabel.md +20 -0
- data/docs/SetLabelResponse.md +20 -0
- data/docs/UnsetLabel.md +18 -0
- data/docs/UnsetLabelResponse.md +20 -0
- data/lib/pulp_npm_client/api/content_packages_api.rb +72 -44
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +243 -47
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +247 -57
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +283 -55
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +71 -52
- data/lib/pulp_npm_client/api_client.rb +137 -102
- data/lib/pulp_npm_client/api_error.rb +2 -1
- data/lib/pulp_npm_client/configuration.rb +163 -22
- data/lib/pulp_npm_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_npm_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_npm_client/models/npm_npm_distribution.rb +51 -25
- data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +83 -27
- data/lib/pulp_npm_client/models/npm_npm_remote.rb +61 -25
- data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +99 -41
- data/lib/pulp_npm_client/models/npm_npm_remote_response_hidden_fields_inner.rb +237 -0
- data/lib/pulp_npm_client/models/npm_npm_repository.rb +37 -25
- data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +59 -27
- data/lib/pulp_npm_client/models/npm_package_response.rb +58 -24
- data/lib/pulp_npm_client/models/paginated_repository_version_response_list.rb +44 -22
- data/lib/pulp_npm_client/models/paginatednpm_npm_distribution_response_list.rb +44 -22
- data/lib/pulp_npm_client/models/paginatednpm_npm_remote_response_list.rb +44 -22
- data/lib/pulp_npm_client/models/paginatednpm_npm_repository_response_list.rb +44 -22
- data/lib/pulp_npm_client/models/paginatednpm_package_response_list.rb +44 -22
- data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +57 -27
- data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +67 -27
- data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +40 -26
- data/lib/pulp_npm_client/models/policy_enum.rb +8 -4
- data/lib/pulp_npm_client/models/repair.rb +30 -22
- data/lib/pulp_npm_client/models/repository_add_remove_content.rb +33 -25
- data/lib/pulp_npm_client/models/repository_sync_url.rb +30 -22
- data/lib/pulp_npm_client/models/repository_version_response.rb +53 -25
- data/lib/pulp_npm_client/models/set_label.rb +264 -0
- data/lib/pulp_npm_client/models/set_label_response.rb +255 -0
- data/lib/pulp_npm_client/models/unset_label.rb +252 -0
- data/lib/pulp_npm_client/models/unset_label_response.rb +252 -0
- data/lib/pulp_npm_client/version.rb +2 -2
- data/lib/pulp_npm_client.rb +6 -3
- data/pulp_npm_client.gemspec +10 -7
- data/spec/api/content_packages_api_spec.rb +22 -16
- data/spec/api/distributions_npm_api_spec.rb +51 -14
- data/spec/api/remotes_npm_api_spec.rb +54 -19
- data/spec/api/repositories_npm_api_spec.rb +60 -15
- data/spec/api/repositories_npm_versions_api_spec.rb +23 -19
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/npm_npm_distribution_response_spec.rb +38 -19
- data/spec/models/npm_npm_distribution_spec.rb +17 -16
- data/spec/models/npm_npm_remote_response_hidden_fields_inner_spec.rb +42 -0
- data/spec/models/npm_npm_remote_response_spec.rb +42 -35
- data/spec/models/npm_npm_remote_spec.rb +27 -32
- data/spec/models/npm_npm_repository_response_spec.rb +27 -20
- data/spec/models/npm_npm_repository_spec.rb +11 -16
- data/spec/models/npm_package_response_spec.rb +24 -17
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatednpm_npm_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatednpm_npm_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatednpm_npm_repository_response_list_spec.rb +10 -15
- data/spec/models/paginatednpm_package_response_list_spec.rb +10 -15
- data/spec/models/patchednpm_npm_distribution_spec.rb +17 -16
- data/spec/models/patchednpm_npm_remote_spec.rb +27 -32
- data/spec/models/patchednpm_npm_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 +24 -17
- data/spec/models/set_label_response_spec.rb +42 -0
- data/spec/models/set_label_spec.rb +42 -0
- data/spec/models/unset_label_response_spec.rb +42 -0
- data/spec/models/unset_label_spec.rb +36 -0
- data/spec/spec_helper.rb +1 -1
- metadata +94 -59
- data/docs/NpmPackage.md +0 -29
- data/docs/PulpNpmPackagesApi.md +0 -60
- data/git_push.sh +0 -58
- data/lib/pulp_npm_client/api/pulp_npm_packages_api.rb +0 -86
- data/lib/pulp_npm_client/models/npm_package.rb +0 -337
- data/spec/api/pulp_npm_packages_api_spec.rb +0 -48
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/npm_package_spec.rb +0 -77
|
@@ -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
|
|
|
@@ -51,23 +51,27 @@ module PulpNpmClient
|
|
|
51
51
|
# header parameters
|
|
52
52
|
header_params = opts[:header_params] || {}
|
|
53
53
|
# HTTP header 'Accept' (if needed)
|
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
55
|
# HTTP header 'Content-Type'
|
|
56
|
-
|
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
57
|
+
if !content_type.nil?
|
|
58
|
+
header_params['Content-Type'] = content_type
|
|
59
|
+
end
|
|
57
60
|
|
|
58
61
|
# form parameters
|
|
59
62
|
form_params = opts[:form_params] || {}
|
|
60
63
|
|
|
61
64
|
# http body (model)
|
|
62
|
-
post_body = opts[:
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(npm_npm_remote)
|
|
63
66
|
|
|
64
67
|
# return_type
|
|
65
|
-
return_type = opts[:
|
|
68
|
+
return_type = opts[:debug_return_type] || 'NpmNpmRemoteResponse'
|
|
66
69
|
|
|
67
70
|
# auth_names
|
|
68
|
-
auth_names = opts[:
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
69
72
|
|
|
70
73
|
new_options = opts.merge(
|
|
74
|
+
:operation => :"RemotesNpmApi.create",
|
|
71
75
|
:header_params => header_params,
|
|
72
76
|
:query_params => query_params,
|
|
73
77
|
:form_params => form_params,
|
|
@@ -115,21 +119,22 @@ module PulpNpmClient
|
|
|
115
119
|
# header parameters
|
|
116
120
|
header_params = opts[:header_params] || {}
|
|
117
121
|
# HTTP header 'Accept' (if needed)
|
|
118
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
119
123
|
|
|
120
124
|
# form parameters
|
|
121
125
|
form_params = opts[:form_params] || {}
|
|
122
126
|
|
|
123
127
|
# http body (model)
|
|
124
|
-
post_body = opts[:
|
|
128
|
+
post_body = opts[:debug_body]
|
|
125
129
|
|
|
126
130
|
# return_type
|
|
127
|
-
return_type = opts[:
|
|
131
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
|
128
132
|
|
|
129
133
|
# auth_names
|
|
130
|
-
auth_names = opts[:
|
|
134
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
131
135
|
|
|
132
136
|
new_options = opts.merge(
|
|
137
|
+
:operation => :"RemotesNpmApi.delete",
|
|
133
138
|
:header_params => header_params,
|
|
134
139
|
:query_params => query_params,
|
|
135
140
|
:form_params => form_params,
|
|
@@ -149,22 +154,31 @@ module PulpNpmClient
|
|
|
149
154
|
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
|
150
155
|
# @param [Hash] opts the optional parameters
|
|
151
156
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
152
|
-
# @option opts [String] :name
|
|
157
|
+
# @option opts [String] :name Filter results where name matches value
|
|
153
158
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
154
159
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
160
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
|
155
161
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
162
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
|
163
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
|
164
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
156
165
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
157
166
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
158
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
167
|
+
# @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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
168
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
169
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
170
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
159
171
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
160
|
-
# @option opts [
|
|
161
|
-
# @option opts [
|
|
162
|
-
# @option opts [
|
|
163
|
-
# @option opts [
|
|
164
|
-
# @option opts [
|
|
165
|
-
# @option opts [
|
|
166
|
-
# @option opts [
|
|
167
|
-
# @option opts [String] :
|
|
172
|
+
# @option opts [Time] :pulp_last_updated Filter results where pulp_last_updated matches value
|
|
173
|
+
# @option opts [Time] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
|
174
|
+
# @option opts [Time] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
|
175
|
+
# @option opts [Boolean] :pulp_last_updated__isnull Filter results where pulp_last_updated has a null value
|
|
176
|
+
# @option opts [Time] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
177
|
+
# @option opts [Time] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
|
178
|
+
# @option opts [Array<Time>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
|
179
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
180
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
181
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
168
182
|
# @return [PaginatednpmNpmRemoteResponseList]
|
|
169
183
|
def list(opts = {})
|
|
170
184
|
data, _status_code, _headers = list_with_http_info(opts)
|
|
@@ -175,28 +189,37 @@ module PulpNpmClient
|
|
|
175
189
|
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
|
176
190
|
# @param [Hash] opts the optional parameters
|
|
177
191
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
178
|
-
# @option opts [String] :name
|
|
192
|
+
# @option opts [String] :name Filter results where name matches value
|
|
179
193
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
180
194
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
195
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
|
181
196
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
197
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
|
198
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
|
199
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
182
200
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
183
201
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
184
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
202
|
+
# @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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
203
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
204
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
205
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
185
206
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
186
|
-
# @option opts [
|
|
187
|
-
# @option opts [
|
|
188
|
-
# @option opts [
|
|
189
|
-
# @option opts [
|
|
190
|
-
# @option opts [
|
|
191
|
-
# @option opts [
|
|
192
|
-
# @option opts [
|
|
193
|
-
# @option opts [String] :
|
|
207
|
+
# @option opts [Time] :pulp_last_updated Filter results where pulp_last_updated matches value
|
|
208
|
+
# @option opts [Time] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
|
209
|
+
# @option opts [Time] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
|
210
|
+
# @option opts [Boolean] :pulp_last_updated__isnull Filter results where pulp_last_updated has a null value
|
|
211
|
+
# @option opts [Time] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
212
|
+
# @option opts [Time] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
|
213
|
+
# @option opts [Array<Time>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
|
214
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
215
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
216
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
194
217
|
# @return [Array<(PaginatednpmNpmRemoteResponseList, Integer, Hash)>] PaginatednpmNpmRemoteResponseList data, response status code and response headers
|
|
195
218
|
def list_with_http_info(opts = {})
|
|
196
219
|
if @api_client.config.debugging
|
|
197
220
|
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.list ...'
|
|
198
221
|
end
|
|
199
|
-
allowable_values = ["-
|
|
222
|
+
allowable_values = ["-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-username", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "username"]
|
|
200
223
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
201
224
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
202
225
|
end
|
|
@@ -209,38 +232,48 @@ module PulpNpmClient
|
|
|
209
232
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
210
233
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
|
211
234
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
|
235
|
+
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
|
212
236
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
|
237
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
|
238
|
+
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
|
239
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
|
213
240
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
|
214
241
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
215
242
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
243
|
+
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
|
244
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
|
245
|
+
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
216
246
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
217
247
|
query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
|
|
218
248
|
query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
|
|
219
249
|
query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
|
|
250
|
+
query_params[:'pulp_last_updated__isnull'] = opts[:'pulp_last_updated__isnull'] if !opts[:'pulp_last_updated__isnull'].nil?
|
|
220
251
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
|
221
252
|
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
|
222
253
|
query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
|
|
223
|
-
query_params[:'
|
|
224
|
-
query_params[:'
|
|
254
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
255
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
256
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
225
257
|
|
|
226
258
|
# header parameters
|
|
227
259
|
header_params = opts[:header_params] || {}
|
|
228
260
|
# HTTP header 'Accept' (if needed)
|
|
229
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
261
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
230
262
|
|
|
231
263
|
# form parameters
|
|
232
264
|
form_params = opts[:form_params] || {}
|
|
233
265
|
|
|
234
266
|
# http body (model)
|
|
235
|
-
post_body = opts[:
|
|
267
|
+
post_body = opts[:debug_body]
|
|
236
268
|
|
|
237
269
|
# return_type
|
|
238
|
-
return_type = opts[:
|
|
270
|
+
return_type = opts[:debug_return_type] || 'PaginatednpmNpmRemoteResponseList'
|
|
239
271
|
|
|
240
272
|
# auth_names
|
|
241
|
-
auth_names = opts[:
|
|
273
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
242
274
|
|
|
243
275
|
new_options = opts.merge(
|
|
276
|
+
:operation => :"RemotesNpmApi.list",
|
|
244
277
|
:header_params => header_params,
|
|
245
278
|
:query_params => query_params,
|
|
246
279
|
:form_params => form_params,
|
|
@@ -294,23 +327,27 @@ module PulpNpmClient
|
|
|
294
327
|
# header parameters
|
|
295
328
|
header_params = opts[:header_params] || {}
|
|
296
329
|
# HTTP header 'Accept' (if needed)
|
|
297
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
330
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
298
331
|
# HTTP header 'Content-Type'
|
|
299
|
-
|
|
332
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
333
|
+
if !content_type.nil?
|
|
334
|
+
header_params['Content-Type'] = content_type
|
|
335
|
+
end
|
|
300
336
|
|
|
301
337
|
# form parameters
|
|
302
338
|
form_params = opts[:form_params] || {}
|
|
303
339
|
|
|
304
340
|
# http body (model)
|
|
305
|
-
post_body = opts[:
|
|
341
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(patchednpm_npm_remote)
|
|
306
342
|
|
|
307
343
|
# return_type
|
|
308
|
-
return_type = opts[:
|
|
344
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
|
309
345
|
|
|
310
346
|
# auth_names
|
|
311
|
-
auth_names = opts[:
|
|
347
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
312
348
|
|
|
313
349
|
new_options = opts.merge(
|
|
350
|
+
:operation => :"RemotesNpmApi.partial_update",
|
|
314
351
|
:header_params => header_params,
|
|
315
352
|
:query_params => query_params,
|
|
316
353
|
:form_params => form_params,
|
|
@@ -330,8 +367,8 @@ module PulpNpmClient
|
|
|
330
367
|
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
|
331
368
|
# @param npm_npm_remote_href [String]
|
|
332
369
|
# @param [Hash] opts the optional parameters
|
|
333
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
334
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
370
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
371
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
335
372
|
# @return [NpmNpmRemoteResponse]
|
|
336
373
|
def read(npm_npm_remote_href, opts = {})
|
|
337
374
|
data, _status_code, _headers = read_with_http_info(npm_npm_remote_href, opts)
|
|
@@ -342,8 +379,8 @@ module PulpNpmClient
|
|
|
342
379
|
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
|
343
380
|
# @param npm_npm_remote_href [String]
|
|
344
381
|
# @param [Hash] opts the optional parameters
|
|
345
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
346
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
382
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
383
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
347
384
|
# @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
|
|
348
385
|
def read_with_http_info(npm_npm_remote_href, opts = {})
|
|
349
386
|
if @api_client.config.debugging
|
|
@@ -358,27 +395,28 @@ module PulpNpmClient
|
|
|
358
395
|
|
|
359
396
|
# query parameters
|
|
360
397
|
query_params = opts[:query_params] || {}
|
|
361
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
362
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
398
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
399
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
363
400
|
|
|
364
401
|
# header parameters
|
|
365
402
|
header_params = opts[:header_params] || {}
|
|
366
403
|
# HTTP header 'Accept' (if needed)
|
|
367
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
404
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
368
405
|
|
|
369
406
|
# form parameters
|
|
370
407
|
form_params = opts[:form_params] || {}
|
|
371
408
|
|
|
372
409
|
# http body (model)
|
|
373
|
-
post_body = opts[:
|
|
410
|
+
post_body = opts[:debug_body]
|
|
374
411
|
|
|
375
412
|
# return_type
|
|
376
|
-
return_type = opts[:
|
|
413
|
+
return_type = opts[:debug_return_type] || 'NpmNpmRemoteResponse'
|
|
377
414
|
|
|
378
415
|
# auth_names
|
|
379
|
-
auth_names = opts[:
|
|
416
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
380
417
|
|
|
381
418
|
new_options = opts.merge(
|
|
419
|
+
:operation => :"RemotesNpmApi.read",
|
|
382
420
|
:header_params => header_params,
|
|
383
421
|
:query_params => query_params,
|
|
384
422
|
:form_params => form_params,
|
|
@@ -394,6 +432,154 @@ module PulpNpmClient
|
|
|
394
432
|
return data, status_code, headers
|
|
395
433
|
end
|
|
396
434
|
|
|
435
|
+
# Set a label
|
|
436
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
437
|
+
# @param npm_npm_remote_href [String]
|
|
438
|
+
# @param set_label [SetLabel]
|
|
439
|
+
# @param [Hash] opts the optional parameters
|
|
440
|
+
# @return [SetLabelResponse]
|
|
441
|
+
def set_label(npm_npm_remote_href, set_label, opts = {})
|
|
442
|
+
data, _status_code, _headers = set_label_with_http_info(npm_npm_remote_href, set_label, opts)
|
|
443
|
+
data
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
# Set a label
|
|
447
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
448
|
+
# @param npm_npm_remote_href [String]
|
|
449
|
+
# @param set_label [SetLabel]
|
|
450
|
+
# @param [Hash] opts the optional parameters
|
|
451
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
|
452
|
+
def set_label_with_http_info(npm_npm_remote_href, set_label, opts = {})
|
|
453
|
+
if @api_client.config.debugging
|
|
454
|
+
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.set_label ...'
|
|
455
|
+
end
|
|
456
|
+
# verify the required parameter 'npm_npm_remote_href' is set
|
|
457
|
+
if @api_client.config.client_side_validation && npm_npm_remote_href.nil?
|
|
458
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.set_label"
|
|
459
|
+
end
|
|
460
|
+
# verify the required parameter 'set_label' is set
|
|
461
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
|
462
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling RemotesNpmApi.set_label"
|
|
463
|
+
end
|
|
464
|
+
# resource path
|
|
465
|
+
local_var_path = '{npm_npm_remote_href}set_label/'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
|
|
466
|
+
|
|
467
|
+
# query parameters
|
|
468
|
+
query_params = opts[:query_params] || {}
|
|
469
|
+
|
|
470
|
+
# header parameters
|
|
471
|
+
header_params = opts[:header_params] || {}
|
|
472
|
+
# HTTP header 'Accept' (if needed)
|
|
473
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
474
|
+
# HTTP header 'Content-Type'
|
|
475
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
476
|
+
if !content_type.nil?
|
|
477
|
+
header_params['Content-Type'] = content_type
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
# form parameters
|
|
481
|
+
form_params = opts[:form_params] || {}
|
|
482
|
+
|
|
483
|
+
# http body (model)
|
|
484
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
|
485
|
+
|
|
486
|
+
# return_type
|
|
487
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
|
488
|
+
|
|
489
|
+
# auth_names
|
|
490
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
491
|
+
|
|
492
|
+
new_options = opts.merge(
|
|
493
|
+
:operation => :"RemotesNpmApi.set_label",
|
|
494
|
+
:header_params => header_params,
|
|
495
|
+
:query_params => query_params,
|
|
496
|
+
:form_params => form_params,
|
|
497
|
+
:body => post_body,
|
|
498
|
+
:auth_names => auth_names,
|
|
499
|
+
:return_type => return_type
|
|
500
|
+
)
|
|
501
|
+
|
|
502
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
503
|
+
if @api_client.config.debugging
|
|
504
|
+
@api_client.config.logger.debug "API called: RemotesNpmApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
505
|
+
end
|
|
506
|
+
return data, status_code, headers
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
# Unset a label
|
|
510
|
+
# Unset a single pulp_label on the object.
|
|
511
|
+
# @param npm_npm_remote_href [String]
|
|
512
|
+
# @param unset_label [UnsetLabel]
|
|
513
|
+
# @param [Hash] opts the optional parameters
|
|
514
|
+
# @return [UnsetLabelResponse]
|
|
515
|
+
def unset_label(npm_npm_remote_href, unset_label, opts = {})
|
|
516
|
+
data, _status_code, _headers = unset_label_with_http_info(npm_npm_remote_href, unset_label, opts)
|
|
517
|
+
data
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
# Unset a label
|
|
521
|
+
# Unset a single pulp_label on the object.
|
|
522
|
+
# @param npm_npm_remote_href [String]
|
|
523
|
+
# @param unset_label [UnsetLabel]
|
|
524
|
+
# @param [Hash] opts the optional parameters
|
|
525
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
|
526
|
+
def unset_label_with_http_info(npm_npm_remote_href, unset_label, opts = {})
|
|
527
|
+
if @api_client.config.debugging
|
|
528
|
+
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.unset_label ...'
|
|
529
|
+
end
|
|
530
|
+
# verify the required parameter 'npm_npm_remote_href' is set
|
|
531
|
+
if @api_client.config.client_side_validation && npm_npm_remote_href.nil?
|
|
532
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.unset_label"
|
|
533
|
+
end
|
|
534
|
+
# verify the required parameter 'unset_label' is set
|
|
535
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
|
536
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling RemotesNpmApi.unset_label"
|
|
537
|
+
end
|
|
538
|
+
# resource path
|
|
539
|
+
local_var_path = '{npm_npm_remote_href}unset_label/'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
|
|
540
|
+
|
|
541
|
+
# query parameters
|
|
542
|
+
query_params = opts[:query_params] || {}
|
|
543
|
+
|
|
544
|
+
# header parameters
|
|
545
|
+
header_params = opts[:header_params] || {}
|
|
546
|
+
# HTTP header 'Accept' (if needed)
|
|
547
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
548
|
+
# HTTP header 'Content-Type'
|
|
549
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
550
|
+
if !content_type.nil?
|
|
551
|
+
header_params['Content-Type'] = content_type
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
# form parameters
|
|
555
|
+
form_params = opts[:form_params] || {}
|
|
556
|
+
|
|
557
|
+
# http body (model)
|
|
558
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
|
559
|
+
|
|
560
|
+
# return_type
|
|
561
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
|
562
|
+
|
|
563
|
+
# auth_names
|
|
564
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
565
|
+
|
|
566
|
+
new_options = opts.merge(
|
|
567
|
+
:operation => :"RemotesNpmApi.unset_label",
|
|
568
|
+
:header_params => header_params,
|
|
569
|
+
:query_params => query_params,
|
|
570
|
+
:form_params => form_params,
|
|
571
|
+
:body => post_body,
|
|
572
|
+
:auth_names => auth_names,
|
|
573
|
+
:return_type => return_type
|
|
574
|
+
)
|
|
575
|
+
|
|
576
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
577
|
+
if @api_client.config.debugging
|
|
578
|
+
@api_client.config.logger.debug "API called: RemotesNpmApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
579
|
+
end
|
|
580
|
+
return data, status_code, headers
|
|
581
|
+
end
|
|
582
|
+
|
|
397
583
|
# Update a npm remote
|
|
398
584
|
# Trigger an asynchronous update task
|
|
399
585
|
# @param npm_npm_remote_href [String]
|
|
@@ -432,23 +618,27 @@ module PulpNpmClient
|
|
|
432
618
|
# header parameters
|
|
433
619
|
header_params = opts[:header_params] || {}
|
|
434
620
|
# HTTP header 'Accept' (if needed)
|
|
435
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
621
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
436
622
|
# HTTP header 'Content-Type'
|
|
437
|
-
|
|
623
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
624
|
+
if !content_type.nil?
|
|
625
|
+
header_params['Content-Type'] = content_type
|
|
626
|
+
end
|
|
438
627
|
|
|
439
628
|
# form parameters
|
|
440
629
|
form_params = opts[:form_params] || {}
|
|
441
630
|
|
|
442
631
|
# http body (model)
|
|
443
|
-
post_body = opts[:
|
|
632
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(npm_npm_remote)
|
|
444
633
|
|
|
445
634
|
# return_type
|
|
446
|
-
return_type = opts[:
|
|
635
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
|
447
636
|
|
|
448
637
|
# auth_names
|
|
449
|
-
auth_names = opts[:
|
|
638
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
450
639
|
|
|
451
640
|
new_options = opts.merge(
|
|
641
|
+
:operation => :"RemotesNpmApi.update",
|
|
452
642
|
:header_params => header_params,
|
|
453
643
|
:query_params => query_params,
|
|
454
644
|
:form_params => form_params,
|