cloudsmith-api 2.0.2 → 2.0.3
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 +2 -2
- data/README.md +9 -5
- data/build.json +1 -1
- data/docs/Eula.md +1 -1
- data/docs/HexPackageUpload.md +75 -0
- data/docs/HexPackageUploadRequest.md +10 -0
- data/docs/NestedLicensePolicy.md +1 -0
- data/docs/NestedVulnerabilityPolicy.md +1 -0
- data/docs/NestedVulnerabilityScanResults.md +1 -1
- data/docs/OrganizationPackageLicensePolicy.md +1 -0
- data/docs/OrganizationPackageLicensePolicyRequest.md +1 -0
- data/docs/OrganizationPackageLicensePolicyRequestPatch.md +1 -0
- data/docs/OrganizationPackageVulnerabilityPolicy.md +1 -0
- data/docs/OrganizationPackageVulnerabilityPolicyRequest.md +1 -0
- data/docs/OrganizationPackageVulnerabilityPolicyRequestPatch.md +1 -0
- data/docs/PackagesApi.md +123 -0
- data/docs/RepositoryToken.md +1 -1
- data/docs/RepositoryTokenRefresh.md +1 -1
- data/docs/RepositoryWebhook.md +1 -1
- data/docs/StatusBasic.md +1 -1
- data/docs/VulnerabilitiesApi.md +8 -8
- data/docs/VulnerabilityScanResults.md +1 -1
- data/docs/VulnerabilityScanResultsList.md +1 -1
- data/lib/cloudsmith-api/api/packages_api.rb +123 -0
- data/lib/cloudsmith-api/api/vulnerabilities_api.rb +13 -13
- data/lib/cloudsmith-api/models/eula.rb +0 -5
- data/lib/cloudsmith-api/models/hex_package_upload.rb +850 -0
- data/lib/cloudsmith-api/models/hex_package_upload_request.rb +210 -0
- data/lib/cloudsmith-api/models/nested_license_policy.rb +10 -1
- data/lib/cloudsmith-api/models/nested_vulnerability_policy.rb +10 -1
- data/lib/cloudsmith-api/models/nested_vulnerability_scan_results.rb +1 -0
- data/lib/cloudsmith-api/models/organization_package_license_policy.rb +10 -1
- data/lib/cloudsmith-api/models/organization_package_license_policy_request.rb +10 -1
- data/lib/cloudsmith-api/models/organization_package_license_policy_request_patch.rb +10 -1
- data/lib/cloudsmith-api/models/organization_package_vulnerability_policy.rb +10 -1
- data/lib/cloudsmith-api/models/organization_package_vulnerability_policy_request.rb +13 -4
- data/lib/cloudsmith-api/models/organization_package_vulnerability_policy_request_patch.rb +13 -4
- data/lib/cloudsmith-api/models/repository_token.rb +1 -0
- data/lib/cloudsmith-api/models/repository_token_refresh.rb +1 -0
- data/lib/cloudsmith-api/models/repository_webhook.rb +1 -0
- data/lib/cloudsmith-api/models/status_basic.rb +1 -1
- data/lib/cloudsmith-api/models/vulnerability_scan_results.rb +1 -0
- data/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +1 -0
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +2 -0
- data/spec/api/packages_api_spec.rb +28 -0
- data/spec/api/vulnerabilities_api_spec.rb +3 -3
- data/spec/models/hex_package_upload_request_spec.rb +53 -0
- data/spec/models/hex_package_upload_spec.rb +447 -0
- data/spec/models/nested_license_policy_spec.rb +6 -0
- data/spec/models/nested_vulnerability_policy_spec.rb +6 -0
- data/spec/models/organization_package_license_policy_request_patch_spec.rb +6 -0
- data/spec/models/organization_package_license_policy_request_spec.rb +6 -0
- data/spec/models/organization_package_license_policy_spec.rb +6 -0
- data/spec/models/organization_package_vulnerability_policy_request_patch_spec.rb +6 -0
- data/spec/models/organization_package_vulnerability_policy_request_spec.rb +6 -0
- data/spec/models/organization_package_vulnerability_policy_spec.rb +6 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.20/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/generator/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/parser/Makefile +2 -2
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 859816e483ff0740c5f73de7f8f544ddc053dd09608a5d9443b7f21dbbf2a880
|
4
|
+
data.tar.gz: 4f18edf36d923b37af7936c87395b4d4641710d7a82cf95acd659d4a866d43d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7da3447de1bcefc617dbfa321290c8b3d3deff43e9de6f89ebf58a7ef1eefae8a6d28b6aef38bd986dcb6ff61061a80372d9aa629dc173d872ea425e8490f4eb
|
7
|
+
data.tar.gz: 4851d2fd2e235011ff30c8b0c5daaed4d91a5312fa72bb39d68a8353662ab64a52ce6ef47c13309fe7a58fc1698f094f2e71e886fd19fb2127e8b80b83fb3f85
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cloudsmith-api (2.0.
|
4
|
+
cloudsmith-api (2.0.3)
|
5
5
|
addressable (~> 2.3, >= 2.3.0)
|
6
6
|
json (~> 2.1, >= 2.1.0)
|
7
7
|
typhoeus (~> 1.0, >= 1.0.1)
|
@@ -67,4 +67,4 @@ DEPENDENCIES
|
|
67
67
|
webmock (~> 1.24, >= 1.24.3)
|
68
68
|
|
69
69
|
BUNDLED WITH
|
70
|
-
2.4.
|
70
|
+
2.4.13
|
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.3
|
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.3.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.3.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.3'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -182,6 +182,7 @@ Class | Method | HTTP request | Description
|
|
182
182
|
*CloudsmithApi::PackagesApi* | [**packages_upload_docker**](docs/PackagesApi.md#packages_upload_docker) | **POST** /packages/{owner}/{repo}/upload/docker/ | Create a new Docker package
|
183
183
|
*CloudsmithApi::PackagesApi* | [**packages_upload_go**](docs/PackagesApi.md#packages_upload_go) | **POST** /packages/{owner}/{repo}/upload/go/ | Create a new Go package
|
184
184
|
*CloudsmithApi::PackagesApi* | [**packages_upload_helm**](docs/PackagesApi.md#packages_upload_helm) | **POST** /packages/{owner}/{repo}/upload/helm/ | Create a new Helm package
|
185
|
+
*CloudsmithApi::PackagesApi* | [**packages_upload_hex**](docs/PackagesApi.md#packages_upload_hex) | **POST** /packages/{owner}/{repo}/upload/hex/ | Create a new Hex package
|
185
186
|
*CloudsmithApi::PackagesApi* | [**packages_upload_luarocks**](docs/PackagesApi.md#packages_upload_luarocks) | **POST** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package
|
186
187
|
*CloudsmithApi::PackagesApi* | [**packages_upload_maven**](docs/PackagesApi.md#packages_upload_maven) | **POST** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package
|
187
188
|
*CloudsmithApi::PackagesApi* | [**packages_upload_npm**](docs/PackagesApi.md#packages_upload_npm) | **POST** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package
|
@@ -205,6 +206,7 @@ Class | Method | HTTP request | Description
|
|
205
206
|
*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
|
206
207
|
*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
|
207
208
|
*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
|
209
|
+
*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
|
208
210
|
*CloudsmithApi::PackagesApi* | [**packages_validate_upload_luarocks**](docs/PackagesApi.md#packages_validate_upload_luarocks) | **POST** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package
|
209
211
|
*CloudsmithApi::PackagesApi* | [**packages_validate_upload_maven**](docs/PackagesApi.md#packages_validate_upload_maven) | **POST** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package
|
210
212
|
*CloudsmithApi::PackagesApi* | [**packages_validate_upload_npm**](docs/PackagesApi.md#packages_validate_upload_npm) | **POST** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package
|
@@ -250,7 +252,7 @@ Class | Method | HTTP request | Description
|
|
250
252
|
*CloudsmithApi::UsersApi* | [**users_profile_read**](docs/UsersApi.md#users_profile_read) | **GET** /users/profile/{slug}/ | Provide a brief for the specified user (if any).
|
251
253
|
*CloudsmithApi::VulnerabilitiesApi* | [**vulnerabilities_namespace_list**](docs/VulnerabilitiesApi.md#vulnerabilities_namespace_list) | **GET** /vulnerabilities/{owner}/ | Lists scan results for a specific namespace.
|
252
254
|
*CloudsmithApi::VulnerabilitiesApi* | [**vulnerabilities_package_list**](docs/VulnerabilitiesApi.md#vulnerabilities_package_list) | **GET** /vulnerabilities/{owner}/{repo}/{package}/ | Lists scan results for a specific package.
|
253
|
-
*CloudsmithApi::VulnerabilitiesApi* | [**vulnerabilities_read**](docs/VulnerabilitiesApi.md#vulnerabilities_read) | **GET** /vulnerabilities/{owner}/{repo}/{package}/{
|
255
|
+
*CloudsmithApi::VulnerabilitiesApi* | [**vulnerabilities_read**](docs/VulnerabilitiesApi.md#vulnerabilities_read) | **GET** /vulnerabilities/{owner}/{repo}/{package}/{identifier}/ | Get a scan result.
|
254
256
|
*CloudsmithApi::VulnerabilitiesApi* | [**vulnerabilities_repo_list**](docs/VulnerabilitiesApi.md#vulnerabilities_repo_list) | **GET** /vulnerabilities/{owner}/{repo}/ | Lists scan results for a specific repository.
|
255
257
|
*CloudsmithApi::WebhooksApi* | [**webhooks_create**](docs/WebhooksApi.md#webhooks_create) | **POST** /webhooks/{owner}/{repo}/ | Create a specific webhook in a repository.
|
256
258
|
*CloudsmithApi::WebhooksApi* | [**webhooks_delete**](docs/WebhooksApi.md#webhooks_delete) | **DELETE** /webhooks/{owner}/{repo}/{identifier}/ | Delete a specific webhook in a repository.
|
@@ -302,6 +304,8 @@ Class | Method | HTTP request | Description
|
|
302
304
|
- [CloudsmithApi::GoPackageUploadRequest](docs/GoPackageUploadRequest.md)
|
303
305
|
- [CloudsmithApi::HelmPackageUpload](docs/HelmPackageUpload.md)
|
304
306
|
- [CloudsmithApi::HelmPackageUploadRequest](docs/HelmPackageUploadRequest.md)
|
307
|
+
- [CloudsmithApi::HexPackageUpload](docs/HexPackageUpload.md)
|
308
|
+
- [CloudsmithApi::HexPackageUploadRequest](docs/HexPackageUploadRequest.md)
|
305
309
|
- [CloudsmithApi::History](docs/History.md)
|
306
310
|
- [CloudsmithApi::HistoryFieldset](docs/HistoryFieldset.md)
|
307
311
|
- [CloudsmithApi::HistoryFieldsetRaw](docs/HistoryFieldsetRaw.md)
|
data/build.json
CHANGED
data/docs/Eula.md
CHANGED
@@ -4,6 +4,6 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**identifier** | **String** | A unique identifier that you can use for your own EULA tracking purposes. This might be a date, or a semantic version, etc. The only requirement is that it is unique across multiple EULAs. | [optional]
|
7
|
-
**number** | **Integer** | A sequential identifier that increments by one for each new commit in a repository. |
|
7
|
+
**number** | **Integer** | A sequential identifier that increments by one for each new commit in a repository. | [optional]
|
8
8
|
|
9
9
|
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# CloudsmithApi::HexPackageUpload
|
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
|
+
**distro** | [**Distribution**](Distribution.md) | | [optional]
|
16
|
+
**distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional]
|
17
|
+
**downloads** | **Integer** | | [optional]
|
18
|
+
**epoch** | **Integer** | The epoch of the package version (if any). | [optional]
|
19
|
+
**extension** | **String** | | [optional]
|
20
|
+
**filename** | **String** | | [optional]
|
21
|
+
**files** | [**Array<PackageFile>**](PackageFile.md) | | [optional]
|
22
|
+
**format** | **String** | | [optional]
|
23
|
+
**format_url** | **String** | | [optional]
|
24
|
+
**identifier_perm** | **String** | Unique and permanent identifier for the package. | [optional]
|
25
|
+
**indexed** | **BOOLEAN** | | [optional]
|
26
|
+
**is_downloadable** | **BOOLEAN** | | [optional]
|
27
|
+
**is_quarantined** | **BOOLEAN** | | [optional]
|
28
|
+
**is_sync_awaiting** | **BOOLEAN** | | [optional]
|
29
|
+
**is_sync_completed** | **BOOLEAN** | | [optional]
|
30
|
+
**is_sync_failed** | **BOOLEAN** | | [optional]
|
31
|
+
**is_sync_in_flight** | **BOOLEAN** | | [optional]
|
32
|
+
**is_sync_in_progress** | **BOOLEAN** | | [optional]
|
33
|
+
**license** | **String** | The license of this package. | [optional]
|
34
|
+
**name** | **String** | The name of this package. | [optional]
|
35
|
+
**namespace** | **String** | | [optional]
|
36
|
+
**namespace_url** | **String** | | [optional]
|
37
|
+
**num_files** | **Integer** | | [optional]
|
38
|
+
**origin_repository** | **String** | | [optional]
|
39
|
+
**origin_repository_url** | **String** | | [optional]
|
40
|
+
**package_type** | **Integer** | The type of package contents. | [optional]
|
41
|
+
**release** | **String** | The release of the package version (if any). | [optional]
|
42
|
+
**repository** | **String** | | [optional]
|
43
|
+
**repository_url** | **String** | | [optional]
|
44
|
+
**security_scan_completed_at** | **DateTime** | The datetime the security scanning was completed. | [optional]
|
45
|
+
**security_scan_started_at** | **DateTime** | The datetime the security scanning was started. | [optional]
|
46
|
+
**security_scan_status** | **String** | | [optional] [default to 'Awaiting Security Scan']
|
47
|
+
**security_scan_status_updated_at** | **DateTime** | The datetime the security scanning status was updated. | [optional]
|
48
|
+
**self_html_url** | **String** | | [optional]
|
49
|
+
**self_url** | **String** | | [optional]
|
50
|
+
**signature_url** | **String** | | [optional]
|
51
|
+
**size** | **Integer** | The calculated size of the package. | [optional]
|
52
|
+
**slug** | **String** | The public unique identifier for the package. | [optional]
|
53
|
+
**slug_perm** | **String** | | [optional]
|
54
|
+
**stage** | **Integer** | The synchronisation (in progress) stage of the package. | [optional]
|
55
|
+
**stage_str** | **String** | | [optional]
|
56
|
+
**stage_updated_at** | **DateTime** | The datetime the package stage was updated at. | [optional]
|
57
|
+
**status** | **Integer** | The synchronisation status of the package. | [optional]
|
58
|
+
**status_reason** | **String** | A textual description for the synchronous status reason (if any | [optional]
|
59
|
+
**status_str** | **String** | | [optional]
|
60
|
+
**status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional]
|
61
|
+
**status_url** | **String** | | [optional]
|
62
|
+
**subtype** | **String** | | [optional]
|
63
|
+
**summary** | **String** | A one-liner synopsis of this package. | [optional]
|
64
|
+
**sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional]
|
65
|
+
**sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional]
|
66
|
+
**tags_immutable** | [**Tags**](Tags.md) | | [optional]
|
67
|
+
**type_display** | **String** | | [optional]
|
68
|
+
**uploaded_at** | **DateTime** | The date this package was uploaded. | [optional]
|
69
|
+
**uploader** | **String** | | [optional]
|
70
|
+
**uploader_url** | **String** | | [optional]
|
71
|
+
**version** | **String** | The raw version for this package. | [optional]
|
72
|
+
**version_orig** | **String** | | [optional]
|
73
|
+
**vulnerability_scan_results_url** | **String** | | [optional]
|
74
|
+
|
75
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# CloudsmithApi::HexPackageUploadRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**package_file** | **String** | The primary file for the package. |
|
7
|
+
**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]
|
8
|
+
**tags** | **String** | A comma-separated values list of tags to add to the package. | [optional]
|
9
|
+
|
10
|
+
|
data/docs/NestedLicensePolicy.md
CHANGED
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**description** | **String** | | [optional]
|
9
9
|
**name** | **String** | | [optional]
|
10
10
|
**on_violation_quarantine** | **BOOLEAN** | | [optional]
|
11
|
+
**package_query_string** | **String** | | [optional]
|
11
12
|
**slug_perm** | **String** | | [optional]
|
12
13
|
**spdx_identifiers** | **Array<String>** | |
|
13
14
|
**updated_at** | **DateTime** | | [optional]
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**min_severity** | **String** | | [optional] [default to 'Critical']
|
10
10
|
**name** | **String** | | [optional]
|
11
11
|
**on_violation_quarantine** | **BOOLEAN** | | [optional]
|
12
|
+
**package_query_string** | **String** | | [optional]
|
12
13
|
**slug_perm** | **String** | | [optional]
|
13
14
|
**updated_at** | **DateTime** | | [optional]
|
14
15
|
**url** | **String** | | [optional]
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**identifier** | **String** | |
|
9
9
|
**max_severity** | **String** | | [optional] [default to 'Unknown']
|
10
10
|
**num_vulnerabilities** | **Integer** | | [optional]
|
11
|
-
**scan_id** | **Integer** |
|
11
|
+
**scan_id** | **Integer** | Deprecated (23-05-15): Please use 'identifier' instead. Previously: A monotonically increasing number that identified a scan within a repository. |
|
12
12
|
**url** | **String** | | [optional]
|
13
13
|
|
14
14
|
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**description** | **String** | | [optional]
|
9
9
|
**name** | **String** | |
|
10
10
|
**on_violation_quarantine** | **BOOLEAN** | | [optional]
|
11
|
+
**package_query_string** | **String** | | [optional]
|
11
12
|
**slug_perm** | **String** | | [optional]
|
12
13
|
**spdx_identifiers** | **Array<String>** | |
|
13
14
|
**updated_at** | **DateTime** | | [optional]
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**description** | **String** | | [optional]
|
8
8
|
**name** | **String** | |
|
9
9
|
**on_violation_quarantine** | **BOOLEAN** | | [optional]
|
10
|
+
**package_query_string** | **String** | | [optional]
|
10
11
|
**spdx_identifiers** | **Array<String>** | |
|
11
12
|
|
12
13
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**description** | **String** | | [optional]
|
8
8
|
**name** | **String** | | [optional]
|
9
9
|
**on_violation_quarantine** | **BOOLEAN** | | [optional]
|
10
|
+
**package_query_string** | **String** | | [optional]
|
10
11
|
**spdx_identifiers** | **Array<String>** | | [optional]
|
11
12
|
|
12
13
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**min_severity** | **String** | | [optional] [default to 'Critical']
|
10
10
|
**name** | **String** | |
|
11
11
|
**on_violation_quarantine** | **BOOLEAN** | | [optional]
|
12
|
+
**package_query_string** | **String** | | [optional]
|
12
13
|
**slug_perm** | **String** | | [optional]
|
13
14
|
**updated_at** | **DateTime** | | [optional]
|
14
15
|
|
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
|
|
8
8
|
**min_severity** | **String** | | [optional] [default to 'Critical']
|
9
9
|
**name** | **String** | | [optional]
|
10
10
|
**on_violation_quarantine** | **BOOLEAN** | | [optional]
|
11
|
+
**package_query_string** | **String** | | [optional]
|
11
12
|
|
12
13
|
|
data/docs/PackagesApi.md
CHANGED
@@ -27,6 +27,7 @@ Method | HTTP request | Description
|
|
27
27
|
[**packages_upload_docker**](PackagesApi.md#packages_upload_docker) | **POST** /packages/{owner}/{repo}/upload/docker/ | Create a new Docker package
|
28
28
|
[**packages_upload_go**](PackagesApi.md#packages_upload_go) | **POST** /packages/{owner}/{repo}/upload/go/ | Create a new Go package
|
29
29
|
[**packages_upload_helm**](PackagesApi.md#packages_upload_helm) | **POST** /packages/{owner}/{repo}/upload/helm/ | Create a new Helm package
|
30
|
+
[**packages_upload_hex**](PackagesApi.md#packages_upload_hex) | **POST** /packages/{owner}/{repo}/upload/hex/ | Create a new Hex package
|
30
31
|
[**packages_upload_luarocks**](PackagesApi.md#packages_upload_luarocks) | **POST** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package
|
31
32
|
[**packages_upload_maven**](PackagesApi.md#packages_upload_maven) | **POST** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package
|
32
33
|
[**packages_upload_npm**](PackagesApi.md#packages_upload_npm) | **POST** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package
|
@@ -50,6 +51,7 @@ Method | HTTP request | Description
|
|
50
51
|
[**packages_validate_upload_docker**](PackagesApi.md#packages_validate_upload_docker) | **POST** /packages/{owner}/{repo}/validate-upload/docker/ | Validate parameters for create Docker package
|
51
52
|
[**packages_validate_upload_go**](PackagesApi.md#packages_validate_upload_go) | **POST** /packages/{owner}/{repo}/validate-upload/go/ | Validate parameters for create Go package
|
52
53
|
[**packages_validate_upload_helm**](PackagesApi.md#packages_validate_upload_helm) | **POST** /packages/{owner}/{repo}/validate-upload/helm/ | Validate parameters for create Helm package
|
54
|
+
[**packages_validate_upload_hex**](PackagesApi.md#packages_validate_upload_hex) | **POST** /packages/{owner}/{repo}/validate-upload/hex/ | Validate parameters for create Hex package
|
53
55
|
[**packages_validate_upload_luarocks**](PackagesApi.md#packages_validate_upload_luarocks) | **POST** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package
|
54
56
|
[**packages_validate_upload_maven**](PackagesApi.md#packages_validate_upload_maven) | **POST** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package
|
55
57
|
[**packages_validate_upload_npm**](PackagesApi.md#packages_validate_upload_npm) | **POST** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package
|
@@ -1477,6 +1479,67 @@ Name | Type | Description | Notes
|
|
1477
1479
|
|
1478
1480
|
|
1479
1481
|
|
1482
|
+
# **packages_upload_hex**
|
1483
|
+
> HexPackageUpload packages_upload_hex(owner, repo, opts)
|
1484
|
+
|
1485
|
+
Create a new Hex package
|
1486
|
+
|
1487
|
+
Create a new Hex package
|
1488
|
+
|
1489
|
+
### Example
|
1490
|
+
```ruby
|
1491
|
+
# load the gem
|
1492
|
+
require 'cloudsmith-api'
|
1493
|
+
# setup authorization
|
1494
|
+
CloudsmithApi.configure do |config|
|
1495
|
+
# Configure API key authorization: apikey
|
1496
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
1497
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1498
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
1499
|
+
end
|
1500
|
+
|
1501
|
+
api_instance = CloudsmithApi::PackagesApi.new
|
1502
|
+
|
1503
|
+
owner = 'owner_example' # String |
|
1504
|
+
|
1505
|
+
repo = 'repo_example' # String |
|
1506
|
+
|
1507
|
+
opts = {
|
1508
|
+
data: CloudsmithApi::HexPackageUploadRequest.new # HexPackageUploadRequest |
|
1509
|
+
}
|
1510
|
+
|
1511
|
+
begin
|
1512
|
+
#Create a new Hex package
|
1513
|
+
result = api_instance.packages_upload_hex(owner, repo, opts)
|
1514
|
+
p result
|
1515
|
+
rescue CloudsmithApi::ApiError => e
|
1516
|
+
puts "Exception when calling PackagesApi->packages_upload_hex: #{e}"
|
1517
|
+
end
|
1518
|
+
```
|
1519
|
+
|
1520
|
+
### Parameters
|
1521
|
+
|
1522
|
+
Name | Type | Description | Notes
|
1523
|
+
------------- | ------------- | ------------- | -------------
|
1524
|
+
**owner** | **String**| |
|
1525
|
+
**repo** | **String**| |
|
1526
|
+
**data** | [**HexPackageUploadRequest**](HexPackageUploadRequest.md)| | [optional]
|
1527
|
+
|
1528
|
+
### Return type
|
1529
|
+
|
1530
|
+
[**HexPackageUpload**](HexPackageUpload.md)
|
1531
|
+
|
1532
|
+
### Authorization
|
1533
|
+
|
1534
|
+
[apikey](../README.md#apikey)
|
1535
|
+
|
1536
|
+
### HTTP request headers
|
1537
|
+
|
1538
|
+
- **Content-Type**: application/json
|
1539
|
+
- **Accept**: application/json
|
1540
|
+
|
1541
|
+
|
1542
|
+
|
1480
1543
|
# **packages_upload_luarocks**
|
1481
1544
|
> LuarocksPackageUpload packages_upload_luarocks(owner, repo, opts)
|
1482
1545
|
|
@@ -2868,6 +2931,66 @@ nil (empty response body)
|
|
2868
2931
|
|
2869
2932
|
|
2870
2933
|
|
2934
|
+
# **packages_validate_upload_hex**
|
2935
|
+
> packages_validate_upload_hex(owner, repo, opts)
|
2936
|
+
|
2937
|
+
Validate parameters for create Hex package
|
2938
|
+
|
2939
|
+
Validate parameters for create Hex package
|
2940
|
+
|
2941
|
+
### Example
|
2942
|
+
```ruby
|
2943
|
+
# load the gem
|
2944
|
+
require 'cloudsmith-api'
|
2945
|
+
# setup authorization
|
2946
|
+
CloudsmithApi.configure do |config|
|
2947
|
+
# Configure API key authorization: apikey
|
2948
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
2949
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
2950
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
2951
|
+
end
|
2952
|
+
|
2953
|
+
api_instance = CloudsmithApi::PackagesApi.new
|
2954
|
+
|
2955
|
+
owner = 'owner_example' # String |
|
2956
|
+
|
2957
|
+
repo = 'repo_example' # String |
|
2958
|
+
|
2959
|
+
opts = {
|
2960
|
+
data: CloudsmithApi::HexPackageUploadRequest.new # HexPackageUploadRequest |
|
2961
|
+
}
|
2962
|
+
|
2963
|
+
begin
|
2964
|
+
#Validate parameters for create Hex package
|
2965
|
+
api_instance.packages_validate_upload_hex(owner, repo, opts)
|
2966
|
+
rescue CloudsmithApi::ApiError => e
|
2967
|
+
puts "Exception when calling PackagesApi->packages_validate_upload_hex: #{e}"
|
2968
|
+
end
|
2969
|
+
```
|
2970
|
+
|
2971
|
+
### Parameters
|
2972
|
+
|
2973
|
+
Name | Type | Description | Notes
|
2974
|
+
------------- | ------------- | ------------- | -------------
|
2975
|
+
**owner** | **String**| |
|
2976
|
+
**repo** | **String**| |
|
2977
|
+
**data** | [**HexPackageUploadRequest**](HexPackageUploadRequest.md)| | [optional]
|
2978
|
+
|
2979
|
+
### Return type
|
2980
|
+
|
2981
|
+
nil (empty response body)
|
2982
|
+
|
2983
|
+
### Authorization
|
2984
|
+
|
2985
|
+
[apikey](../README.md#apikey)
|
2986
|
+
|
2987
|
+
### HTTP request headers
|
2988
|
+
|
2989
|
+
- **Content-Type**: application/json
|
2990
|
+
- **Accept**: application/json
|
2991
|
+
|
2992
|
+
|
2993
|
+
|
2871
2994
|
# **packages_validate_upload_luarocks**
|
2872
2995
|
> packages_validate_upload_luarocks(owner, repo, opts)
|
2873
2996
|
|
data/docs/RepositoryToken.md
CHANGED
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
|
|
16
16
|
**eula_accepted_from** | **String** | | [optional]
|
17
17
|
**eula_required** | **BOOLEAN** | If checked, a EULA acceptance is required for this token. | [optional]
|
18
18
|
**has_limits** | **BOOLEAN** | | [optional]
|
19
|
-
**identifier** | **Integer** |
|
19
|
+
**identifier** | **Integer** | Deprecated (23-05-15): Please use 'slug_perm' instead. Previously: A monotonically increasing number that identified an entitlement within a repository. | [optional]
|
20
20
|
**is_active** | **BOOLEAN** | If enabled, the token will allow downloads based on configured restrictions (if any). | [optional]
|
21
21
|
**is_limited** | **BOOLEAN** | | [optional]
|
22
22
|
**limit_bandwidth** | **Integer** | The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. | [optional]
|
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
|
|
16
16
|
**eula_accepted_from** | **String** | | [optional]
|
17
17
|
**eula_required** | **BOOLEAN** | If checked, a EULA acceptance is required for this token. | [optional]
|
18
18
|
**has_limits** | **BOOLEAN** | | [optional]
|
19
|
-
**identifier** | **Integer** |
|
19
|
+
**identifier** | **Integer** | Deprecated (23-05-15): Please use 'slug_perm' instead. Previously: A monotonically increasing number that identified an entitlement within a repository. | [optional]
|
20
20
|
**is_active** | **BOOLEAN** | If enabled, the token will allow downloads based on configured restrictions (if any). | [optional]
|
21
21
|
**is_limited** | **BOOLEAN** | | [optional]
|
22
22
|
**limit_bandwidth** | **Integer** | The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. | [optional]
|
data/docs/RepositoryWebhook.md
CHANGED
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**disable_reason** | **Integer** | | [optional]
|
10
10
|
**disable_reason_str** | **String** | | [optional]
|
11
11
|
**events** | **Array<String>** | |
|
12
|
-
**identifier** | **Integer** |
|
12
|
+
**identifier** | **Integer** | Deprecated (23-05-15): Please use 'slug_perm' instead. Previously: A monotonically increasing number that identified a webhook request within a repository. | [optional]
|
13
13
|
**is_active** | **BOOLEAN** | If enabled, the webhook will trigger on subscribed events and send payloads to the configured target URL. | [optional]
|
14
14
|
**is_last_response_bad** | **BOOLEAN** | | [optional]
|
15
15
|
**last_response_status** | **Integer** | | [optional]
|
data/docs/StatusBasic.md
CHANGED
@@ -4,6 +4,6 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**detail** | **String** | The message describing the state of the API. | [optional] [default to 'Cloudsmith API is operational.']
|
7
|
-
**version** | **String** | The current version for the Cloudsmith service. | [optional] [default to '1.
|
7
|
+
**version** | **String** | The current version for the Cloudsmith service. | [optional] [default to '1.263.0']
|
8
8
|
|
9
9
|
|
data/docs/VulnerabilitiesApi.md
CHANGED
@@ -6,7 +6,7 @@ Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**vulnerabilities_namespace_list**](VulnerabilitiesApi.md#vulnerabilities_namespace_list) | **GET** /vulnerabilities/{owner}/ | Lists scan results for a specific namespace.
|
8
8
|
[**vulnerabilities_package_list**](VulnerabilitiesApi.md#vulnerabilities_package_list) | **GET** /vulnerabilities/{owner}/{repo}/{package}/ | Lists scan results for a specific package.
|
9
|
-
[**vulnerabilities_read**](VulnerabilitiesApi.md#vulnerabilities_read) | **GET** /vulnerabilities/{owner}/{repo}/{package}/{
|
9
|
+
[**vulnerabilities_read**](VulnerabilitiesApi.md#vulnerabilities_read) | **GET** /vulnerabilities/{owner}/{repo}/{package}/{identifier}/ | Get a scan result.
|
10
10
|
[**vulnerabilities_repo_list**](VulnerabilitiesApi.md#vulnerabilities_repo_list) | **GET** /vulnerabilities/{owner}/{repo}/ | Lists scan results for a specific repository.
|
11
11
|
|
12
12
|
|
@@ -137,11 +137,11 @@ Name | Type | Description | Notes
|
|
137
137
|
|
138
138
|
|
139
139
|
# **vulnerabilities_read**
|
140
|
-
> VulnerabilityScanResults vulnerabilities_read(owner, repo, package,
|
140
|
+
> VulnerabilityScanResults vulnerabilities_read(owner, repo, package, identifier)
|
141
141
|
|
142
|
-
|
142
|
+
Get a scan result.
|
143
143
|
|
144
|
-
|
144
|
+
Get a scan result.
|
145
145
|
|
146
146
|
### Example
|
147
147
|
```ruby
|
@@ -163,12 +163,12 @@ repo = 'repo_example' # String |
|
|
163
163
|
|
164
164
|
package = 'package_example' # String |
|
165
165
|
|
166
|
-
|
166
|
+
identifier = 'identifier_example' # String |
|
167
167
|
|
168
168
|
|
169
169
|
begin
|
170
|
-
#
|
171
|
-
result = api_instance.vulnerabilities_read(owner, repo, package,
|
170
|
+
#Get a scan result.
|
171
|
+
result = api_instance.vulnerabilities_read(owner, repo, package, identifier)
|
172
172
|
p result
|
173
173
|
rescue CloudsmithApi::ApiError => e
|
174
174
|
puts "Exception when calling VulnerabilitiesApi->vulnerabilities_read: #{e}"
|
@@ -182,7 +182,7 @@ Name | Type | Description | Notes
|
|
182
182
|
**owner** | **String**| |
|
183
183
|
**repo** | **String**| |
|
184
184
|
**package** | **String**| |
|
185
|
-
**
|
185
|
+
**identifier** | **String**| |
|
186
186
|
|
187
187
|
### Return type
|
188
188
|
|
@@ -10,6 +10,6 @@ Name | Type | Description | Notes
|
|
10
10
|
**num_vulnerabilities** | **Integer** | | [optional]
|
11
11
|
**package** | [**PackageVulnerability**](PackageVulnerability.md) | |
|
12
12
|
**scan** | [**VulnerabilityScan**](VulnerabilityScan.md) | |
|
13
|
-
**scan_id** | **Integer** |
|
13
|
+
**scan_id** | **Integer** | Deprecated (23-05-15): Please use 'identifier' instead. Previously: A monotonically increasing number that identified a scan within a repository. |
|
14
14
|
|
15
15
|
|
@@ -9,6 +9,6 @@ Name | Type | Description | Notes
|
|
9
9
|
**max_severity** | **String** | | [optional] [default to 'Unknown']
|
10
10
|
**num_vulnerabilities** | **Integer** | | [optional]
|
11
11
|
**package** | [**PackageVulnerability**](PackageVulnerability.md) | |
|
12
|
-
**scan_id** | **Integer** |
|
12
|
+
**scan_id** | **Integer** | Deprecated (23-05-15): Please use 'identifier' instead. Previously: A monotonically increasing number that identified a scan within a repository. |
|
13
13
|
|
14
14
|
|