apimatic-semgrep-sdk 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +35 -35
- data/lib/semgrep_web_app/apis/base_api.rb +1 -1
- data/lib/semgrep_web_app/apis/deployments_service_api.rb +1 -1
- data/lib/semgrep_web_app/apis/findings_service_api.rb +22 -22
- data/lib/semgrep_web_app/apis/misc_service_api.rb +2 -2
- data/lib/semgrep_web_app/apis/policies_service_api.rb +8 -8
- data/lib/semgrep_web_app/apis/projects_service_api.rb +19 -19
- data/lib/semgrep_web_app/apis/scans_service_api.rb +4 -4
- data/lib/semgrep_web_app/apis/secrets_service_api.rb +8 -8
- data/lib/semgrep_web_app/apis/supply_chain_service_api.rb +11 -11
- data/lib/semgrep_web_app/apis/ticketing_service_api.rb +8 -8
- data/lib/semgrep_web_app/apis/triage_service_api.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 47c7a8e7841a2bc1fe74a36210d471877575c29654922ff1c10a0fa86c015541
|
|
4
|
+
data.tar.gz: fd87dd2a7d3e97925b0d62f762acc91bb24d9ab1066926708af2b69f5d789c38
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78a9adcd28c8d74b309daf5529f5fc32498cd67da9882cb7e83ed0bddc122134e678b56d73e1b3a1fba63abeda93b1de82f4e6fe138ad0527f394cbef9aa5fc2
|
|
7
|
+
data.tar.gz: 943e7b3e76f90d53c7dca6c1baec4fa021f2f956549b369dab7e94c76a919f729cb4cc257195deb4db631774b64008ecb86a947a9eb7af247b50d71f403be349
|
data/README.md
CHANGED
|
@@ -37,16 +37,16 @@ ___
|
|
|
37
37
|
Install the gem from the command line:
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
gem install apimatic-semgrep-sdk -v 0.0.
|
|
40
|
+
gem install apimatic-semgrep-sdk -v 0.0.2
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
Or add the gem to your Gemfile and run `bundle`:
|
|
44
44
|
|
|
45
45
|
```ruby
|
|
46
|
-
gem 'apimatic-semgrep-sdk', '0.0.
|
|
46
|
+
gem 'apimatic-semgrep-sdk', '0.0.2'
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
For additional gem details, see the [RubyGems page for the apimatic-semgrep-sdk gem](https://rubygems.org/gems/apimatic-semgrep-sdk/versions/0.0.
|
|
49
|
+
For additional gem details, see the [RubyGems page for the apimatic-semgrep-sdk gem](https://rubygems.org/gems/apimatic-semgrep-sdk/versions/0.0.2).
|
|
50
50
|
|
|
51
51
|
## IRB Console Usage
|
|
52
52
|
|
|
@@ -85,13 +85,13 @@ ruby bin/console
|
|
|
85
85
|
|
|
86
86
|
## Initialize the API Client
|
|
87
87
|
|
|
88
|
-
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
88
|
+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/client.md)
|
|
89
89
|
|
|
90
90
|
The following parameters are configurable for the API Client:
|
|
91
91
|
|
|
92
92
|
| Parameter | Type | Description |
|
|
93
93
|
| --- | --- | --- |
|
|
94
|
-
| environment | [`Environment`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
94
|
+
| environment | [`Environment`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
|
|
95
95
|
| connection | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
|
|
96
96
|
| adapter | `Faraday::Adapter` | The Faraday adapter object passed by the SDK user for performing http requests |
|
|
97
97
|
| timeout | `Float` | The value to use for connection timeout. <br> **Default: 30** |
|
|
@@ -101,11 +101,11 @@ The following parameters are configurable for the API Client:
|
|
|
101
101
|
| retry_statuses | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
|
|
102
102
|
| retry_methods | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
|
|
103
103
|
| http_callback | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
|
|
104
|
-
| proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
105
|
-
| logging_configuration | [`LoggingConfiguration`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
106
|
-
| semgrep_admin_jwt_credentials | [`SemgrepAdminJwtCredentials`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
107
|
-
| semgrep_jwt_credentials | [`SemgrepJwtCredentials`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
108
|
-
| semgrep_web_token_credentials | [`SemgrepWebTokenCredentials`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
104
|
+
| proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
|
|
105
|
+
| logging_configuration | [`LoggingConfiguration`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/logging-configuration.md) | The SDK logging configuration for API calls |
|
|
106
|
+
| semgrep_admin_jwt_credentials | [`SemgrepAdminJwtCredentials`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/auth/oauth-2-bearer-token.md) | The credential object for OAuth 2 Bearer token |
|
|
107
|
+
| semgrep_jwt_credentials | [`SemgrepJwtCredentials`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/auth/oauth-2-bearer-token-1.md) | The credential object for OAuth 2 Bearer token |
|
|
108
|
+
| semgrep_web_token_credentials | [`SemgrepWebTokenCredentials`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/auth/oauth-2-bearer-token-2.md) | The credential object for OAuth 2 Bearer token |
|
|
109
109
|
|
|
110
110
|
The API client can be initialized as follows:
|
|
111
111
|
|
|
@@ -148,7 +148,7 @@ include SemgrepWebApp
|
|
|
148
148
|
client = Client.from_env
|
|
149
149
|
```
|
|
150
150
|
|
|
151
|
-
See the [`Environment-Based Client Initialization`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
151
|
+
See the [`Environment-Based Client Initialization`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/environment-based-client-initialization.md) section for details.
|
|
152
152
|
|
|
153
153
|
## Environments
|
|
154
154
|
|
|
@@ -164,42 +164,42 @@ The SDK can be configured to use a different environment for making API calls. A
|
|
|
164
164
|
|
|
165
165
|
This API uses the following authentication schemes.
|
|
166
166
|
|
|
167
|
-
* [`SemgrepAdminJWT (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
168
|
-
* [`SemgrepJWT (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
169
|
-
* [`SemgrepWebToken (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
167
|
+
* [`SemgrepAdminJWT (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/auth/oauth-2-bearer-token.md)
|
|
168
|
+
* [`SemgrepJWT (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/auth/oauth-2-bearer-token-1.md)
|
|
169
|
+
* [`SemgrepWebToken (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/auth/oauth-2-bearer-token-2.md)
|
|
170
170
|
|
|
171
171
|
## List of APIs
|
|
172
172
|
|
|
173
|
-
* [Deployments Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
174
|
-
* [Findings Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
175
|
-
* [Misc Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
176
|
-
* [Policies Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
177
|
-
* [Projects Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
178
|
-
* [Scans Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
179
|
-
* [Secrets Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
180
|
-
* [Supply Chain Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
181
|
-
* [Ticketing Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
182
|
-
* [Triage Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
173
|
+
* [Deployments Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/controllers/deployments-service.md)
|
|
174
|
+
* [Findings Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/controllers/findings-service.md)
|
|
175
|
+
* [Misc Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/controllers/misc-service.md)
|
|
176
|
+
* [Policies Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/controllers/policies-service.md)
|
|
177
|
+
* [Projects Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/controllers/projects-service.md)
|
|
178
|
+
* [Scans Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/controllers/scans-service.md)
|
|
179
|
+
* [Secrets Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/controllers/secrets-service.md)
|
|
180
|
+
* [Supply Chain Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/controllers/supply-chain-service.md)
|
|
181
|
+
* [Ticketing Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/controllers/ticketing-service.md)
|
|
182
|
+
* [Triage Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/controllers/triage-service.md)
|
|
183
183
|
|
|
184
184
|
## SDK Infrastructure
|
|
185
185
|
|
|
186
186
|
### Configuration
|
|
187
187
|
|
|
188
|
-
* [ProxySettings](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
189
|
-
* [Environment-Based Client Initialization](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
190
|
-
* [AbstractLogger](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
191
|
-
* [LoggingConfiguration](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
192
|
-
* [RequestLoggingConfiguration](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
193
|
-
* [ResponseLoggingConfiguration](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
188
|
+
* [ProxySettings](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/proxy-settings.md)
|
|
189
|
+
* [Environment-Based Client Initialization](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/environment-based-client-initialization.md)
|
|
190
|
+
* [AbstractLogger](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/abstract-logger.md)
|
|
191
|
+
* [LoggingConfiguration](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/logging-configuration.md)
|
|
192
|
+
* [RequestLoggingConfiguration](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/request-logging-configuration.md)
|
|
193
|
+
* [ResponseLoggingConfiguration](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/response-logging-configuration.md)
|
|
194
194
|
|
|
195
195
|
### HTTP
|
|
196
196
|
|
|
197
|
-
* [HttpResponse](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
198
|
-
* [HttpRequest](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
197
|
+
* [HttpResponse](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/http-response.md)
|
|
198
|
+
* [HttpRequest](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/http-request.md)
|
|
199
199
|
|
|
200
200
|
### Utilities
|
|
201
201
|
|
|
202
|
-
* [ApiResponse](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
203
|
-
* [ApiHelper](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
204
|
-
* [DateTimeHelper](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.
|
|
202
|
+
* [ApiResponse](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/api-response.md)
|
|
203
|
+
* [ApiHelper](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/api-helper.md)
|
|
204
|
+
* [DateTimeHelper](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.2/doc/date-time-helper.md)
|
|
205
205
|
|
|
@@ -10,7 +10,7 @@ module SemgrepWebApp
|
|
|
10
10
|
attr_accessor :config, :http_call_back
|
|
11
11
|
|
|
12
12
|
def self.user_agent
|
|
13
|
-
'Ruby-SDK/0.0.
|
|
13
|
+
'Ruby-SDK/0.0.2 (OS: {os-info}, Engine: {engine}/{engine-version})'
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def self.user_agent_parameters
|
|
@@ -12,7 +12,7 @@ module SemgrepWebApp
|
|
|
12
12
|
# access. The endpoint additionally returns links to related resources
|
|
13
13
|
# available on this API.
|
|
14
14
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
15
|
-
def
|
|
15
|
+
def list_deployments
|
|
16
16
|
@api_call
|
|
17
17
|
.request(new_request_builder(HttpMethodEnum::GET,
|
|
18
18
|
'/api/v1/deployments',
|
|
@@ -45,28 +45,28 @@ module SemgrepWebApp
|
|
|
45
45
|
# @param [ClickToFixPrState] click_to_fix_pr_state Optional parameter:
|
|
46
46
|
# Example:
|
|
47
47
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
48
|
-
def
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
48
|
+
def list_findings(deployment_slug,
|
|
49
|
+
issue_type: IssueType2::SAST,
|
|
50
|
+
since: nil,
|
|
51
|
+
page: 0,
|
|
52
|
+
dedup: false,
|
|
53
|
+
page_size: 100,
|
|
54
|
+
repos: nil,
|
|
55
|
+
repository_ids: nil,
|
|
56
|
+
status: nil,
|
|
57
|
+
triage_reasons: nil,
|
|
58
|
+
severities: nil,
|
|
59
|
+
ref: nil,
|
|
60
|
+
policies: nil,
|
|
61
|
+
rules: nil,
|
|
62
|
+
categories: nil,
|
|
63
|
+
confidence: nil,
|
|
64
|
+
autotriage_verdict: nil,
|
|
65
|
+
component_tags: nil,
|
|
66
|
+
exposures: nil,
|
|
67
|
+
transitivities: nil,
|
|
68
|
+
is_malicious: nil,
|
|
69
|
+
click_to_fix_pr_state: nil)
|
|
70
70
|
@api_call
|
|
71
71
|
.request(new_request_builder(HttpMethodEnum::GET,
|
|
72
72
|
'/api/v1/deployments/{deploymentSlug}/findings',
|
|
@@ -17,7 +17,7 @@ module SemgrepWebApp
|
|
|
17
17
|
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-fo
|
|
18
18
|
# rmats.html
|
|
19
19
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
20
|
-
def
|
|
20
|
+
def get_bootstrap_sms_vpc
|
|
21
21
|
@api_call
|
|
22
22
|
.request(new_request_builder(HttpMethodEnum::GET,
|
|
23
23
|
'/api/v1/bootstrap-sms-vpc',
|
|
@@ -32,7 +32,7 @@ module SemgrepWebApp
|
|
|
32
32
|
|
|
33
33
|
# Use to ping the server and assert liveness.
|
|
34
34
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
35
|
-
def
|
|
35
|
+
def ping
|
|
36
36
|
@api_call
|
|
37
37
|
.request(new_request_builder(HttpMethodEnum::GET,
|
|
38
38
|
'/api/v1/ping',
|
|
@@ -10,7 +10,7 @@ module SemgrepWebApp
|
|
|
10
10
|
# @param [String] deployment_id Required parameter: TODO: type description
|
|
11
11
|
# here
|
|
12
12
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
13
|
-
def
|
|
13
|
+
def list_policies(deployment_id)
|
|
14
14
|
@api_call
|
|
15
15
|
.request(new_request_builder(HttpMethodEnum::GET,
|
|
16
16
|
'/api/v1/deployments/{deploymentId}/policies',
|
|
@@ -35,10 +35,10 @@ module SemgrepWebApp
|
|
|
35
35
|
# @param [String] cursor Optional parameter: TODO: type description here
|
|
36
36
|
# @param [Integer] limit Optional parameter: TODO: type description here
|
|
37
37
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
38
|
-
def
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
def list_policy_rules(deployment_id,
|
|
39
|
+
policy_id,
|
|
40
|
+
cursor: nil,
|
|
41
|
+
limit: nil)
|
|
42
42
|
@api_call
|
|
43
43
|
.request(new_request_builder(HttpMethodEnum::GET,
|
|
44
44
|
'/api/v1/deployments/{deploymentId}/policies/{policyId}',
|
|
@@ -68,9 +68,9 @@ module SemgrepWebApp
|
|
|
68
68
|
# @param [UpdatePolicyRequest] body Required parameter: TODO: type
|
|
69
69
|
# description here
|
|
70
70
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
71
|
-
def
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
def update_policy(deployment_id,
|
|
72
|
+
policy_id,
|
|
73
|
+
body)
|
|
74
74
|
@api_call
|
|
75
75
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
76
76
|
'/api/v1/deployments/{deploymentId}/policies/{policyId}',
|
|
@@ -14,9 +14,9 @@ module SemgrepWebApp
|
|
|
14
14
|
# @param [Integer] page Optional parameter: TODO: type description here
|
|
15
15
|
# @param [Integer] page_size Optional parameter: Example:100
|
|
16
16
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
17
|
-
def
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
def list_projects(deployment_slug,
|
|
18
|
+
page: nil,
|
|
19
|
+
page_size: 100)
|
|
20
20
|
@api_call
|
|
21
21
|
.request(new_request_builder(HttpMethodEnum::GET,
|
|
22
22
|
'/api/v1/deployments/{deploymentSlug}/projects',
|
|
@@ -42,8 +42,8 @@ module SemgrepWebApp
|
|
|
42
42
|
# @param [String] project_name Required parameter: TODO: type description
|
|
43
43
|
# here
|
|
44
44
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
45
|
-
def
|
|
46
|
-
|
|
45
|
+
def delete_project(deployment_slug,
|
|
46
|
+
project_name)
|
|
47
47
|
@api_call
|
|
48
48
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
|
49
49
|
'/api/v1/deployments/{deploymentSlug}/projects/{projectName}',
|
|
@@ -70,8 +70,8 @@ module SemgrepWebApp
|
|
|
70
70
|
# @param [String] project_name Required parameter: TODO: type description
|
|
71
71
|
# here
|
|
72
72
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
73
|
-
def
|
|
74
|
-
|
|
73
|
+
def get_project(deployment_slug,
|
|
74
|
+
project_name)
|
|
75
75
|
@api_call
|
|
76
76
|
.request(new_request_builder(HttpMethodEnum::GET,
|
|
77
77
|
'/api/v1/deployments/{deploymentSlug}/projects/{projectName}',
|
|
@@ -101,9 +101,9 @@ module SemgrepWebApp
|
|
|
101
101
|
# @param [UpdateProjectRequest] body Required parameter: TODO: type
|
|
102
102
|
# description here
|
|
103
103
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
104
|
-
def
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
def update_project(deployment_slug,
|
|
105
|
+
project_name,
|
|
106
|
+
body)
|
|
107
107
|
@api_call
|
|
108
108
|
.request(new_request_builder(HttpMethodEnum::PATCH,
|
|
109
109
|
'/api/v1/deployments/{deploymentSlug}/projects/{projectName}',
|
|
@@ -137,9 +137,9 @@ module SemgrepWebApp
|
|
|
137
137
|
# @param [ToggleProjectManagedScanRequest] body Required parameter: TODO:
|
|
138
138
|
# type description here
|
|
139
139
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
140
|
-
def
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
def toggle_project_managed_scan(deployment_slug,
|
|
141
|
+
project_name,
|
|
142
|
+
body)
|
|
143
143
|
@api_call
|
|
144
144
|
.request(new_request_builder(HttpMethodEnum::PATCH,
|
|
145
145
|
'/api/v1/deployments/{deploymentSlug}/projects/{projectName}/managed-scan',
|
|
@@ -176,9 +176,9 @@ module SemgrepWebApp
|
|
|
176
176
|
# @param [Array[String]] tags Optional parameter: TODO: type description
|
|
177
177
|
# here
|
|
178
178
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
179
|
-
def
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
def delete_project_tags(deployment_slug,
|
|
180
|
+
project_name,
|
|
181
|
+
tags: nil)
|
|
182
182
|
@api_call
|
|
183
183
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
|
184
184
|
'/api/v1/deployments/{deploymentSlug}/projects/{projectName}/tags',
|
|
@@ -209,9 +209,9 @@ module SemgrepWebApp
|
|
|
209
209
|
# @param [AddProjectTagsRequest] body Required parameter: TODO: type
|
|
210
210
|
# description here
|
|
211
211
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
212
|
-
def
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
def add_project_tags(deployment_slug,
|
|
213
|
+
project_name,
|
|
214
|
+
body)
|
|
215
215
|
@api_call
|
|
216
216
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
217
217
|
'/api/v1/deployments/{deploymentSlug}/projects/{projectName}/tags',
|
|
@@ -12,8 +12,8 @@ module SemgrepWebApp
|
|
|
12
12
|
# here
|
|
13
13
|
# @param [String] scan_id Required parameter: TODO: type description here
|
|
14
14
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
15
|
-
def
|
|
16
|
-
|
|
15
|
+
def get_scan(deployment_id,
|
|
16
|
+
scan_id)
|
|
17
17
|
@api_call
|
|
18
18
|
.request(new_request_builder(HttpMethodEnum::GET,
|
|
19
19
|
'/api/v1/deployments/{deploymentId}/scan/{scanId}',
|
|
@@ -40,8 +40,8 @@ module SemgrepWebApp
|
|
|
40
40
|
# @param [SearchScansRequest] body Required parameter: TODO: type
|
|
41
41
|
# description here
|
|
42
42
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
43
|
-
def
|
|
44
|
-
|
|
43
|
+
def search_scans(deployment_id,
|
|
44
|
+
body)
|
|
45
45
|
@api_call
|
|
46
46
|
.request(new_request_builder(HttpMethodEnum::POST,
|
|
47
47
|
'/api/v1/deployments/{deploymentId}/scans/search',
|
|
@@ -21,14 +21,14 @@ module SemgrepWebApp
|
|
|
21
21
|
# @param [Array[String]] repo Optional parameter: TODO: type description
|
|
22
22
|
# here
|
|
23
23
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
24
|
-
def
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
def list_secrets_path(deployment_id,
|
|
25
|
+
cursor: nil,
|
|
26
|
+
limit: nil,
|
|
27
|
+
since: nil,
|
|
28
|
+
validation_state: nil,
|
|
29
|
+
status: Status8::FINDING_STATUS_UNSPECIFIED,
|
|
30
|
+
severity: nil,
|
|
31
|
+
repo: nil)
|
|
32
32
|
@api_call
|
|
33
33
|
.request(new_request_builder(HttpMethodEnum::GET,
|
|
34
34
|
'/api/v1/deployments/{deploymentId}/secrets',
|
|
@@ -12,8 +12,8 @@ module SemgrepWebApp
|
|
|
12
12
|
# @param [ListDependenciesRequest] body Required parameter: TODO: type
|
|
13
13
|
# description here
|
|
14
14
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
15
|
-
def
|
|
16
|
-
|
|
15
|
+
def list_dependencies(deployment_id,
|
|
16
|
+
body)
|
|
17
17
|
@api_call
|
|
18
18
|
.request(new_request_builder(HttpMethodEnum::POST,
|
|
19
19
|
'/api/v1/deployments/{deploymentId}/dependencies',
|
|
@@ -40,8 +40,8 @@ module SemgrepWebApp
|
|
|
40
40
|
# @param [ListRepositoriesForDependenciesRequest] body Required parameter:
|
|
41
41
|
# TODO: type description here
|
|
42
42
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
43
|
-
def
|
|
44
|
-
|
|
43
|
+
def list_repositories_for_dependencies(deployment_id,
|
|
44
|
+
body)
|
|
45
45
|
@api_call
|
|
46
46
|
.request(new_request_builder(HttpMethodEnum::POST,
|
|
47
47
|
'/api/v1/deployments/{deploymentId}/dependencies/repositories',
|
|
@@ -70,9 +70,9 @@ module SemgrepWebApp
|
|
|
70
70
|
# @param [ListLockfilesForDependenciesRequest] body Required parameter:
|
|
71
71
|
# TODO: type description here
|
|
72
72
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
73
|
-
def
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
def list_lockfiles_for_dependencies(deployment_id,
|
|
74
|
+
repository_id,
|
|
75
|
+
body)
|
|
76
76
|
@api_call
|
|
77
77
|
.request(new_request_builder(HttpMethodEnum::POST,
|
|
78
78
|
'/api/v1/deployments/{deploymentId}/dependencies/repositories/{repositoryId}/lockfiles',
|
|
@@ -102,8 +102,8 @@ module SemgrepWebApp
|
|
|
102
102
|
# @param [CreateSbomExportRequest] body Required parameter: TODO: type
|
|
103
103
|
# description here
|
|
104
104
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
105
|
-
def
|
|
106
|
-
|
|
105
|
+
def create_sbom_export(deployment_id,
|
|
106
|
+
body)
|
|
107
107
|
@api_call
|
|
108
108
|
.request(new_request_builder(HttpMethodEnum::POST,
|
|
109
109
|
'/api/v1/deployments/{deploymentId}/sbom/export',
|
|
@@ -130,8 +130,8 @@ module SemgrepWebApp
|
|
|
130
130
|
# @param [String] task_token Required parameter: TODO: type description
|
|
131
131
|
# here
|
|
132
132
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
133
|
-
def
|
|
134
|
-
|
|
133
|
+
def get_sbom_export(deployment_id,
|
|
134
|
+
task_token)
|
|
135
135
|
@api_call
|
|
136
136
|
.request(new_request_builder(HttpMethodEnum::GET,
|
|
137
137
|
'/api/v1/deployments/{deploymentId}/sbom/export/{taskToken}',
|
|
@@ -12,8 +12,8 @@ module SemgrepWebApp
|
|
|
12
12
|
# @param [Integer] external_ticket_id Required parameter: TODO: type
|
|
13
13
|
# description here
|
|
14
14
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
15
|
-
def
|
|
16
|
-
|
|
15
|
+
def delete_ticket(deployment_id,
|
|
16
|
+
external_ticket_id)
|
|
17
17
|
@api_call
|
|
18
18
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
|
19
19
|
'/api/v1/deployments/{deploymentId}/ticketing/v2/tickets/{externalTicketId}',
|
|
@@ -44,8 +44,8 @@ module SemgrepWebApp
|
|
|
44
44
|
# @param [LinkTicketRequest] body Required parameter: TODO: type description
|
|
45
45
|
# here
|
|
46
46
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
47
|
-
def
|
|
48
|
-
|
|
47
|
+
def link_ticket(deployment_id,
|
|
48
|
+
body)
|
|
49
49
|
@api_call
|
|
50
50
|
.request(new_request_builder(HttpMethodEnum::POST,
|
|
51
51
|
'/api/v1/deployments/{deploymentId}/tickets/link',
|
|
@@ -74,8 +74,8 @@ module SemgrepWebApp
|
|
|
74
74
|
# @param [UnlinkTicketRequest] body Required parameter: TODO: type
|
|
75
75
|
# description here
|
|
76
76
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
77
|
-
def
|
|
78
|
-
|
|
77
|
+
def unlink_ticket(deployment_id,
|
|
78
|
+
body)
|
|
79
79
|
@api_call
|
|
80
80
|
.request(new_request_builder(HttpMethodEnum::POST,
|
|
81
81
|
'/api/v1/deployments/{deploymentId}/tickets/unlink',
|
|
@@ -119,8 +119,8 @@ module SemgrepWebApp
|
|
|
119
119
|
# @param [CreateTicketRequest] body Required parameter: TODO: type
|
|
120
120
|
# description here
|
|
121
121
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
122
|
-
def
|
|
123
|
-
|
|
122
|
+
def create_ticket(deployment_slug,
|
|
123
|
+
body)
|
|
124
124
|
@api_call
|
|
125
125
|
.request(new_request_builder(HttpMethodEnum::POST,
|
|
126
126
|
'/api/v1/deployments/{deploymentSlug}/tickets',
|
|
@@ -18,8 +18,8 @@ module SemgrepWebApp
|
|
|
18
18
|
# @param [BulkTriageRequest] body Required parameter: TODO: type description
|
|
19
19
|
# here
|
|
20
20
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
21
|
-
def
|
|
22
|
-
|
|
21
|
+
def bulk_triage(deployment_slug,
|
|
22
|
+
body)
|
|
23
23
|
@api_call
|
|
24
24
|
.request(new_request_builder(HttpMethodEnum::POST,
|
|
25
25
|
'/api/v1/deployments/{deploymentSlug}/triage',
|