cloudsmith-api 2.0.23 → 2.0.24
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 +17 -4
- data/build.json +1 -1
- data/docs/FormatSupport.md +1 -0
- data/docs/GenericPackageUpload.md +90 -0
- data/docs/GenericPackageUploadRequest.md +13 -0
- data/docs/GenericUpstream.md +33 -0
- data/docs/GenericUpstreamRequest.md +21 -0
- data/docs/GenericUpstreamRequestPatch.md +21 -0
- data/docs/MavenUpstream.md +1 -0
- data/docs/MavenUpstreamRequest.md +1 -0
- data/docs/MavenUpstreamRequestPatch.md +1 -0
- data/docs/OrganizationTeam.md +1 -1
- data/docs/OrganizationTeamRequest.md +1 -1
- data/docs/OrganizationTeamRequestPatch.md +1 -1
- data/docs/Package.md +1 -0
- data/docs/PackageCopy.md +1 -0
- data/docs/PackageCopyRequest.md +1 -1
- data/docs/PackageMove.md +1 -0
- data/docs/PackageMoveRequest.md +1 -1
- data/docs/PackageQuarantine.md +1 -0
- data/docs/PackageResync.md +1 -0
- data/docs/PackageTag.md +1 -0
- data/docs/PackagesApi.md +131 -0
- data/docs/ReposApi.md +401 -0
- data/lib/cloudsmith-api/api/packages_api.rb +123 -0
- data/lib/cloudsmith-api/api/repos_api.rb +395 -0
- data/lib/cloudsmith-api/models/format_support.rb +16 -1
- data/lib/cloudsmith-api/models/generic_package_upload.rb +992 -0
- data/lib/cloudsmith-api/models/generic_package_upload_request.rb +245 -0
- data/lib/cloudsmith-api/models/generic_upstream.rb +503 -0
- data/lib/cloudsmith-api/models/generic_upstream_request.rb +375 -0
- data/lib/cloudsmith-api/models/generic_upstream_request_patch.rb +365 -0
- data/lib/cloudsmith-api/models/maven_upstream.rb +25 -1
- data/lib/cloudsmith-api/models/maven_upstream_request.rb +25 -1
- data/lib/cloudsmith-api/models/maven_upstream_request_patch.rb +25 -1
- data/lib/cloudsmith-api/models/organization_team.rb +1 -0
- data/lib/cloudsmith-api/models/organization_team_request.rb +1 -0
- data/lib/cloudsmith-api/models/organization_team_request_patch.rb +1 -0
- data/lib/cloudsmith-api/models/package.rb +11 -1
- data/lib/cloudsmith-api/models/package_copy.rb +11 -1
- data/lib/cloudsmith-api/models/package_copy_request.rb +1 -0
- data/lib/cloudsmith-api/models/package_move.rb +11 -1
- data/lib/cloudsmith-api/models/package_move_request.rb +1 -0
- data/lib/cloudsmith-api/models/package_quarantine.rb +11 -1
- data/lib/cloudsmith-api/models/package_resync.rb +11 -1
- data/lib/cloudsmith-api/models/package_tag.rb +11 -1
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +5 -0
- data/spec/api/packages_api_spec.rb +28 -0
- data/spec/api/repos_api_spec.rb +87 -0
- data/spec/models/format_support_spec.rb +6 -0
- data/spec/models/generic_package_upload_request_spec.rb +71 -0
- data/spec/models/generic_package_upload_spec.rb +537 -0
- data/spec/models/generic_upstream_request_patch_spec.rb +127 -0
- data/spec/models/generic_upstream_request_spec.rb +127 -0
- data/spec/models/generic_upstream_spec.rb +203 -0
- data/spec/models/maven_upstream_request_patch_spec.rb +10 -0
- data/spec/models/maven_upstream_request_spec.rb +10 -0
- data/spec/models/maven_upstream_spec.rb +10 -0
- data/spec/models/package_copy_spec.rb +6 -0
- data/spec/models/package_move_spec.rb +6 -0
- data/spec/models/package_quarantine_spec.rb +6 -0
- data/spec/models/package_resync_spec.rb +6 -0
- data/spec/models/package_spec.rb +6 -0
- data/spec/models/package_tag_spec.rb +6 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.1/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.0.1/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.0.1/mkmf.log +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.3/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.0.1/ext/bigdecimal/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.3/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 +25 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cf4b7b4e9344c9fb3e481076c5667ca56db25b657e479748c54f3f82730b5f27
|
|
4
|
+
data.tar.gz: 6a09707bb6cee89f97cf477cb5bf1c9e2e602a85570f7d80fd741b9973e5e44e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57d04adc4ec667b15a97264b155a533e3a68494bf7ddaa281120045b08824c0ad045855491112ef02f7689500e279bbf2d16955aac7f8ee56067960a9a20ecab
|
|
7
|
+
data.tar.gz: 37d052c51e567eda79aa883cc67960d36e09d1c387b4baa09a8dc8d1d82a9b5219a8ee7c23454733d61831dd5efd788a2574a7eb6501f64cfc54b3dcd035e35f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ The API to the Cloudsmith Service
|
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
|
8
8
|
|
|
9
9
|
- API version: v1
|
|
10
|
-
- Package version: 2.0.
|
|
10
|
+
- Package version: 2.0.24
|
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io)
|
|
13
13
|
|
|
@@ -24,15 +24,15 @@ gem build cloudsmith-api.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./cloudsmith-api-2.0.
|
|
27
|
+
gem install ./cloudsmith-api-2.0.24.gem
|
|
28
28
|
```
|
|
29
|
-
(for development, run `gem install --dev ./cloudsmith-api-2.0.
|
|
29
|
+
(for development, run `gem install --dev ./cloudsmith-api-2.0.24.gem` to install the development dependencies)
|
|
30
30
|
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
32
32
|
|
|
33
33
|
Finally add this to the Gemfile:
|
|
34
34
|
|
|
35
|
-
gem 'cloudsmith-api', '~> 2.0.
|
|
35
|
+
gem 'cloudsmith-api', '~> 2.0.24'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -217,6 +217,7 @@ Class | Method | HTTP request | Description
|
|
|
217
217
|
*CloudsmithApi::PackagesApi* | [**packages_upload_dart**](docs/PackagesApi.md#packages_upload_dart) | **POST** /packages/{owner}/{repo}/upload/dart/ | Create a new Dart package
|
|
218
218
|
*CloudsmithApi::PackagesApi* | [**packages_upload_deb**](docs/PackagesApi.md#packages_upload_deb) | **POST** /packages/{owner}/{repo}/upload/deb/ | Create a new Debian package
|
|
219
219
|
*CloudsmithApi::PackagesApi* | [**packages_upload_docker**](docs/PackagesApi.md#packages_upload_docker) | **POST** /packages/{owner}/{repo}/upload/docker/ | Create a new Docker package
|
|
220
|
+
*CloudsmithApi::PackagesApi* | [**packages_upload_generic**](docs/PackagesApi.md#packages_upload_generic) | **POST** /packages/{owner}/{repo}/upload/generic/ | Create a new Generic package
|
|
220
221
|
*CloudsmithApi::PackagesApi* | [**packages_upload_go**](docs/PackagesApi.md#packages_upload_go) | **POST** /packages/{owner}/{repo}/upload/go/ | Create a new Go package
|
|
221
222
|
*CloudsmithApi::PackagesApi* | [**packages_upload_helm**](docs/PackagesApi.md#packages_upload_helm) | **POST** /packages/{owner}/{repo}/upload/helm/ | Create a new Helm package
|
|
222
223
|
*CloudsmithApi::PackagesApi* | [**packages_upload_hex**](docs/PackagesApi.md#packages_upload_hex) | **POST** /packages/{owner}/{repo}/upload/hex/ | Create a new Hex package
|
|
@@ -243,6 +244,7 @@ Class | Method | HTTP request | Description
|
|
|
243
244
|
*CloudsmithApi::PackagesApi* | [**packages_validate_upload_dart**](docs/PackagesApi.md#packages_validate_upload_dart) | **POST** /packages/{owner}/{repo}/validate-upload/dart/ | Validate parameters for create Dart package
|
|
244
245
|
*CloudsmithApi::PackagesApi* | [**packages_validate_upload_deb**](docs/PackagesApi.md#packages_validate_upload_deb) | **POST** /packages/{owner}/{repo}/validate-upload/deb/ | Validate parameters for create Debian package
|
|
245
246
|
*CloudsmithApi::PackagesApi* | [**packages_validate_upload_docker**](docs/PackagesApi.md#packages_validate_upload_docker) | **POST** /packages/{owner}/{repo}/validate-upload/docker/ | Validate parameters for create Docker package
|
|
247
|
+
*CloudsmithApi::PackagesApi* | [**packages_validate_upload_generic**](docs/PackagesApi.md#packages_validate_upload_generic) | **POST** /packages/{owner}/{repo}/validate-upload/generic/ | Validate parameters for create Generic package
|
|
246
248
|
*CloudsmithApi::PackagesApi* | [**packages_validate_upload_go**](docs/PackagesApi.md#packages_validate_upload_go) | **POST** /packages/{owner}/{repo}/validate-upload/go/ | Validate parameters for create Go package
|
|
247
249
|
*CloudsmithApi::PackagesApi* | [**packages_validate_upload_helm**](docs/PackagesApi.md#packages_validate_upload_helm) | **POST** /packages/{owner}/{repo}/validate-upload/helm/ | Validate parameters for create Helm package
|
|
248
250
|
*CloudsmithApi::PackagesApi* | [**packages_validate_upload_hex**](docs/PackagesApi.md#packages_validate_upload_hex) | **POST** /packages/{owner}/{repo}/validate-upload/hex/ | Validate parameters for create Hex package
|
|
@@ -333,6 +335,12 @@ Class | Method | HTTP request | Description
|
|
|
333
335
|
*CloudsmithApi::ReposApi* | [**repos_upstream_docker_partial_update**](docs/ReposApi.md#repos_upstream_docker_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Partially update a Docker upstream config for this repository.
|
|
334
336
|
*CloudsmithApi::ReposApi* | [**repos_upstream_docker_read**](docs/ReposApi.md#repos_upstream_docker_read) | **GET** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Retrieve a Docker upstream config for this repository.
|
|
335
337
|
*CloudsmithApi::ReposApi* | [**repos_upstream_docker_update**](docs/ReposApi.md#repos_upstream_docker_update) | **PUT** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Update a Docker upstream config for this repository.
|
|
338
|
+
*CloudsmithApi::ReposApi* | [**repos_upstream_generic_create**](docs/ReposApi.md#repos_upstream_generic_create) | **POST** /repos/{owner}/{identifier}/upstream/generic/ | Create a Generic upstream config for this repository.
|
|
339
|
+
*CloudsmithApi::ReposApi* | [**repos_upstream_generic_delete**](docs/ReposApi.md#repos_upstream_generic_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/generic/{slug_perm}/ | Delete a Generic upstream config for this repository.
|
|
340
|
+
*CloudsmithApi::ReposApi* | [**repos_upstream_generic_list**](docs/ReposApi.md#repos_upstream_generic_list) | **GET** /repos/{owner}/{identifier}/upstream/generic/ | List Generic upstream configs for this repository.
|
|
341
|
+
*CloudsmithApi::ReposApi* | [**repos_upstream_generic_partial_update**](docs/ReposApi.md#repos_upstream_generic_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/generic/{slug_perm}/ | Partially update a Generic upstream config for this repository.
|
|
342
|
+
*CloudsmithApi::ReposApi* | [**repos_upstream_generic_read**](docs/ReposApi.md#repos_upstream_generic_read) | **GET** /repos/{owner}/{identifier}/upstream/generic/{slug_perm}/ | Retrieve a Generic upstream config for this repository.
|
|
343
|
+
*CloudsmithApi::ReposApi* | [**repos_upstream_generic_update**](docs/ReposApi.md#repos_upstream_generic_update) | **PUT** /repos/{owner}/{identifier}/upstream/generic/{slug_perm}/ | Update a Generic upstream config for this repository.
|
|
336
344
|
*CloudsmithApi::ReposApi* | [**repos_upstream_go_create**](docs/ReposApi.md#repos_upstream_go_create) | **POST** /repos/{owner}/{identifier}/upstream/go/ | Create a Go upstream config for this repository.
|
|
337
345
|
*CloudsmithApi::ReposApi* | [**repos_upstream_go_delete**](docs/ReposApi.md#repos_upstream_go_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Delete a Go upstream config for this repository.
|
|
338
346
|
*CloudsmithApi::ReposApi* | [**repos_upstream_go_list**](docs/ReposApi.md#repos_upstream_go_list) | **GET** /repos/{owner}/{identifier}/upstream/go/ | List Go upstream configs for this repository.
|
|
@@ -485,6 +493,11 @@ Class | Method | HTTP request | Description
|
|
|
485
493
|
- [CloudsmithApi::Format](docs/Format.md)
|
|
486
494
|
- [CloudsmithApi::FormatSupport](docs/FormatSupport.md)
|
|
487
495
|
- [CloudsmithApi::FormatSupportUpstream](docs/FormatSupportUpstream.md)
|
|
496
|
+
- [CloudsmithApi::GenericPackageUpload](docs/GenericPackageUpload.md)
|
|
497
|
+
- [CloudsmithApi::GenericPackageUploadRequest](docs/GenericPackageUploadRequest.md)
|
|
498
|
+
- [CloudsmithApi::GenericUpstream](docs/GenericUpstream.md)
|
|
499
|
+
- [CloudsmithApi::GenericUpstreamRequest](docs/GenericUpstreamRequest.md)
|
|
500
|
+
- [CloudsmithApi::GenericUpstreamRequestPatch](docs/GenericUpstreamRequestPatch.md)
|
|
488
501
|
- [CloudsmithApi::GeoIpLocation](docs/GeoIpLocation.md)
|
|
489
502
|
- [CloudsmithApi::GoPackageUpload](docs/GoPackageUpload.md)
|
|
490
503
|
- [CloudsmithApi::GoPackageUploadRequest](docs/GoPackageUploadRequest.md)
|
data/build.json
CHANGED
data/docs/FormatSupport.md
CHANGED
|
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
|
6
6
|
**dependencies** | **BOOLEAN** | If true the package format supports dependencies |
|
|
7
7
|
**distributions** | **BOOLEAN** | If true the package format supports distributions |
|
|
8
8
|
**file_lists** | **BOOLEAN** | If true the package format supports file lists |
|
|
9
|
+
**filepaths** | **BOOLEAN** | If true the package format supports filepaths |
|
|
9
10
|
**metadata** | **BOOLEAN** | If true the package format supports metadata |
|
|
10
11
|
**upstreams** | [**FormatSupportUpstream**](FormatSupportUpstream.md) | |
|
|
11
12
|
**versioning** | **BOOLEAN** | If true the package format supports versioning |
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# CloudsmithApi::GenericPackageUpload
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**architectures** | [**Array<Architecture>**](Architecture.md) | | [optional]
|
|
7
|
+
**cdn_url** | **String** | | [optional]
|
|
8
|
+
**checksum_md5** | **String** | | [optional]
|
|
9
|
+
**checksum_sha1** | **String** | | [optional]
|
|
10
|
+
**checksum_sha256** | **String** | | [optional]
|
|
11
|
+
**checksum_sha512** | **String** | | [optional]
|
|
12
|
+
**dependencies_checksum_md5** | **String** | A checksum of all of the package's dependencies. | [optional]
|
|
13
|
+
**dependencies_url** | **String** | | [optional]
|
|
14
|
+
**description** | **String** | A textual description of this package. | [optional]
|
|
15
|
+
**display_name** | **String** | | [optional]
|
|
16
|
+
**distro** | [**Distribution**](Distribution.md) | | [optional]
|
|
17
|
+
**distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional]
|
|
18
|
+
**downloads** | **Integer** | | [optional]
|
|
19
|
+
**epoch** | **Integer** | The epoch of the package version (if any). | [optional]
|
|
20
|
+
**extension** | **String** | | [optional]
|
|
21
|
+
**filename** | **String** | | [optional]
|
|
22
|
+
**files** | [**Array<PackageFile>**](PackageFile.md) | | [optional]
|
|
23
|
+
**format** | **String** | | [optional]
|
|
24
|
+
**format_url** | **String** | | [optional]
|
|
25
|
+
**freeable_storage** | **Integer** | Amount of storage that will be freed if this package is deleted | [optional]
|
|
26
|
+
**fully_qualified_name** | **String** | | [optional]
|
|
27
|
+
**identifier_perm** | **String** | Unique and permanent identifier for the package. | [optional]
|
|
28
|
+
**identifiers** | **Hash<String, String>** | Return a map of identifier field names and their values. | [optional]
|
|
29
|
+
**indexed** | **BOOLEAN** | | [optional]
|
|
30
|
+
**is_cancellable** | **BOOLEAN** | | [optional]
|
|
31
|
+
**is_copyable** | **BOOLEAN** | | [optional]
|
|
32
|
+
**is_deleteable** | **BOOLEAN** | | [optional]
|
|
33
|
+
**is_downloadable** | **BOOLEAN** | | [optional]
|
|
34
|
+
**is_moveable** | **BOOLEAN** | | [optional]
|
|
35
|
+
**is_quarantinable** | **BOOLEAN** | | [optional]
|
|
36
|
+
**is_quarantined** | **BOOLEAN** | | [optional]
|
|
37
|
+
**is_resyncable** | **BOOLEAN** | | [optional]
|
|
38
|
+
**is_security_scannable** | **BOOLEAN** | | [optional]
|
|
39
|
+
**is_sync_awaiting** | **BOOLEAN** | | [optional]
|
|
40
|
+
**is_sync_completed** | **BOOLEAN** | | [optional]
|
|
41
|
+
**is_sync_failed** | **BOOLEAN** | | [optional]
|
|
42
|
+
**is_sync_in_flight** | **BOOLEAN** | | [optional]
|
|
43
|
+
**is_sync_in_progress** | **BOOLEAN** | | [optional]
|
|
44
|
+
**license** | **String** | The license of this package. | [optional]
|
|
45
|
+
**name** | **String** | The name of this package. | [optional]
|
|
46
|
+
**namespace** | **String** | | [optional]
|
|
47
|
+
**namespace_url** | **String** | | [optional]
|
|
48
|
+
**num_files** | **Integer** | | [optional]
|
|
49
|
+
**origin_repository** | **String** | | [optional]
|
|
50
|
+
**origin_repository_url** | **String** | | [optional]
|
|
51
|
+
**package_type** | **Integer** | The type of package contents. | [optional]
|
|
52
|
+
**policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional]
|
|
53
|
+
**raw_license** | **String** | The raw license string. | [optional]
|
|
54
|
+
**release** | **String** | The release of the package version (if any). | [optional]
|
|
55
|
+
**repository** | **String** | | [optional]
|
|
56
|
+
**repository_url** | **String** | | [optional]
|
|
57
|
+
**security_scan_completed_at** | **DateTime** | The datetime the security scanning was completed. | [optional]
|
|
58
|
+
**security_scan_started_at** | **DateTime** | The datetime the security scanning was started. | [optional]
|
|
59
|
+
**security_scan_status** | **String** | | [optional] [default to 'Awaiting Security Scan']
|
|
60
|
+
**security_scan_status_updated_at** | **DateTime** | The datetime the security scanning status was updated. | [optional]
|
|
61
|
+
**self_html_url** | **String** | | [optional]
|
|
62
|
+
**self_url** | **String** | | [optional]
|
|
63
|
+
**signature_url** | **String** | | [optional]
|
|
64
|
+
**size** | **Integer** | The calculated size of the package. | [optional]
|
|
65
|
+
**slug** | **String** | The public unique identifier for the package. | [optional]
|
|
66
|
+
**slug_perm** | **String** | | [optional]
|
|
67
|
+
**spdx_license** | **String** | The SPDX license identifier for this package. | [optional]
|
|
68
|
+
**stage** | **Integer** | The synchronisation (in progress) stage of the package. | [optional]
|
|
69
|
+
**stage_str** | **String** | | [optional]
|
|
70
|
+
**stage_updated_at** | **DateTime** | The datetime the package stage was updated at. | [optional]
|
|
71
|
+
**status** | **Integer** | The synchronisation status of the package. | [optional]
|
|
72
|
+
**status_reason** | **String** | A textual description for the synchronous status reason (if any | [optional]
|
|
73
|
+
**status_str** | **String** | | [optional]
|
|
74
|
+
**status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional]
|
|
75
|
+
**status_url** | **String** | | [optional]
|
|
76
|
+
**subtype** | **String** | | [optional]
|
|
77
|
+
**summary** | **String** | A one-liner synopsis of this package. | [optional]
|
|
78
|
+
**sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional]
|
|
79
|
+
**sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional]
|
|
80
|
+
**tags_automatic** | [**Tags**](Tags.md) | | [optional]
|
|
81
|
+
**tags_immutable** | [**Tags**](Tags.md) | | [optional]
|
|
82
|
+
**type_display** | **String** | | [optional]
|
|
83
|
+
**uploaded_at** | **DateTime** | The date this package was uploaded. | [optional]
|
|
84
|
+
**uploader** | **String** | | [optional]
|
|
85
|
+
**uploader_url** | **String** | | [optional]
|
|
86
|
+
**version** | **String** | The raw version for this package. | [optional]
|
|
87
|
+
**version_orig** | **String** | | [optional]
|
|
88
|
+
**vulnerability_scan_results_url** | **String** | | [optional]
|
|
89
|
+
|
|
90
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# CloudsmithApi::GenericPackageUploadRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**filepath** | **String** | The full filepath of the package including filename. |
|
|
7
|
+
**name** | **String** | The name of this package. | [optional]
|
|
8
|
+
**package_file** | **String** | The primary file for the package. |
|
|
9
|
+
**republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional]
|
|
10
|
+
**tags** | **String** | A comma-separated values list of tags to add to the package. | [optional]
|
|
11
|
+
**version** | **String** | The raw version for this package. | [optional]
|
|
12
|
+
|
|
13
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# CloudsmithApi::GenericUpstream
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**auth_mode** | **String** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None']
|
|
7
|
+
**auth_secret** | **String** | Secret to provide with requests to upstream. | [optional]
|
|
8
|
+
**auth_username** | **String** | Username to provide with requests to upstream. | [optional]
|
|
9
|
+
**available** | **String** | | [optional]
|
|
10
|
+
**can_reindex** | **String** | | [optional]
|
|
11
|
+
**created_at** | **DateTime** | The datetime the upstream source was created. | [optional]
|
|
12
|
+
**disable_reason** | **String** | | [optional] [default to 'N/A']
|
|
13
|
+
**disable_reason_text** | **String** | Human-readable explanation of why this upstream is disabled | [optional]
|
|
14
|
+
**extra_header_1** | **String** | The key for extra header #1 to send to upstream. | [optional]
|
|
15
|
+
**extra_header_2** | **String** | The key for extra header #2 to send to upstream. | [optional]
|
|
16
|
+
**extra_value_1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional]
|
|
17
|
+
**extra_value_2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional]
|
|
18
|
+
**has_failed_signature_verification** | **String** | | [optional]
|
|
19
|
+
**index_package_count** | **String** | The number of packages available in this upstream source | [optional]
|
|
20
|
+
**index_status** | **String** | The current indexing status of this upstream source | [optional]
|
|
21
|
+
**is_active** | **BOOLEAN** | Whether or not this upstream is active and ready for requests. | [optional]
|
|
22
|
+
**last_indexed** | **String** | The last time this upstream source was indexed | [optional]
|
|
23
|
+
**mode** | **String** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only']
|
|
24
|
+
**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. |
|
|
25
|
+
**pending_validation** | **BOOLEAN** | When true, this upstream source is pending validation. | [optional]
|
|
26
|
+
**priority** | **Integer** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional]
|
|
27
|
+
**slug_perm** | **String** | | [optional]
|
|
28
|
+
**updated_at** | **DateTime** | | [optional]
|
|
29
|
+
**upstream_prefix** | **String** | A unique prefix used to distinguish this upstream source within the repository. Generic upstreams can represent entirely different file servers, and we do not attempt to blend them. The prefix ensures each source remains separate, and requests including this prefix are routed to the correct upstream. | [optional]
|
|
30
|
+
**upstream_url** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. |
|
|
31
|
+
**verify_ssl** | **BOOLEAN** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional]
|
|
32
|
+
|
|
33
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# CloudsmithApi::GenericUpstreamRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**auth_mode** | **String** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None']
|
|
7
|
+
**auth_secret** | **String** | Secret to provide with requests to upstream. | [optional]
|
|
8
|
+
**auth_username** | **String** | Username to provide with requests to upstream. | [optional]
|
|
9
|
+
**extra_header_1** | **String** | The key for extra header #1 to send to upstream. | [optional]
|
|
10
|
+
**extra_header_2** | **String** | The key for extra header #2 to send to upstream. | [optional]
|
|
11
|
+
**extra_value_1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional]
|
|
12
|
+
**extra_value_2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional]
|
|
13
|
+
**is_active** | **BOOLEAN** | Whether or not this upstream is active and ready for requests. | [optional]
|
|
14
|
+
**mode** | **String** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only']
|
|
15
|
+
**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. |
|
|
16
|
+
**priority** | **Integer** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional]
|
|
17
|
+
**upstream_prefix** | **String** | A unique prefix used to distinguish this upstream source within the repository. Generic upstreams can represent entirely different file servers, and we do not attempt to blend them. The prefix ensures each source remains separate, and requests including this prefix are routed to the correct upstream. | [optional]
|
|
18
|
+
**upstream_url** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. |
|
|
19
|
+
**verify_ssl** | **BOOLEAN** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional]
|
|
20
|
+
|
|
21
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# CloudsmithApi::GenericUpstreamRequestPatch
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**auth_mode** | **String** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None']
|
|
7
|
+
**auth_secret** | **String** | Secret to provide with requests to upstream. | [optional]
|
|
8
|
+
**auth_username** | **String** | Username to provide with requests to upstream. | [optional]
|
|
9
|
+
**extra_header_1** | **String** | The key for extra header #1 to send to upstream. | [optional]
|
|
10
|
+
**extra_header_2** | **String** | The key for extra header #2 to send to upstream. | [optional]
|
|
11
|
+
**extra_value_1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional]
|
|
12
|
+
**extra_value_2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional]
|
|
13
|
+
**is_active** | **BOOLEAN** | Whether or not this upstream is active and ready for requests. | [optional]
|
|
14
|
+
**mode** | **String** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only']
|
|
15
|
+
**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | [optional]
|
|
16
|
+
**priority** | **Integer** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional]
|
|
17
|
+
**upstream_prefix** | **String** | A unique prefix used to distinguish this upstream source within the repository. Generic upstreams can represent entirely different file servers, and we do not attempt to blend them. The prefix ensures each source remains separate, and requests including this prefix are routed to the correct upstream. | [optional]
|
|
18
|
+
**upstream_url** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | [optional]
|
|
19
|
+
**verify_ssl** | **BOOLEAN** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional]
|
|
20
|
+
|
|
21
|
+
|
data/docs/MavenUpstream.md
CHANGED
|
@@ -29,6 +29,7 @@ Name | Type | Description | Notes
|
|
|
29
29
|
**pending_validation** | **BOOLEAN** | When true, this upstream source is pending validation. | [optional]
|
|
30
30
|
**priority** | **Integer** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional]
|
|
31
31
|
**slug_perm** | **String** | | [optional]
|
|
32
|
+
**trust_level** | **String** | Trust level allows for control of the visibility of upstream artifacts to native package managers. Where supported by formats, the default level (untrusted) is recommended for all upstreams, and helps to safeguard against common dependency confusion attack vectors. | [optional] [default to 'Trusted']
|
|
32
33
|
**updated_at** | **DateTime** | | [optional]
|
|
33
34
|
**upstream_url** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. |
|
|
34
35
|
**verification_status** | **String** | The signature verification status for this upstream. | [optional] [default to 'Unknown']
|
|
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**mode** | **String** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only']
|
|
18
18
|
**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. |
|
|
19
19
|
**priority** | **Integer** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional]
|
|
20
|
+
**trust_level** | **String** | Trust level allows for control of the visibility of upstream artifacts to native package managers. Where supported by formats, the default level (untrusted) is recommended for all upstreams, and helps to safeguard against common dependency confusion attack vectors. | [optional] [default to 'Trusted']
|
|
20
21
|
**upstream_url** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. |
|
|
21
22
|
**verify_ssl** | **BOOLEAN** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional]
|
|
22
23
|
|
|
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**mode** | **String** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only']
|
|
18
18
|
**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | [optional]
|
|
19
19
|
**priority** | **Integer** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional]
|
|
20
|
+
**trust_level** | **String** | Trust level allows for control of the visibility of upstream artifacts to native package managers. Where supported by formats, the default level (untrusted) is recommended for all upstreams, and helps to safeguard against common dependency confusion attack vectors. | [optional] [default to 'Trusted']
|
|
20
21
|
**upstream_url** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | [optional]
|
|
21
22
|
**verify_ssl** | **BOOLEAN** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional]
|
|
22
23
|
|
data/docs/OrganizationTeam.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**description** | **String** |
|
|
6
|
+
**description** | **String** | A detailed description of the team. | [optional]
|
|
7
7
|
**name** | **String** | A descriptive name for the team. |
|
|
8
8
|
**slug** | **String** | | [optional]
|
|
9
9
|
**slug_perm** | **String** | | [optional]
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**description** | **String** |
|
|
6
|
+
**description** | **String** | A detailed description of the team. | [optional]
|
|
7
7
|
**name** | **String** | A descriptive name for the team. |
|
|
8
8
|
**slug** | **String** | | [optional]
|
|
9
9
|
**visibility** | **String** | | [optional] [default to 'Visible']
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**description** | **String** |
|
|
6
|
+
**description** | **String** | A detailed description of the team. | [optional]
|
|
7
7
|
**name** | **String** | A descriptive name for the team. | [optional]
|
|
8
8
|
**slug** | **String** | | [optional]
|
|
9
9
|
**visibility** | **String** | | [optional] [default to 'Visible']
|
data/docs/Package.md
CHANGED
|
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**epoch** | **Integer** | The epoch of the package version (if any). | [optional]
|
|
20
20
|
**extension** | **String** | | [optional]
|
|
21
21
|
**filename** | **String** | | [optional]
|
|
22
|
+
**filepath** | **String** | Full path to the file, including filename e.g. bin/utils/tool.tar.gz | [optional]
|
|
22
23
|
**files** | [**Array<PackageFile>**](PackageFile.md) | | [optional]
|
|
23
24
|
**format** | **String** | | [optional]
|
|
24
25
|
**format_url** | **String** | | [optional]
|
data/docs/PackageCopy.md
CHANGED
|
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**epoch** | **Integer** | The epoch of the package version (if any). | [optional]
|
|
20
20
|
**extension** | **String** | | [optional]
|
|
21
21
|
**filename** | **String** | | [optional]
|
|
22
|
+
**filepath** | **String** | Full path to the file, including filename e.g. bin/utils/tool.tar.gz | [optional]
|
|
22
23
|
**files** | [**Array<PackageFile>**](PackageFile.md) | | [optional]
|
|
23
24
|
**format** | **String** | | [optional]
|
|
24
25
|
**format_url** | **String** | | [optional]
|
data/docs/PackageCopyRequest.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**destination** | **String** |
|
|
6
|
+
**destination** | **String** | The name of the destination repository without the namespace. |
|
|
7
7
|
**republish** | **BOOLEAN** | If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional]
|
|
8
8
|
|
|
9
9
|
|
data/docs/PackageMove.md
CHANGED
|
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**epoch** | **Integer** | The epoch of the package version (if any). | [optional]
|
|
20
20
|
**extension** | **String** | | [optional]
|
|
21
21
|
**filename** | **String** | | [optional]
|
|
22
|
+
**filepath** | **String** | Full path to the file, including filename e.g. bin/utils/tool.tar.gz | [optional]
|
|
22
23
|
**files** | [**Array<PackageFile>**](PackageFile.md) | | [optional]
|
|
23
24
|
**format** | **String** | | [optional]
|
|
24
25
|
**format_url** | **String** | | [optional]
|
data/docs/PackageMoveRequest.md
CHANGED
data/docs/PackageQuarantine.md
CHANGED
|
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**epoch** | **Integer** | The epoch of the package version (if any). | [optional]
|
|
20
20
|
**extension** | **String** | | [optional]
|
|
21
21
|
**filename** | **String** | | [optional]
|
|
22
|
+
**filepath** | **String** | Full path to the file, including filename e.g. bin/utils/tool.tar.gz | [optional]
|
|
22
23
|
**files** | [**Array<PackageFile>**](PackageFile.md) | | [optional]
|
|
23
24
|
**format** | **String** | | [optional]
|
|
24
25
|
**format_url** | **String** | | [optional]
|
data/docs/PackageResync.md
CHANGED
|
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**epoch** | **Integer** | The epoch of the package version (if any). | [optional]
|
|
20
20
|
**extension** | **String** | | [optional]
|
|
21
21
|
**filename** | **String** | | [optional]
|
|
22
|
+
**filepath** | **String** | Full path to the file, including filename e.g. bin/utils/tool.tar.gz | [optional]
|
|
22
23
|
**files** | [**Array<PackageFile>**](PackageFile.md) | | [optional]
|
|
23
24
|
**format** | **String** | | [optional]
|
|
24
25
|
**format_url** | **String** | | [optional]
|
data/docs/PackageTag.md
CHANGED
|
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**epoch** | **Integer** | The epoch of the package version (if any). | [optional]
|
|
20
20
|
**extension** | **String** | | [optional]
|
|
21
21
|
**filename** | **String** | | [optional]
|
|
22
|
+
**filepath** | **String** | Full path to the file, including filename e.g. bin/utils/tool.tar.gz | [optional]
|
|
22
23
|
**files** | [**Array<PackageFile>**](PackageFile.md) | | [optional]
|
|
23
24
|
**format** | **String** | | [optional]
|
|
24
25
|
**format_url** | **String** | | [optional]
|
data/docs/PackagesApi.md
CHANGED
|
@@ -27,6 +27,7 @@ Method | HTTP request | Description
|
|
|
27
27
|
[**packages_upload_dart**](PackagesApi.md#packages_upload_dart) | **POST** /packages/{owner}/{repo}/upload/dart/ | Create a new Dart package
|
|
28
28
|
[**packages_upload_deb**](PackagesApi.md#packages_upload_deb) | **POST** /packages/{owner}/{repo}/upload/deb/ | Create a new Debian package
|
|
29
29
|
[**packages_upload_docker**](PackagesApi.md#packages_upload_docker) | **POST** /packages/{owner}/{repo}/upload/docker/ | Create a new Docker package
|
|
30
|
+
[**packages_upload_generic**](PackagesApi.md#packages_upload_generic) | **POST** /packages/{owner}/{repo}/upload/generic/ | Create a new Generic package
|
|
30
31
|
[**packages_upload_go**](PackagesApi.md#packages_upload_go) | **POST** /packages/{owner}/{repo}/upload/go/ | Create a new Go package
|
|
31
32
|
[**packages_upload_helm**](PackagesApi.md#packages_upload_helm) | **POST** /packages/{owner}/{repo}/upload/helm/ | Create a new Helm package
|
|
32
33
|
[**packages_upload_hex**](PackagesApi.md#packages_upload_hex) | **POST** /packages/{owner}/{repo}/upload/hex/ | Create a new Hex package
|
|
@@ -53,6 +54,7 @@ Method | HTTP request | Description
|
|
|
53
54
|
[**packages_validate_upload_dart**](PackagesApi.md#packages_validate_upload_dart) | **POST** /packages/{owner}/{repo}/validate-upload/dart/ | Validate parameters for create Dart package
|
|
54
55
|
[**packages_validate_upload_deb**](PackagesApi.md#packages_validate_upload_deb) | **POST** /packages/{owner}/{repo}/validate-upload/deb/ | Validate parameters for create Debian package
|
|
55
56
|
[**packages_validate_upload_docker**](PackagesApi.md#packages_validate_upload_docker) | **POST** /packages/{owner}/{repo}/validate-upload/docker/ | Validate parameters for create Docker package
|
|
57
|
+
[**packages_validate_upload_generic**](PackagesApi.md#packages_validate_upload_generic) | **POST** /packages/{owner}/{repo}/validate-upload/generic/ | Validate parameters for create Generic package
|
|
56
58
|
[**packages_validate_upload_go**](PackagesApi.md#packages_validate_upload_go) | **POST** /packages/{owner}/{repo}/validate-upload/go/ | Validate parameters for create Go package
|
|
57
59
|
[**packages_validate_upload_helm**](PackagesApi.md#packages_validate_upload_helm) | **POST** /packages/{owner}/{repo}/validate-upload/helm/ | Validate parameters for create Helm package
|
|
58
60
|
[**packages_validate_upload_hex**](PackagesApi.md#packages_validate_upload_hex) | **POST** /packages/{owner}/{repo}/validate-upload/hex/ | Validate parameters for create Hex package
|
|
@@ -1590,6 +1592,71 @@ Name | Type | Description | Notes
|
|
|
1590
1592
|
|
|
1591
1593
|
|
|
1592
1594
|
|
|
1595
|
+
# **packages_upload_generic**
|
|
1596
|
+
> GenericPackageUpload packages_upload_generic(owner, repo, opts)
|
|
1597
|
+
|
|
1598
|
+
Create a new Generic package
|
|
1599
|
+
|
|
1600
|
+
Create a new Generic package
|
|
1601
|
+
|
|
1602
|
+
### Example
|
|
1603
|
+
```ruby
|
|
1604
|
+
# load the gem
|
|
1605
|
+
require 'cloudsmith-api'
|
|
1606
|
+
# setup authorization
|
|
1607
|
+
CloudsmithApi.configure do |config|
|
|
1608
|
+
# Configure API key authorization: apikey
|
|
1609
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
|
1610
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1611
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
|
1612
|
+
|
|
1613
|
+
# Configure HTTP basic authorization: basic
|
|
1614
|
+
config.username = 'YOUR USERNAME'
|
|
1615
|
+
config.password = 'YOUR PASSWORD'
|
|
1616
|
+
end
|
|
1617
|
+
|
|
1618
|
+
api_instance = CloudsmithApi::PackagesApi.new
|
|
1619
|
+
|
|
1620
|
+
owner = 'owner_example' # String |
|
|
1621
|
+
|
|
1622
|
+
repo = 'repo_example' # String |
|
|
1623
|
+
|
|
1624
|
+
opts = {
|
|
1625
|
+
data: CloudsmithApi::GenericPackageUploadRequest.new # GenericPackageUploadRequest |
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
begin
|
|
1629
|
+
#Create a new Generic package
|
|
1630
|
+
result = api_instance.packages_upload_generic(owner, repo, opts)
|
|
1631
|
+
p result
|
|
1632
|
+
rescue CloudsmithApi::ApiError => e
|
|
1633
|
+
puts "Exception when calling PackagesApi->packages_upload_generic: #{e}"
|
|
1634
|
+
end
|
|
1635
|
+
```
|
|
1636
|
+
|
|
1637
|
+
### Parameters
|
|
1638
|
+
|
|
1639
|
+
Name | Type | Description | Notes
|
|
1640
|
+
------------- | ------------- | ------------- | -------------
|
|
1641
|
+
**owner** | **String**| |
|
|
1642
|
+
**repo** | **String**| |
|
|
1643
|
+
**data** | [**GenericPackageUploadRequest**](GenericPackageUploadRequest.md)| | [optional]
|
|
1644
|
+
|
|
1645
|
+
### Return type
|
|
1646
|
+
|
|
1647
|
+
[**GenericPackageUpload**](GenericPackageUpload.md)
|
|
1648
|
+
|
|
1649
|
+
### Authorization
|
|
1650
|
+
|
|
1651
|
+
[apikey](../README.md#apikey), [basic](../README.md#basic)
|
|
1652
|
+
|
|
1653
|
+
### HTTP request headers
|
|
1654
|
+
|
|
1655
|
+
- **Content-Type**: application/json
|
|
1656
|
+
- **Accept**: application/json
|
|
1657
|
+
|
|
1658
|
+
|
|
1659
|
+
|
|
1593
1660
|
# **packages_upload_go**
|
|
1594
1661
|
> GoPackageUpload packages_upload_go(owner, repo, opts)
|
|
1595
1662
|
|
|
@@ -3270,6 +3337,70 @@ nil (empty response body)
|
|
|
3270
3337
|
|
|
3271
3338
|
|
|
3272
3339
|
|
|
3340
|
+
# **packages_validate_upload_generic**
|
|
3341
|
+
> packages_validate_upload_generic(owner, repo, opts)
|
|
3342
|
+
|
|
3343
|
+
Validate parameters for create Generic package
|
|
3344
|
+
|
|
3345
|
+
Validate parameters for create Generic package
|
|
3346
|
+
|
|
3347
|
+
### Example
|
|
3348
|
+
```ruby
|
|
3349
|
+
# load the gem
|
|
3350
|
+
require 'cloudsmith-api'
|
|
3351
|
+
# setup authorization
|
|
3352
|
+
CloudsmithApi.configure do |config|
|
|
3353
|
+
# Configure API key authorization: apikey
|
|
3354
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
|
3355
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
3356
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
|
3357
|
+
|
|
3358
|
+
# Configure HTTP basic authorization: basic
|
|
3359
|
+
config.username = 'YOUR USERNAME'
|
|
3360
|
+
config.password = 'YOUR PASSWORD'
|
|
3361
|
+
end
|
|
3362
|
+
|
|
3363
|
+
api_instance = CloudsmithApi::PackagesApi.new
|
|
3364
|
+
|
|
3365
|
+
owner = 'owner_example' # String |
|
|
3366
|
+
|
|
3367
|
+
repo = 'repo_example' # String |
|
|
3368
|
+
|
|
3369
|
+
opts = {
|
|
3370
|
+
data: CloudsmithApi::GenericPackageUploadRequest.new # GenericPackageUploadRequest |
|
|
3371
|
+
}
|
|
3372
|
+
|
|
3373
|
+
begin
|
|
3374
|
+
#Validate parameters for create Generic package
|
|
3375
|
+
api_instance.packages_validate_upload_generic(owner, repo, opts)
|
|
3376
|
+
rescue CloudsmithApi::ApiError => e
|
|
3377
|
+
puts "Exception when calling PackagesApi->packages_validate_upload_generic: #{e}"
|
|
3378
|
+
end
|
|
3379
|
+
```
|
|
3380
|
+
|
|
3381
|
+
### Parameters
|
|
3382
|
+
|
|
3383
|
+
Name | Type | Description | Notes
|
|
3384
|
+
------------- | ------------- | ------------- | -------------
|
|
3385
|
+
**owner** | **String**| |
|
|
3386
|
+
**repo** | **String**| |
|
|
3387
|
+
**data** | [**GenericPackageUploadRequest**](GenericPackageUploadRequest.md)| | [optional]
|
|
3388
|
+
|
|
3389
|
+
### Return type
|
|
3390
|
+
|
|
3391
|
+
nil (empty response body)
|
|
3392
|
+
|
|
3393
|
+
### Authorization
|
|
3394
|
+
|
|
3395
|
+
[apikey](../README.md#apikey), [basic](../README.md#basic)
|
|
3396
|
+
|
|
3397
|
+
### HTTP request headers
|
|
3398
|
+
|
|
3399
|
+
- **Content-Type**: application/json
|
|
3400
|
+
- **Accept**: application/json
|
|
3401
|
+
|
|
3402
|
+
|
|
3403
|
+
|
|
3273
3404
|
# **packages_validate_upload_go**
|
|
3274
3405
|
> packages_validate_upload_go(owner, repo, opts)
|
|
3275
3406
|
|