cloudsmith-api 2.0.26 → 2.0.27
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/Gemfile.lock +1 -1
- data/README.md +24 -5
- data/build.json +1 -1
- data/docs/AlpinePackageUpload.md +2 -0
- data/docs/CargoPackageUpload.md +2 -0
- data/docs/CocoapodsPackageUpload.md +2 -0
- data/docs/ComposerPackageUpload.md +2 -0
- data/docs/ConanPackageUpload.md +2 -0
- data/docs/CondaPackageUpload.md +2 -0
- data/docs/ConnectedRepository.md +12 -0
- data/docs/ConnectedRepositoryRequest.md +10 -0
- data/docs/ConnectedRepositoryRequestPatch.md +10 -0
- data/docs/CranPackageUpload.md +2 -0
- data/docs/DartPackageUpload.md +2 -0
- data/docs/DebPackageUpload.md +2 -0
- data/docs/DockerPackageUpload.md +2 -0
- data/docs/EntitlementsApi.md +2 -0
- data/docs/GenericPackageUpload.md +2 -0
- data/docs/GoPackageUpload.md +2 -0
- data/docs/HelmPackageUpload.md +2 -0
- data/docs/HexPackageUpload.md +2 -0
- data/docs/HuggingfacePackageUpload.md +2 -0
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +8 -0
- data/docs/LuarocksPackageUpload.md +2 -0
- data/docs/MavenPackageUpload.md +2 -0
- data/docs/McpPackageUpload.md +2 -0
- data/docs/MemberTeams.md +10 -0
- data/docs/NpmPackageUpload.md +2 -0
- data/docs/NugetPackageUpload.md +2 -0
- data/docs/OrganizationCustomDomainNestedRepo.md +9 -0
- data/docs/OrganizationCustomDomains.md +25 -0
- data/docs/OrganizationMembership.md +1 -0
- data/docs/OrgsApi.md +65 -0
- data/docs/P2PackageUpload.md +2 -0
- data/docs/Package.md +2 -0
- data/docs/PackageCopy.md +2 -0
- data/docs/PackageMove.md +2 -0
- data/docs/PackageQuarantine.md +2 -0
- data/docs/PackageResync.md +2 -0
- data/docs/PackageStatus.md +1 -0
- data/docs/PackageTag.md +2 -0
- data/docs/PythonPackageUpload.md +2 -0
- data/docs/RawPackageUpload.md +2 -0
- data/docs/RecycleBinApi.md +24 -24
- data/docs/ReposApi.md +592 -1
- data/docs/Repository.md +1 -0
- data/docs/RepositoryCreate.md +1 -0
- data/docs/RepositoryCreateRequest.md +1 -0
- data/docs/RepositoryEd25519Key.md +13 -0
- data/docs/RepositoryEd25519KeyCreate.md +9 -0
- data/docs/RepositoryRequestPatch.md +1 -0
- data/docs/RpmPackageUpload.md +2 -0
- data/docs/RubyPackageUpload.md +2 -0
- data/docs/ServiceTeams.md +1 -0
- data/docs/SwiftPackageUpload.md +2 -0
- data/docs/TerraformPackageUpload.md +2 -0
- data/docs/UserApi.md +2 -2
- data/docs/VagrantPackageUpload.md +2 -0
- data/docs/VsxPackageUpload.md +2 -0
- data/lib/cloudsmith-api/api/entitlements_api.rb +3 -0
- data/lib/cloudsmith-api/api/orgs_api.rb +60 -0
- data/lib/cloudsmith-api/api/recycle_bin_api.rb +41 -41
- data/lib/cloudsmith-api/api/repos_api.rb +579 -2
- data/lib/cloudsmith-api/api/user_api.rb +3 -3
- data/lib/cloudsmith-api/models/alpine_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/cargo_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/cocoapods_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/composer_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/conan_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/conda_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/connected_repository.rb +230 -0
- data/lib/cloudsmith-api/models/connected_repository_request.rb +211 -0
- data/lib/cloudsmith-api/models/connected_repository_request_patch.rb +206 -0
- data/lib/cloudsmith-api/models/cran_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/dart_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/deb_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/docker_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/generic_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/go_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/helm_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/hex_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/huggingface_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/inline_response_200_1.rb +1 -1
- data/lib/cloudsmith-api/models/inline_response_200_2.rb +191 -0
- data/lib/cloudsmith-api/models/luarocks_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/maven_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/mcp_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/member_teams.rb +238 -0
- data/lib/cloudsmith-api/models/npm_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/nuget_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/organization_custom_domain_nested_repo.rb +195 -0
- data/lib/cloudsmith-api/models/organization_custom_domains.rb +355 -0
- data/lib/cloudsmith-api/models/organization_membership.rb +12 -1
- data/lib/cloudsmith-api/models/p2_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/package.rb +20 -1
- data/lib/cloudsmith-api/models/package_copy.rb +20 -1
- data/lib/cloudsmith-api/models/package_move.rb +20 -1
- data/lib/cloudsmith-api/models/package_quarantine.rb +20 -1
- data/lib/cloudsmith-api/models/package_resync.rb +20 -1
- data/lib/cloudsmith-api/models/package_status.rb +10 -1
- data/lib/cloudsmith-api/models/package_tag.rb +20 -1
- data/lib/cloudsmith-api/models/python_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/raw_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/repository.rb +11 -1
- data/lib/cloudsmith-api/models/repository_create.rb +11 -1
- data/lib/cloudsmith-api/models/repository_create_request.rb +11 -1
- data/lib/cloudsmith-api/models/repository_ed25519_key.rb +233 -0
- data/lib/cloudsmith-api/models/repository_ed25519_key_create.rb +200 -0
- data/lib/cloudsmith-api/models/repository_request_patch.rb +11 -1
- data/lib/cloudsmith-api/models/rpm_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/ruby_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/service_teams.rb +11 -1
- data/lib/cloudsmith-api/models/swift_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/terraform_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/vagrant_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/vsx_package_upload.rb +20 -1
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +9 -0
- data/spec/api/entitlements_api_spec.rb +1 -0
- data/spec/api/orgs_api_spec.rb +14 -0
- data/spec/api/recycle_bin_api_spec.rb +12 -12
- data/spec/api/repos_api_spec.rb +128 -1
- data/spec/api/user_api_spec.rb +1 -1
- data/spec/models/alpine_package_upload_spec.rb +12 -0
- data/spec/models/cargo_package_upload_spec.rb +12 -0
- data/spec/models/cocoapods_package_upload_spec.rb +12 -0
- data/spec/models/composer_package_upload_spec.rb +12 -0
- data/spec/models/conan_package_upload_spec.rb +12 -0
- data/spec/models/conda_package_upload_spec.rb +12 -0
- data/spec/models/connected_repository_request_patch_spec.rb +53 -0
- data/spec/models/connected_repository_request_spec.rb +53 -0
- data/spec/models/connected_repository_spec.rb +65 -0
- data/spec/models/cran_package_upload_spec.rb +12 -0
- data/spec/models/dart_package_upload_spec.rb +12 -0
- data/spec/models/deb_package_upload_spec.rb +12 -0
- data/spec/models/docker_package_upload_spec.rb +12 -0
- data/spec/models/generic_package_upload_spec.rb +12 -0
- data/spec/models/go_package_upload_spec.rb +12 -0
- data/spec/models/helm_package_upload_spec.rb +12 -0
- data/spec/models/hex_package_upload_spec.rb +12 -0
- data/spec/models/huggingface_package_upload_spec.rb +12 -0
- data/spec/models/inline_response_200_2_spec.rb +41 -0
- data/spec/models/luarocks_package_upload_spec.rb +12 -0
- data/spec/models/maven_package_upload_spec.rb +12 -0
- data/spec/models/mcp_package_upload_spec.rb +12 -0
- data/spec/models/member_teams_spec.rb +57 -0
- data/spec/models/npm_package_upload_spec.rb +12 -0
- data/spec/models/nuget_package_upload_spec.rb +12 -0
- data/spec/models/organization_custom_domain_nested_repo_spec.rb +47 -0
- data/spec/models/organization_custom_domains_spec.rb +143 -0
- data/spec/models/organization_membership_spec.rb +6 -0
- data/spec/models/p2_package_upload_spec.rb +12 -0
- data/spec/models/package_copy_spec.rb +12 -0
- data/spec/models/package_move_spec.rb +12 -0
- data/spec/models/package_quarantine_spec.rb +12 -0
- data/spec/models/package_resync_spec.rb +12 -0
- data/spec/models/package_spec.rb +12 -0
- data/spec/models/package_status_spec.rb +6 -0
- data/spec/models/package_tag_spec.rb +12 -0
- data/spec/models/python_package_upload_spec.rb +12 -0
- data/spec/models/raw_package_upload_spec.rb +12 -0
- data/spec/models/repository_create_request_spec.rb +6 -0
- data/spec/models/repository_create_spec.rb +6 -0
- data/spec/models/repository_ed25519_key_create_spec.rb +47 -0
- data/spec/models/repository_ed25519_key_spec.rb +71 -0
- data/spec/models/repository_request_patch_spec.rb +6 -0
- data/spec/models/repository_spec.rb +6 -0
- data/spec/models/rpm_package_upload_spec.rb +12 -0
- data/spec/models/ruby_package_upload_spec.rb +12 -0
- data/spec/models/service_teams_spec.rb +6 -0
- data/spec/models/swift_package_upload_spec.rb +12 -0
- data/spec/models/terraform_package_upload_spec.rb +12 -0
- data/spec/models/vagrant_package_upload_spec.rb +12 -0
- data/spec/models/vsx_package_upload_spec.rb +12 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.2/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/mkmf.log +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.1.2/ext/bigdecimal/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.4/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
- metadata +41 -5
|
@@ -201,6 +201,401 @@ module CloudsmithApi
|
|
|
201
201
|
end
|
|
202
202
|
return data, status_code, headers
|
|
203
203
|
end
|
|
204
|
+
# Create a connected repository for this repository.
|
|
205
|
+
# Create a connected repository for this repository.
|
|
206
|
+
# @param owner
|
|
207
|
+
# @param identifier
|
|
208
|
+
# @param [Hash] opts the optional parameters
|
|
209
|
+
# @option opts [ConnectedRepositoryRequest] :data
|
|
210
|
+
# @return [ConnectedRepository]
|
|
211
|
+
def repos_connected_create(owner, identifier, opts = {})
|
|
212
|
+
data, _status_code, _headers = repos_connected_create_with_http_info(owner, identifier, opts)
|
|
213
|
+
data
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Create a connected repository for this repository.
|
|
217
|
+
# Create a connected repository for this repository.
|
|
218
|
+
# @param owner
|
|
219
|
+
# @param identifier
|
|
220
|
+
# @param [Hash] opts the optional parameters
|
|
221
|
+
# @option opts [ConnectedRepositoryRequest] :data
|
|
222
|
+
# @return [Array<(ConnectedRepository, Fixnum, Hash)>] ConnectedRepository data, response status code and response headers
|
|
223
|
+
def repos_connected_create_with_http_info(owner, identifier, opts = {})
|
|
224
|
+
if @api_client.config.debugging
|
|
225
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_connected_create ...'
|
|
226
|
+
end
|
|
227
|
+
# verify the required parameter 'owner' is set
|
|
228
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
229
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_connected_create"
|
|
230
|
+
end
|
|
231
|
+
# verify the required parameter 'identifier' is set
|
|
232
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
233
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_connected_create"
|
|
234
|
+
end
|
|
235
|
+
# resource path
|
|
236
|
+
local_var_path = '/repos/{owner}/{identifier}/connected/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
|
237
|
+
|
|
238
|
+
# query parameters
|
|
239
|
+
query_params = {}
|
|
240
|
+
|
|
241
|
+
# header parameters
|
|
242
|
+
header_params = {}
|
|
243
|
+
# HTTP header 'Accept' (if needed)
|
|
244
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
245
|
+
# HTTP header 'Content-Type'
|
|
246
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
247
|
+
|
|
248
|
+
# form parameters
|
|
249
|
+
form_params = {}
|
|
250
|
+
|
|
251
|
+
# http body (model)
|
|
252
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
|
253
|
+
auth_names = ['apikey', 'basic']
|
|
254
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
255
|
+
:header_params => header_params,
|
|
256
|
+
:query_params => query_params,
|
|
257
|
+
:form_params => form_params,
|
|
258
|
+
:body => post_body,
|
|
259
|
+
:auth_names => auth_names,
|
|
260
|
+
:return_type => 'ConnectedRepository')
|
|
261
|
+
if @api_client.config.debugging
|
|
262
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_connected_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
263
|
+
end
|
|
264
|
+
return data, status_code, headers
|
|
265
|
+
end
|
|
266
|
+
# Delete a connected repository for this repository.
|
|
267
|
+
# Delete a connected repository for this repository.
|
|
268
|
+
# @param owner
|
|
269
|
+
# @param identifier
|
|
270
|
+
# @param slug_perm
|
|
271
|
+
# @param [Hash] opts the optional parameters
|
|
272
|
+
# @return [nil]
|
|
273
|
+
def repos_connected_delete(owner, identifier, slug_perm, opts = {})
|
|
274
|
+
repos_connected_delete_with_http_info(owner, identifier, slug_perm, opts)
|
|
275
|
+
nil
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# Delete a connected repository for this repository.
|
|
279
|
+
# Delete a connected repository for this repository.
|
|
280
|
+
# @param owner
|
|
281
|
+
# @param identifier
|
|
282
|
+
# @param slug_perm
|
|
283
|
+
# @param [Hash] opts the optional parameters
|
|
284
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
285
|
+
def repos_connected_delete_with_http_info(owner, identifier, slug_perm, opts = {})
|
|
286
|
+
if @api_client.config.debugging
|
|
287
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_connected_delete ...'
|
|
288
|
+
end
|
|
289
|
+
# verify the required parameter 'owner' is set
|
|
290
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
291
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_connected_delete"
|
|
292
|
+
end
|
|
293
|
+
# verify the required parameter 'identifier' is set
|
|
294
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
295
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_connected_delete"
|
|
296
|
+
end
|
|
297
|
+
# verify the required parameter 'slug_perm' is set
|
|
298
|
+
if @api_client.config.client_side_validation && slug_perm.nil?
|
|
299
|
+
fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_connected_delete"
|
|
300
|
+
end
|
|
301
|
+
# resource path
|
|
302
|
+
local_var_path = '/repos/{owner}/{identifier}/connected/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
|
|
303
|
+
|
|
304
|
+
# query parameters
|
|
305
|
+
query_params = {}
|
|
306
|
+
|
|
307
|
+
# header parameters
|
|
308
|
+
header_params = {}
|
|
309
|
+
# HTTP header 'Accept' (if needed)
|
|
310
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
311
|
+
# HTTP header 'Content-Type'
|
|
312
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
313
|
+
|
|
314
|
+
# form parameters
|
|
315
|
+
form_params = {}
|
|
316
|
+
|
|
317
|
+
# http body (model)
|
|
318
|
+
post_body = nil
|
|
319
|
+
auth_names = ['apikey', 'basic']
|
|
320
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
321
|
+
:header_params => header_params,
|
|
322
|
+
:query_params => query_params,
|
|
323
|
+
:form_params => form_params,
|
|
324
|
+
:body => post_body,
|
|
325
|
+
:auth_names => auth_names)
|
|
326
|
+
if @api_client.config.debugging
|
|
327
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_connected_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
328
|
+
end
|
|
329
|
+
return data, status_code, headers
|
|
330
|
+
end
|
|
331
|
+
# List connected repositories for this repository.
|
|
332
|
+
# List connected repositories for this repository.
|
|
333
|
+
# @param owner
|
|
334
|
+
# @param identifier
|
|
335
|
+
# @param [Hash] opts the optional parameters
|
|
336
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
337
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
338
|
+
# @return [InlineResponse2001]
|
|
339
|
+
def repos_connected_list(owner, identifier, opts = {})
|
|
340
|
+
data, _status_code, _headers = repos_connected_list_with_http_info(owner, identifier, opts)
|
|
341
|
+
data
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# List connected repositories for this repository.
|
|
345
|
+
# List connected repositories for this repository.
|
|
346
|
+
# @param owner
|
|
347
|
+
# @param identifier
|
|
348
|
+
# @param [Hash] opts the optional parameters
|
|
349
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
350
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
351
|
+
# @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
|
|
352
|
+
def repos_connected_list_with_http_info(owner, identifier, opts = {})
|
|
353
|
+
if @api_client.config.debugging
|
|
354
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_connected_list ...'
|
|
355
|
+
end
|
|
356
|
+
# verify the required parameter 'owner' is set
|
|
357
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
358
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_connected_list"
|
|
359
|
+
end
|
|
360
|
+
# verify the required parameter 'identifier' is set
|
|
361
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
362
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_connected_list"
|
|
363
|
+
end
|
|
364
|
+
# resource path
|
|
365
|
+
local_var_path = '/repos/{owner}/{identifier}/connected/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
|
366
|
+
|
|
367
|
+
# query parameters
|
|
368
|
+
query_params = {}
|
|
369
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
370
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
371
|
+
|
|
372
|
+
# header parameters
|
|
373
|
+
header_params = {}
|
|
374
|
+
# HTTP header 'Accept' (if needed)
|
|
375
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
376
|
+
# HTTP header 'Content-Type'
|
|
377
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
378
|
+
|
|
379
|
+
# form parameters
|
|
380
|
+
form_params = {}
|
|
381
|
+
|
|
382
|
+
# http body (model)
|
|
383
|
+
post_body = nil
|
|
384
|
+
auth_names = ['apikey', 'basic']
|
|
385
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
386
|
+
:header_params => header_params,
|
|
387
|
+
:query_params => query_params,
|
|
388
|
+
:form_params => form_params,
|
|
389
|
+
:body => post_body,
|
|
390
|
+
:auth_names => auth_names,
|
|
391
|
+
:return_type => 'InlineResponse2001')
|
|
392
|
+
if @api_client.config.debugging
|
|
393
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_connected_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
394
|
+
end
|
|
395
|
+
return data, status_code, headers
|
|
396
|
+
end
|
|
397
|
+
# Partially update a connected repository for this repository.
|
|
398
|
+
# Partially update a connected repository for this repository.
|
|
399
|
+
# @param owner
|
|
400
|
+
# @param identifier
|
|
401
|
+
# @param slug_perm
|
|
402
|
+
# @param [Hash] opts the optional parameters
|
|
403
|
+
# @option opts [ConnectedRepositoryRequestPatch] :data
|
|
404
|
+
# @return [ConnectedRepository]
|
|
405
|
+
def repos_connected_partial_update(owner, identifier, slug_perm, opts = {})
|
|
406
|
+
data, _status_code, _headers = repos_connected_partial_update_with_http_info(owner, identifier, slug_perm, opts)
|
|
407
|
+
data
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
# Partially update a connected repository for this repository.
|
|
411
|
+
# Partially update a connected repository for this repository.
|
|
412
|
+
# @param owner
|
|
413
|
+
# @param identifier
|
|
414
|
+
# @param slug_perm
|
|
415
|
+
# @param [Hash] opts the optional parameters
|
|
416
|
+
# @option opts [ConnectedRepositoryRequestPatch] :data
|
|
417
|
+
# @return [Array<(ConnectedRepository, Fixnum, Hash)>] ConnectedRepository data, response status code and response headers
|
|
418
|
+
def repos_connected_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
|
|
419
|
+
if @api_client.config.debugging
|
|
420
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_connected_partial_update ...'
|
|
421
|
+
end
|
|
422
|
+
# verify the required parameter 'owner' is set
|
|
423
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
424
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_connected_partial_update"
|
|
425
|
+
end
|
|
426
|
+
# verify the required parameter 'identifier' is set
|
|
427
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
428
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_connected_partial_update"
|
|
429
|
+
end
|
|
430
|
+
# verify the required parameter 'slug_perm' is set
|
|
431
|
+
if @api_client.config.client_side_validation && slug_perm.nil?
|
|
432
|
+
fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_connected_partial_update"
|
|
433
|
+
end
|
|
434
|
+
# resource path
|
|
435
|
+
local_var_path = '/repos/{owner}/{identifier}/connected/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
|
|
436
|
+
|
|
437
|
+
# query parameters
|
|
438
|
+
query_params = {}
|
|
439
|
+
|
|
440
|
+
# header parameters
|
|
441
|
+
header_params = {}
|
|
442
|
+
# HTTP header 'Accept' (if needed)
|
|
443
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
444
|
+
# HTTP header 'Content-Type'
|
|
445
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
446
|
+
|
|
447
|
+
# form parameters
|
|
448
|
+
form_params = {}
|
|
449
|
+
|
|
450
|
+
# http body (model)
|
|
451
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
|
452
|
+
auth_names = ['apikey', 'basic']
|
|
453
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
|
454
|
+
:header_params => header_params,
|
|
455
|
+
:query_params => query_params,
|
|
456
|
+
:form_params => form_params,
|
|
457
|
+
:body => post_body,
|
|
458
|
+
:auth_names => auth_names,
|
|
459
|
+
:return_type => 'ConnectedRepository')
|
|
460
|
+
if @api_client.config.debugging
|
|
461
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_connected_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
462
|
+
end
|
|
463
|
+
return data, status_code, headers
|
|
464
|
+
end
|
|
465
|
+
# Retrieve a connected repository for this repository.
|
|
466
|
+
# Retrieve a connected repository for this repository.
|
|
467
|
+
# @param owner
|
|
468
|
+
# @param identifier
|
|
469
|
+
# @param slug_perm
|
|
470
|
+
# @param [Hash] opts the optional parameters
|
|
471
|
+
# @return [ConnectedRepository]
|
|
472
|
+
def repos_connected_read(owner, identifier, slug_perm, opts = {})
|
|
473
|
+
data, _status_code, _headers = repos_connected_read_with_http_info(owner, identifier, slug_perm, opts)
|
|
474
|
+
data
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# Retrieve a connected repository for this repository.
|
|
478
|
+
# Retrieve a connected repository for this repository.
|
|
479
|
+
# @param owner
|
|
480
|
+
# @param identifier
|
|
481
|
+
# @param slug_perm
|
|
482
|
+
# @param [Hash] opts the optional parameters
|
|
483
|
+
# @return [Array<(ConnectedRepository, Fixnum, Hash)>] ConnectedRepository data, response status code and response headers
|
|
484
|
+
def repos_connected_read_with_http_info(owner, identifier, slug_perm, opts = {})
|
|
485
|
+
if @api_client.config.debugging
|
|
486
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_connected_read ...'
|
|
487
|
+
end
|
|
488
|
+
# verify the required parameter 'owner' is set
|
|
489
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
490
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_connected_read"
|
|
491
|
+
end
|
|
492
|
+
# verify the required parameter 'identifier' is set
|
|
493
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
494
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_connected_read"
|
|
495
|
+
end
|
|
496
|
+
# verify the required parameter 'slug_perm' is set
|
|
497
|
+
if @api_client.config.client_side_validation && slug_perm.nil?
|
|
498
|
+
fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_connected_read"
|
|
499
|
+
end
|
|
500
|
+
# resource path
|
|
501
|
+
local_var_path = '/repos/{owner}/{identifier}/connected/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
|
|
502
|
+
|
|
503
|
+
# query parameters
|
|
504
|
+
query_params = {}
|
|
505
|
+
|
|
506
|
+
# header parameters
|
|
507
|
+
header_params = {}
|
|
508
|
+
# HTTP header 'Accept' (if needed)
|
|
509
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
510
|
+
# HTTP header 'Content-Type'
|
|
511
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
512
|
+
|
|
513
|
+
# form parameters
|
|
514
|
+
form_params = {}
|
|
515
|
+
|
|
516
|
+
# http body (model)
|
|
517
|
+
post_body = nil
|
|
518
|
+
auth_names = ['apikey', 'basic']
|
|
519
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
520
|
+
:header_params => header_params,
|
|
521
|
+
:query_params => query_params,
|
|
522
|
+
:form_params => form_params,
|
|
523
|
+
:body => post_body,
|
|
524
|
+
:auth_names => auth_names,
|
|
525
|
+
:return_type => 'ConnectedRepository')
|
|
526
|
+
if @api_client.config.debugging
|
|
527
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_connected_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
528
|
+
end
|
|
529
|
+
return data, status_code, headers
|
|
530
|
+
end
|
|
531
|
+
# Update a connected repository for this repository.
|
|
532
|
+
# Update a connected repository for this repository.
|
|
533
|
+
# @param owner
|
|
534
|
+
# @param identifier
|
|
535
|
+
# @param slug_perm
|
|
536
|
+
# @param [Hash] opts the optional parameters
|
|
537
|
+
# @option opts [ConnectedRepositoryRequest] :data
|
|
538
|
+
# @return [ConnectedRepository]
|
|
539
|
+
def repos_connected_update(owner, identifier, slug_perm, opts = {})
|
|
540
|
+
data, _status_code, _headers = repos_connected_update_with_http_info(owner, identifier, slug_perm, opts)
|
|
541
|
+
data
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
# Update a connected repository for this repository.
|
|
545
|
+
# Update a connected repository for this repository.
|
|
546
|
+
# @param owner
|
|
547
|
+
# @param identifier
|
|
548
|
+
# @param slug_perm
|
|
549
|
+
# @param [Hash] opts the optional parameters
|
|
550
|
+
# @option opts [ConnectedRepositoryRequest] :data
|
|
551
|
+
# @return [Array<(ConnectedRepository, Fixnum, Hash)>] ConnectedRepository data, response status code and response headers
|
|
552
|
+
def repos_connected_update_with_http_info(owner, identifier, slug_perm, opts = {})
|
|
553
|
+
if @api_client.config.debugging
|
|
554
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_connected_update ...'
|
|
555
|
+
end
|
|
556
|
+
# verify the required parameter 'owner' is set
|
|
557
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
558
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_connected_update"
|
|
559
|
+
end
|
|
560
|
+
# verify the required parameter 'identifier' is set
|
|
561
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
562
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_connected_update"
|
|
563
|
+
end
|
|
564
|
+
# verify the required parameter 'slug_perm' is set
|
|
565
|
+
if @api_client.config.client_side_validation && slug_perm.nil?
|
|
566
|
+
fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_connected_update"
|
|
567
|
+
end
|
|
568
|
+
# resource path
|
|
569
|
+
local_var_path = '/repos/{owner}/{identifier}/connected/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
|
|
570
|
+
|
|
571
|
+
# query parameters
|
|
572
|
+
query_params = {}
|
|
573
|
+
|
|
574
|
+
# header parameters
|
|
575
|
+
header_params = {}
|
|
576
|
+
# HTTP header 'Accept' (if needed)
|
|
577
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
578
|
+
# HTTP header 'Content-Type'
|
|
579
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
580
|
+
|
|
581
|
+
# form parameters
|
|
582
|
+
form_params = {}
|
|
583
|
+
|
|
584
|
+
# http body (model)
|
|
585
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
|
586
|
+
auth_names = ['apikey', 'basic']
|
|
587
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
588
|
+
:header_params => header_params,
|
|
589
|
+
:query_params => query_params,
|
|
590
|
+
:form_params => form_params,
|
|
591
|
+
:body => post_body,
|
|
592
|
+
:auth_names => auth_names,
|
|
593
|
+
:return_type => 'ConnectedRepository')
|
|
594
|
+
if @api_client.config.debugging
|
|
595
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_connected_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
596
|
+
end
|
|
597
|
+
return data, status_code, headers
|
|
598
|
+
end
|
|
204
599
|
# Create a new repository in a given namespace.
|
|
205
600
|
# Create a new repository in a given namespace.
|
|
206
601
|
# @param owner
|
|
@@ -257,7 +652,7 @@ module CloudsmithApi
|
|
|
257
652
|
end
|
|
258
653
|
return data, status_code, headers
|
|
259
654
|
end
|
|
260
|
-
# Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories.
|
|
655
|
+
# Delete a repository in a given namespace. Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories.
|
|
261
656
|
# @param owner
|
|
262
657
|
# @param identifier
|
|
263
658
|
# @param [Hash] opts the optional parameters
|
|
@@ -267,7 +662,7 @@ module CloudsmithApi
|
|
|
267
662
|
nil
|
|
268
663
|
end
|
|
269
664
|
|
|
270
|
-
# Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories.
|
|
665
|
+
# Delete a repository in a given namespace. Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories.
|
|
271
666
|
# @param owner
|
|
272
667
|
# @param identifier
|
|
273
668
|
# @param [Hash] opts the optional parameters
|
|
@@ -496,6 +891,188 @@ module CloudsmithApi
|
|
|
496
891
|
end
|
|
497
892
|
return data, status_code, headers
|
|
498
893
|
end
|
|
894
|
+
# Set the active Ed25519 key for the Repository.
|
|
895
|
+
# Set the active Ed25519 key for the Repository.
|
|
896
|
+
# @param owner
|
|
897
|
+
# @param identifier
|
|
898
|
+
# @param [Hash] opts the optional parameters
|
|
899
|
+
# @option opts [RepositoryEd25519KeyCreate] :data
|
|
900
|
+
# @return [RepositoryEd25519Key]
|
|
901
|
+
def repos_ed25519_create(owner, identifier, opts = {})
|
|
902
|
+
data, _status_code, _headers = repos_ed25519_create_with_http_info(owner, identifier, opts)
|
|
903
|
+
data
|
|
904
|
+
end
|
|
905
|
+
|
|
906
|
+
# Set the active Ed25519 key for the Repository.
|
|
907
|
+
# Set the active Ed25519 key for the Repository.
|
|
908
|
+
# @param owner
|
|
909
|
+
# @param identifier
|
|
910
|
+
# @param [Hash] opts the optional parameters
|
|
911
|
+
# @option opts [RepositoryEd25519KeyCreate] :data
|
|
912
|
+
# @return [Array<(RepositoryEd25519Key, Fixnum, Hash)>] RepositoryEd25519Key data, response status code and response headers
|
|
913
|
+
def repos_ed25519_create_with_http_info(owner, identifier, opts = {})
|
|
914
|
+
if @api_client.config.debugging
|
|
915
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_ed25519_create ...'
|
|
916
|
+
end
|
|
917
|
+
# verify the required parameter 'owner' is set
|
|
918
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
919
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_ed25519_create"
|
|
920
|
+
end
|
|
921
|
+
# verify the required parameter 'identifier' is set
|
|
922
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
923
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_ed25519_create"
|
|
924
|
+
end
|
|
925
|
+
# resource path
|
|
926
|
+
local_var_path = '/repos/{owner}/{identifier}/ed25519/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
|
927
|
+
|
|
928
|
+
# query parameters
|
|
929
|
+
query_params = {}
|
|
930
|
+
|
|
931
|
+
# header parameters
|
|
932
|
+
header_params = {}
|
|
933
|
+
# HTTP header 'Accept' (if needed)
|
|
934
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
935
|
+
# HTTP header 'Content-Type'
|
|
936
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
937
|
+
|
|
938
|
+
# form parameters
|
|
939
|
+
form_params = {}
|
|
940
|
+
|
|
941
|
+
# http body (model)
|
|
942
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
|
943
|
+
auth_names = ['apikey', 'basic']
|
|
944
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
945
|
+
:header_params => header_params,
|
|
946
|
+
:query_params => query_params,
|
|
947
|
+
:form_params => form_params,
|
|
948
|
+
:body => post_body,
|
|
949
|
+
:auth_names => auth_names,
|
|
950
|
+
:return_type => 'RepositoryEd25519Key')
|
|
951
|
+
if @api_client.config.debugging
|
|
952
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_ed25519_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
953
|
+
end
|
|
954
|
+
return data, status_code, headers
|
|
955
|
+
end
|
|
956
|
+
# Retrieve the active Ed25519 key for the Repository.
|
|
957
|
+
# Retrieve the active Ed25519 key for the Repository.
|
|
958
|
+
# @param owner
|
|
959
|
+
# @param identifier
|
|
960
|
+
# @param [Hash] opts the optional parameters
|
|
961
|
+
# @return [RepositoryEd25519Key]
|
|
962
|
+
def repos_ed25519_list(owner, identifier, opts = {})
|
|
963
|
+
data, _status_code, _headers = repos_ed25519_list_with_http_info(owner, identifier, opts)
|
|
964
|
+
data
|
|
965
|
+
end
|
|
966
|
+
|
|
967
|
+
# Retrieve the active Ed25519 key for the Repository.
|
|
968
|
+
# Retrieve the active Ed25519 key for the Repository.
|
|
969
|
+
# @param owner
|
|
970
|
+
# @param identifier
|
|
971
|
+
# @param [Hash] opts the optional parameters
|
|
972
|
+
# @return [Array<(RepositoryEd25519Key, Fixnum, Hash)>] RepositoryEd25519Key data, response status code and response headers
|
|
973
|
+
def repos_ed25519_list_with_http_info(owner, identifier, opts = {})
|
|
974
|
+
if @api_client.config.debugging
|
|
975
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_ed25519_list ...'
|
|
976
|
+
end
|
|
977
|
+
# verify the required parameter 'owner' is set
|
|
978
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
979
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_ed25519_list"
|
|
980
|
+
end
|
|
981
|
+
# verify the required parameter 'identifier' is set
|
|
982
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
983
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_ed25519_list"
|
|
984
|
+
end
|
|
985
|
+
# resource path
|
|
986
|
+
local_var_path = '/repos/{owner}/{identifier}/ed25519/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
|
987
|
+
|
|
988
|
+
# query parameters
|
|
989
|
+
query_params = {}
|
|
990
|
+
|
|
991
|
+
# header parameters
|
|
992
|
+
header_params = {}
|
|
993
|
+
# HTTP header 'Accept' (if needed)
|
|
994
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
995
|
+
# HTTP header 'Content-Type'
|
|
996
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
997
|
+
|
|
998
|
+
# form parameters
|
|
999
|
+
form_params = {}
|
|
1000
|
+
|
|
1001
|
+
# http body (model)
|
|
1002
|
+
post_body = nil
|
|
1003
|
+
auth_names = ['apikey', 'basic']
|
|
1004
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
1005
|
+
:header_params => header_params,
|
|
1006
|
+
:query_params => query_params,
|
|
1007
|
+
:form_params => form_params,
|
|
1008
|
+
:body => post_body,
|
|
1009
|
+
:auth_names => auth_names,
|
|
1010
|
+
:return_type => 'RepositoryEd25519Key')
|
|
1011
|
+
if @api_client.config.debugging
|
|
1012
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_ed25519_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1013
|
+
end
|
|
1014
|
+
return data, status_code, headers
|
|
1015
|
+
end
|
|
1016
|
+
# Regenerate Ed25519 Key for the Repository.
|
|
1017
|
+
# Regenerate Ed25519 Key for the Repository.
|
|
1018
|
+
# @param owner
|
|
1019
|
+
# @param identifier
|
|
1020
|
+
# @param [Hash] opts the optional parameters
|
|
1021
|
+
# @return [RepositoryEd25519Key]
|
|
1022
|
+
def repos_ed25519_regenerate(owner, identifier, opts = {})
|
|
1023
|
+
data, _status_code, _headers = repos_ed25519_regenerate_with_http_info(owner, identifier, opts)
|
|
1024
|
+
data
|
|
1025
|
+
end
|
|
1026
|
+
|
|
1027
|
+
# Regenerate Ed25519 Key for the Repository.
|
|
1028
|
+
# Regenerate Ed25519 Key for the Repository.
|
|
1029
|
+
# @param owner
|
|
1030
|
+
# @param identifier
|
|
1031
|
+
# @param [Hash] opts the optional parameters
|
|
1032
|
+
# @return [Array<(RepositoryEd25519Key, Fixnum, Hash)>] RepositoryEd25519Key data, response status code and response headers
|
|
1033
|
+
def repos_ed25519_regenerate_with_http_info(owner, identifier, opts = {})
|
|
1034
|
+
if @api_client.config.debugging
|
|
1035
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_ed25519_regenerate ...'
|
|
1036
|
+
end
|
|
1037
|
+
# verify the required parameter 'owner' is set
|
|
1038
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
1039
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_ed25519_regenerate"
|
|
1040
|
+
end
|
|
1041
|
+
# verify the required parameter 'identifier' is set
|
|
1042
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
1043
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_ed25519_regenerate"
|
|
1044
|
+
end
|
|
1045
|
+
# resource path
|
|
1046
|
+
local_var_path = '/repos/{owner}/{identifier}/ed25519/regenerate/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
|
1047
|
+
|
|
1048
|
+
# query parameters
|
|
1049
|
+
query_params = {}
|
|
1050
|
+
|
|
1051
|
+
# header parameters
|
|
1052
|
+
header_params = {}
|
|
1053
|
+
# HTTP header 'Accept' (if needed)
|
|
1054
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1055
|
+
# HTTP header 'Content-Type'
|
|
1056
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1057
|
+
|
|
1058
|
+
# form parameters
|
|
1059
|
+
form_params = {}
|
|
1060
|
+
|
|
1061
|
+
# http body (model)
|
|
1062
|
+
post_body = nil
|
|
1063
|
+
auth_names = ['apikey', 'basic']
|
|
1064
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
1065
|
+
:header_params => header_params,
|
|
1066
|
+
:query_params => query_params,
|
|
1067
|
+
:form_params => form_params,
|
|
1068
|
+
:body => post_body,
|
|
1069
|
+
:auth_names => auth_names,
|
|
1070
|
+
:return_type => 'RepositoryEd25519Key')
|
|
1071
|
+
if @api_client.config.debugging
|
|
1072
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_ed25519_regenerate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1073
|
+
end
|
|
1074
|
+
return data, status_code, headers
|
|
1075
|
+
end
|
|
499
1076
|
# Disable GeoIP for this repository.
|
|
500
1077
|
# Disable GeoIP for this repository.
|
|
501
1078
|
# @param owner
|
|
@@ -170,7 +170,7 @@ module CloudsmithApi
|
|
|
170
170
|
# @param [Hash] opts the optional parameters
|
|
171
171
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
172
172
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
173
|
-
# @return [
|
|
173
|
+
# @return [InlineResponse2002]
|
|
174
174
|
def user_tokens_list(opts = {})
|
|
175
175
|
data, _status_code, _headers = user_tokens_list_with_http_info(opts)
|
|
176
176
|
data
|
|
@@ -181,7 +181,7 @@ module CloudsmithApi
|
|
|
181
181
|
# @param [Hash] opts the optional parameters
|
|
182
182
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
183
183
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
184
|
-
# @return [Array<(
|
|
184
|
+
# @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
|
|
185
185
|
def user_tokens_list_with_http_info(opts = {})
|
|
186
186
|
if @api_client.config.debugging
|
|
187
187
|
@api_client.config.logger.debug 'Calling API: UserApi.user_tokens_list ...'
|
|
@@ -213,7 +213,7 @@ module CloudsmithApi
|
|
|
213
213
|
:form_params => form_params,
|
|
214
214
|
:body => post_body,
|
|
215
215
|
:auth_names => auth_names,
|
|
216
|
-
:return_type => '
|
|
216
|
+
:return_type => 'InlineResponse2002')
|
|
217
217
|
if @api_client.config.debugging
|
|
218
218
|
@api_client.config.logger.debug "API called: UserApi#user_tokens_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
219
219
|
end
|