pulp_npm_client 0.1.0a1.dev01595640515 → 0.1.0a1.dev01595986114
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_npm_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +42 -32
- data/docs/ContentPackagesApi.md +33 -36
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsNpmApi.md +113 -71
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/NpmNpmDistribution.md +1 -7
- data/docs/NpmNpmDistributionResponse.md +31 -0
- data/docs/NpmNpmRemote.md +4 -10
- data/docs/NpmNpmRemoteResponse.md +43 -0
- data/docs/NpmNpmRepository.md +4 -10
- data/docs/NpmNpmRepositoryResponse.md +29 -0
- data/docs/NpmPackage.md +5 -5
- data/docs/NpmPackageResponse.md +27 -0
- data/docs/PatchednpmNpmDistribution.md +25 -0
- data/docs/PatchednpmNpmRemote.md +37 -0
- data/docs/PatchednpmNpmRepository.md +21 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/RemotesNpmApi.md +133 -79
- data/docs/RepositoriesNpmApi.md +103 -85
- data/docs/RepositoriesNpmVersionsApi.md +95 -66
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/lib/pulp_npm_client.rb +12 -2
- data/lib/pulp_npm_client/api/content_packages_api.rb +34 -52
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +129 -78
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +163 -94
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +119 -104
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +119 -80
- data/lib/pulp_npm_client/api_client.rb +2 -2
- data/lib/pulp_npm_client/api_error.rb +2 -2
- data/lib/pulp_npm_client/configuration.rb +3 -3
- data/lib/pulp_npm_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_npm_client/models/content_summary.rb +9 -15
- data/lib/pulp_npm_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_npm_client/models/inline_response200.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_npm_client/models/npm_npm_distribution.rb +4 -85
- data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +290 -0
- data/lib/pulp_npm_client/models/npm_npm_remote.rb +7 -199
- data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +368 -0
- data/lib/pulp_npm_client/models/npm_npm_repository.rb +18 -78
- data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +271 -0
- data/lib/pulp_npm_client/models/npm_package.rb +24 -79
- data/lib/pulp_npm_client/models/npm_package_response.rb +269 -0
- data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +251 -0
- data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +329 -0
- data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +229 -0
- data/lib/pulp_npm_client/models/policy_enum.rb +37 -0
- data/lib/pulp_npm_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_npm_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_npm_client/models/repository_version.rb +7 -43
- data/lib/pulp_npm_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_npm_client/version.rb +3 -3
- data/pulp_npm_client.gemspec +4 -4
- data/spec/api/content_packages_api_spec.rb +14 -17
- data/spec/api/distributions_npm_api_spec.rb +38 -23
- data/spec/api/remotes_npm_api_spec.rb +50 -29
- data/spec/api/repositories_npm_api_spec.rb +30 -27
- data/spec/api/repositories_npm_versions_api_spec.rb +38 -26
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/npm_npm_distribution_response_spec.rb +83 -0
- data/spec/models/npm_npm_distribution_spec.rb +2 -20
- data/spec/models/npm_npm_remote_response_spec.rb +119 -0
- data/spec/models/npm_npm_remote_spec.rb +2 -24
- data/spec/models/npm_npm_repository_response_spec.rb +77 -0
- data/spec/models/npm_npm_repository_spec.rb +5 -23
- data/spec/models/npm_package_response_spec.rb +71 -0
- data/spec/models/npm_package_spec.rb +6 -6
- data/spec/models/patchednpm_npm_distribution_spec.rb +65 -0
- data/spec/models/patchednpm_npm_remote_spec.rb +101 -0
- data/spec/models/patchednpm_npm_repository_spec.rb +53 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repository_add_remove_content_spec.rb +2 -2
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/spec_helper.rb +2 -2
- metadata +44 -4
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -19,20 +19,48 @@ module PulpNpmClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Delete a repository version
|
23
22
|
# Trigger an asynchronous task to delete a repositroy version.
|
24
|
-
# @param npm_repository_version_href [String]
|
23
|
+
# @param npm_repository_version_href [String]
|
25
24
|
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :content content
|
26
|
+
# @option opts [String] :content__in content__in
|
27
|
+
# @option opts [String] :number number
|
28
|
+
# @option opts [String] :number__gt number__gt
|
29
|
+
# @option opts [String] :number__gte number__gte
|
30
|
+
# @option opts [String] :number__lt number__lt
|
31
|
+
# @option opts [String] :number__lte number__lte
|
32
|
+
# @option opts [String] :number__range number__range
|
33
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
34
|
+
# @option opts [String] :pulp_created pulp_created
|
35
|
+
# @option opts [String] :pulp_created__gt pulp_created__gt
|
36
|
+
# @option opts [String] :pulp_created__gte pulp_created__gte
|
37
|
+
# @option opts [String] :pulp_created__lt pulp_created__lt
|
38
|
+
# @option opts [String] :pulp_created__lte pulp_created__lte
|
39
|
+
# @option opts [String] :pulp_created__range pulp_created__range
|
26
40
|
# @return [AsyncOperationResponse]
|
27
41
|
def delete(npm_repository_version_href, opts = {})
|
28
42
|
data, _status_code, _headers = delete_with_http_info(npm_repository_version_href, opts)
|
29
43
|
data
|
30
44
|
end
|
31
45
|
|
32
|
-
# Delete a repository version
|
33
46
|
# Trigger an asynchronous task to delete a repositroy version.
|
34
|
-
# @param npm_repository_version_href [String]
|
47
|
+
# @param npm_repository_version_href [String]
|
35
48
|
# @param [Hash] opts the optional parameters
|
49
|
+
# @option opts [String] :content content
|
50
|
+
# @option opts [String] :content__in content__in
|
51
|
+
# @option opts [String] :number number
|
52
|
+
# @option opts [String] :number__gt number__gt
|
53
|
+
# @option opts [String] :number__gte number__gte
|
54
|
+
# @option opts [String] :number__lt number__lt
|
55
|
+
# @option opts [String] :number__lte number__lte
|
56
|
+
# @option opts [String] :number__range number__range
|
57
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
58
|
+
# @option opts [String] :pulp_created pulp_created
|
59
|
+
# @option opts [String] :pulp_created__gt pulp_created__gt
|
60
|
+
# @option opts [String] :pulp_created__gte pulp_created__gte
|
61
|
+
# @option opts [String] :pulp_created__lt pulp_created__lt
|
62
|
+
# @option opts [String] :pulp_created__lte pulp_created__lte
|
63
|
+
# @option opts [String] :pulp_created__range pulp_created__range
|
36
64
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
65
|
def delete_with_http_info(npm_repository_version_href, opts = {})
|
38
66
|
if @api_client.config.debugging
|
@@ -47,6 +75,21 @@ module PulpNpmClient
|
|
47
75
|
|
48
76
|
# query parameters
|
49
77
|
query_params = opts[:query_params] || {}
|
78
|
+
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
79
|
+
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
80
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
81
|
+
query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
|
82
|
+
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
83
|
+
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
84
|
+
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
85
|
+
query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
|
86
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
87
|
+
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
88
|
+
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
89
|
+
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
90
|
+
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
91
|
+
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
92
|
+
query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
|
50
93
|
|
51
94
|
# header parameters
|
52
95
|
header_params = opts[:header_params] || {}
|
@@ -63,7 +106,7 @@ module PulpNpmClient
|
|
63
106
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
64
107
|
|
65
108
|
# auth_names
|
66
|
-
auth_names = opts[:auth_names] || ['
|
109
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
67
110
|
|
68
111
|
new_options = opts.merge(
|
69
112
|
:header_params => header_params,
|
@@ -81,89 +124,87 @@ module PulpNpmClient
|
|
81
124
|
return data, status_code, headers
|
82
125
|
end
|
83
126
|
|
84
|
-
# List repository versions
|
85
127
|
# A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
86
|
-
# @param
|
128
|
+
# @param npm_repository_version_href [String]
|
87
129
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @option opts [String] :
|
89
|
-
# @option opts [
|
90
|
-
# @option opts [Float] :number__lt Filter results where number is less than value
|
91
|
-
# @option opts [Float] :number__lte Filter results where number is less than or equal to value
|
92
|
-
# @option opts [Float] :number__gt Filter results where number is greater than value
|
93
|
-
# @option opts [Float] :number__gte Filter results where number is greater than or equal to value
|
94
|
-
# @option opts [Float] :number__range Filter results where number is between two comma separated values
|
95
|
-
# @option opts [String] :pulp_created__lt Filter results where pulp_created is less than value
|
96
|
-
# @option opts [String] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
97
|
-
# @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
|
98
|
-
# @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
99
|
-
# @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
100
|
-
# @option opts [String] :pulp_created ISO 8601 formatted dates are supported
|
101
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
102
|
-
# @option opts [String] :content__in Content Unit referenced by HREF
|
130
|
+
# @option opts [String] :content content
|
131
|
+
# @option opts [String] :content__in content__in
|
103
132
|
# @option opts [Integer] :limit Number of results to return per page.
|
133
|
+
# @option opts [String] :number number
|
134
|
+
# @option opts [String] :number__gt number__gt
|
135
|
+
# @option opts [String] :number__gte number__gte
|
136
|
+
# @option opts [String] :number__lt number__lt
|
137
|
+
# @option opts [String] :number__lte number__lte
|
138
|
+
# @option opts [String] :number__range number__range
|
104
139
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
140
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
141
|
+
# @option opts [String] :pulp_created pulp_created
|
142
|
+
# @option opts [String] :pulp_created__gt pulp_created__gt
|
143
|
+
# @option opts [String] :pulp_created__gte pulp_created__gte
|
144
|
+
# @option opts [String] :pulp_created__lt pulp_created__lt
|
145
|
+
# @option opts [String] :pulp_created__lte pulp_created__lte
|
146
|
+
# @option opts [String] :pulp_created__range pulp_created__range
|
105
147
|
# @option opts [String] :fields A list of fields to include in the response.
|
106
148
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
107
149
|
# @return [InlineResponse2004]
|
108
|
-
def list(
|
109
|
-
data, _status_code, _headers = list_with_http_info(
|
150
|
+
def list(npm_repository_version_href, opts = {})
|
151
|
+
data, _status_code, _headers = list_with_http_info(npm_repository_version_href, opts)
|
110
152
|
data
|
111
153
|
end
|
112
154
|
|
113
|
-
# List repository versions
|
114
155
|
# A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
115
|
-
# @param
|
156
|
+
# @param npm_repository_version_href [String]
|
116
157
|
# @param [Hash] opts the optional parameters
|
117
|
-
# @option opts [String] :
|
118
|
-
# @option opts [
|
119
|
-
# @option opts [Float] :number__lt Filter results where number is less than value
|
120
|
-
# @option opts [Float] :number__lte Filter results where number is less than or equal to value
|
121
|
-
# @option opts [Float] :number__gt Filter results where number is greater than value
|
122
|
-
# @option opts [Float] :number__gte Filter results where number is greater than or equal to value
|
123
|
-
# @option opts [Float] :number__range Filter results where number is between two comma separated values
|
124
|
-
# @option opts [String] :pulp_created__lt Filter results where pulp_created is less than value
|
125
|
-
# @option opts [String] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
126
|
-
# @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
|
127
|
-
# @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
128
|
-
# @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
129
|
-
# @option opts [String] :pulp_created ISO 8601 formatted dates are supported
|
130
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
131
|
-
# @option opts [String] :content__in Content Unit referenced by HREF
|
158
|
+
# @option opts [String] :content content
|
159
|
+
# @option opts [String] :content__in content__in
|
132
160
|
# @option opts [Integer] :limit Number of results to return per page.
|
161
|
+
# @option opts [String] :number number
|
162
|
+
# @option opts [String] :number__gt number__gt
|
163
|
+
# @option opts [String] :number__gte number__gte
|
164
|
+
# @option opts [String] :number__lt number__lt
|
165
|
+
# @option opts [String] :number__lte number__lte
|
166
|
+
# @option opts [String] :number__range number__range
|
133
167
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
168
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
169
|
+
# @option opts [String] :pulp_created pulp_created
|
170
|
+
# @option opts [String] :pulp_created__gt pulp_created__gt
|
171
|
+
# @option opts [String] :pulp_created__gte pulp_created__gte
|
172
|
+
# @option opts [String] :pulp_created__lt pulp_created__lt
|
173
|
+
# @option opts [String] :pulp_created__lte pulp_created__lte
|
174
|
+
# @option opts [String] :pulp_created__range pulp_created__range
|
134
175
|
# @option opts [String] :fields A list of fields to include in the response.
|
135
176
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
136
177
|
# @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
|
137
|
-
def list_with_http_info(
|
178
|
+
def list_with_http_info(npm_repository_version_href, opts = {})
|
138
179
|
if @api_client.config.debugging
|
139
180
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmVersionsApi.list ...'
|
140
181
|
end
|
141
|
-
# verify the required parameter '
|
142
|
-
if @api_client.config.client_side_validation &&
|
143
|
-
fail ArgumentError, "Missing the required parameter '
|
182
|
+
# verify the required parameter 'npm_repository_version_href' is set
|
183
|
+
if @api_client.config.client_side_validation && npm_repository_version_href.nil?
|
184
|
+
fail ArgumentError, "Missing the required parameter 'npm_repository_version_href' when calling RepositoriesNpmVersionsApi.list"
|
144
185
|
end
|
145
186
|
# resource path
|
146
|
-
local_var_path = '{
|
187
|
+
local_var_path = '{npm_repository_version_href}versions/'.sub('{' + 'npm_repository_version_href' + '}', CGI.escape(npm_repository_version_href.to_s).gsub('%2F', '/'))
|
147
188
|
|
148
189
|
# query parameters
|
149
190
|
query_params = opts[:query_params] || {}
|
150
|
-
query_params[:'
|
191
|
+
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
192
|
+
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
193
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
151
194
|
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
152
|
-
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
153
|
-
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
154
195
|
query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
|
155
196
|
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
197
|
+
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
198
|
+
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
156
199
|
query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
|
157
|
-
query_params[:'
|
158
|
-
query_params[:'
|
200
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
201
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
202
|
+
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
159
203
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
160
204
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
205
|
+
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
206
|
+
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
161
207
|
query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
|
162
|
-
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
163
|
-
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
164
|
-
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
165
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
166
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
167
208
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
168
209
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
169
210
|
|
@@ -182,7 +223,7 @@ module PulpNpmClient
|
|
182
223
|
return_type = opts[:return_type] || 'InlineResponse2004'
|
183
224
|
|
184
225
|
# auth_names
|
185
|
-
auth_names = opts[:auth_names] || ['
|
226
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
186
227
|
|
187
228
|
new_options = opts.merge(
|
188
229
|
:header_params => header_params,
|
@@ -200,25 +241,23 @@ module PulpNpmClient
|
|
200
241
|
return data, status_code, headers
|
201
242
|
end
|
202
243
|
|
203
|
-
# Inspect a repository version
|
204
244
|
# A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
205
|
-
# @param npm_repository_version_href [String]
|
245
|
+
# @param npm_repository_version_href [String]
|
206
246
|
# @param [Hash] opts the optional parameters
|
207
247
|
# @option opts [String] :fields A list of fields to include in the response.
|
208
248
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
209
|
-
# @return [
|
249
|
+
# @return [RepositoryVersionResponse]
|
210
250
|
def read(npm_repository_version_href, opts = {})
|
211
251
|
data, _status_code, _headers = read_with_http_info(npm_repository_version_href, opts)
|
212
252
|
data
|
213
253
|
end
|
214
254
|
|
215
|
-
# Inspect a repository version
|
216
255
|
# A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
217
|
-
# @param npm_repository_version_href [String]
|
256
|
+
# @param npm_repository_version_href [String]
|
218
257
|
# @param [Hash] opts the optional parameters
|
219
258
|
# @option opts [String] :fields A list of fields to include in the response.
|
220
259
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
221
|
-
# @return [Array<(
|
260
|
+
# @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
|
222
261
|
def read_with_http_info(npm_repository_version_href, opts = {})
|
223
262
|
if @api_client.config.debugging
|
224
263
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmVersionsApi.read ...'
|
@@ -247,10 +286,10 @@ module PulpNpmClient
|
|
247
286
|
post_body = opts[:body]
|
248
287
|
|
249
288
|
# return_type
|
250
|
-
return_type = opts[:return_type] || '
|
289
|
+
return_type = opts[:return_type] || 'RepositoryVersionResponse'
|
251
290
|
|
252
291
|
# auth_names
|
253
|
-
auth_names = opts[:auth_names] || ['
|
292
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
254
293
|
|
255
294
|
new_options = opts.merge(
|
256
295
|
:header_params => header_params,
|
@@ -269,21 +308,21 @@ module PulpNpmClient
|
|
269
308
|
end
|
270
309
|
|
271
310
|
# Trigger an asynchronous task to repair a repositroy version.
|
272
|
-
# @param npm_repository_version_href [String]
|
273
|
-
# @param
|
311
|
+
# @param npm_repository_version_href [String]
|
312
|
+
# @param repository_version [RepositoryVersion]
|
274
313
|
# @param [Hash] opts the optional parameters
|
275
314
|
# @return [AsyncOperationResponse]
|
276
|
-
def repair(npm_repository_version_href,
|
277
|
-
data, _status_code, _headers = repair_with_http_info(npm_repository_version_href,
|
315
|
+
def repair(npm_repository_version_href, repository_version, opts = {})
|
316
|
+
data, _status_code, _headers = repair_with_http_info(npm_repository_version_href, repository_version, opts)
|
278
317
|
data
|
279
318
|
end
|
280
319
|
|
281
320
|
# Trigger an asynchronous task to repair a repositroy version.
|
282
|
-
# @param npm_repository_version_href [String]
|
283
|
-
# @param
|
321
|
+
# @param npm_repository_version_href [String]
|
322
|
+
# @param repository_version [RepositoryVersion]
|
284
323
|
# @param [Hash] opts the optional parameters
|
285
324
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
286
|
-
def repair_with_http_info(npm_repository_version_href,
|
325
|
+
def repair_with_http_info(npm_repository_version_href, repository_version, opts = {})
|
287
326
|
if @api_client.config.debugging
|
288
327
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmVersionsApi.repair ...'
|
289
328
|
end
|
@@ -291,9 +330,9 @@ module PulpNpmClient
|
|
291
330
|
if @api_client.config.client_side_validation && npm_repository_version_href.nil?
|
292
331
|
fail ArgumentError, "Missing the required parameter 'npm_repository_version_href' when calling RepositoriesNpmVersionsApi.repair"
|
293
332
|
end
|
294
|
-
# verify the required parameter '
|
295
|
-
if @api_client.config.client_side_validation &&
|
296
|
-
fail ArgumentError, "Missing the required parameter '
|
333
|
+
# verify the required parameter 'repository_version' is set
|
334
|
+
if @api_client.config.client_side_validation && repository_version.nil?
|
335
|
+
fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesNpmVersionsApi.repair"
|
297
336
|
end
|
298
337
|
# resource path
|
299
338
|
local_var_path = '{npm_repository_version_href}repair/'.sub('{' + 'npm_repository_version_href' + '}', CGI.escape(npm_repository_version_href.to_s).gsub('%2F', '/'))
|
@@ -306,19 +345,19 @@ module PulpNpmClient
|
|
306
345
|
# HTTP header 'Accept' (if needed)
|
307
346
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
308
347
|
# HTTP header 'Content-Type'
|
309
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
348
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
310
349
|
|
311
350
|
# form parameters
|
312
351
|
form_params = opts[:form_params] || {}
|
313
352
|
|
314
353
|
# http body (model)
|
315
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
354
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repository_version)
|
316
355
|
|
317
356
|
# return_type
|
318
357
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
319
358
|
|
320
359
|
# auth_names
|
321
|
-
auth_names = opts[:auth_names] || ['
|
360
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
322
361
|
|
323
362
|
new_options = opts.merge(
|
324
363
|
:header_params => header_params,
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -188,7 +188,7 @@ module PulpNpmClient
|
|
188
188
|
# Returns Auth Settings hash for api client.
|
189
189
|
def auth_settings
|
190
190
|
{
|
191
|
-
'
|
191
|
+
'basicAuth' =>
|
192
192
|
{
|
193
193
|
type: 'basic',
|
194
194
|
in: 'header',
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpNpmClient
|
16
|
+
# Serializer for asynchronous operations.
|
16
17
|
class AsyncOperationResponse
|
17
18
|
# The href of the task.
|
18
19
|
attr_accessor :task
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpNpmClient
|
16
|
-
#
|
16
|
+
# Serializer for the RepositoryVersion content summary
|
17
17
|
class ContentSummary
|
18
18
|
attr_accessor :added
|
19
19
|
|
@@ -33,9 +33,9 @@ module PulpNpmClient
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.openapi_types
|
35
35
|
{
|
36
|
-
:'added' => :'
|
37
|
-
:'removed' => :'
|
38
|
-
:'present' => :'
|
36
|
+
:'added' => :'Object',
|
37
|
+
:'removed' => :'Object',
|
38
|
+
:'present' => :'Object'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -61,21 +61,15 @@ module PulpNpmClient
|
|
61
61
|
}
|
62
62
|
|
63
63
|
if attributes.key?(:'added')
|
64
|
-
|
65
|
-
self.added = value
|
66
|
-
end
|
64
|
+
self.added = attributes[:'added']
|
67
65
|
end
|
68
66
|
|
69
67
|
if attributes.key?(:'removed')
|
70
|
-
|
71
|
-
self.removed = value
|
72
|
-
end
|
68
|
+
self.removed = attributes[:'removed']
|
73
69
|
end
|
74
70
|
|
75
71
|
if attributes.key?(:'present')
|
76
|
-
|
77
|
-
self.present = value
|
78
|
-
end
|
72
|
+
self.present = attributes[:'present']
|
79
73
|
end
|
80
74
|
end
|
81
75
|
|