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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2444f05a2feb921ab081ddb53f4f73a9e0af77a4c06be31577d76c993af2471
4
- data.tar.gz: e397e7b7847a0b907f5aed1af2b760b28b66f70f42148046930082b33618f4d8
3
+ metadata.gz: 47c7a8e7841a2bc1fe74a36210d471877575c29654922ff1c10a0fa86c015541
4
+ data.tar.gz: fd87dd2a7d3e97925b0d62f762acc91bb24d9ab1066926708af2b69f5d789c38
5
5
  SHA512:
6
- metadata.gz: 61583c9981eeca62d870e8a68dbef71fda5bec9c4dbf9b281345b34dfc873398f65689171248d3bfcb0c1481315aad07572b5d08ac964db167f2bcbbe5515eba
7
- data.tar.gz: 8993bcf07822478d50fe25c32895e81eb173874e9845362bcc912b4d9e9b16399e954dfa5e419f8aea2c3a81392969b036c8c525fa0dd478b55f672a45a0218d
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.1
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.1'
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.1).
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.1/doc/client.md)
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.1/README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
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.1/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.1/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.1/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.1/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.1/doc/auth/oauth-2-bearer-token-2.md) | The credential object for OAuth 2 Bearer token |
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.1/doc/environment-based-client-initialization.md) section for details.
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.1/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.1/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.1/doc/auth/oauth-2-bearer-token-2.md)
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.1/doc/controllers/deployments-service.md)
174
- * [Findings Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/controllers/findings-service.md)
175
- * [Misc Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/controllers/misc-service.md)
176
- * [Policies Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/controllers/policies-service.md)
177
- * [Projects Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/controllers/projects-service.md)
178
- * [Scans Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/controllers/scans-service.md)
179
- * [Secrets Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/controllers/secrets-service.md)
180
- * [Supply Chain Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/controllers/supply-chain-service.md)
181
- * [Ticketing Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/controllers/ticketing-service.md)
182
- * [Triage Service](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/controllers/triage-service.md)
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.1/doc/proxy-settings.md)
189
- * [Environment-Based Client Initialization](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/environment-based-client-initialization.md)
190
- * [AbstractLogger](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/abstract-logger.md)
191
- * [LoggingConfiguration](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/logging-configuration.md)
192
- * [RequestLoggingConfiguration](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/request-logging-configuration.md)
193
- * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/response-logging-configuration.md)
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.1/doc/http-response.md)
198
- * [HttpRequest](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/http-request.md)
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.1/doc/api-response.md)
203
- * [ApiHelper](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/api-helper.md)
204
- * [DateTimeHelper](https://www.github.com/sdks-io/apimatic-semgrep-ruby-sdk/tree/0.0.1/doc/date-time-helper.md)
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.1 (OS: {os-info}, Engine: {engine}/{engine-version})'
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 deployments_service_list_deployments
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 findings_service_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)
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 misc_service_get_bootstrap_sms_vpc
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 misc_service_ping
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 policies_service_list_policies(deployment_id)
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 policies_service_list_policy_rules(deployment_id,
39
- policy_id,
40
- cursor: nil,
41
- limit: nil)
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 policies_service_update_policy(deployment_id,
72
- policy_id,
73
- body)
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 projects_service_list_projects(deployment_slug,
18
- page: nil,
19
- page_size: 100)
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 projects_service_delete_project(deployment_slug,
46
- project_name)
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 projects_service_get_project(deployment_slug,
74
- project_name)
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 projects_service_update_project(deployment_slug,
105
- project_name,
106
- body)
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 projects_service_toggle_project_managed_scan(deployment_slug,
141
- project_name,
142
- body)
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 projects_service_delete_project_tags(deployment_slug,
180
- project_name,
181
- tags: nil)
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 projects_service_add_project_tags(deployment_slug,
213
- project_name,
214
- body)
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 scans_service_get_scan(deployment_id,
16
- scan_id)
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 scans_service_search_scans(deployment_id,
44
- body)
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 secrets_service_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)
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 supply_chain_service_list_dependencies(deployment_id,
16
- body)
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 supply_chain_service_list_repositories_for_dependencies(deployment_id,
44
- body)
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 supply_chain_service_list_lockfiles_for_dependencies(deployment_id,
74
- repository_id,
75
- body)
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 supply_chain_service_create_sbom_export(deployment_id,
106
- body)
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 supply_chain_service_get_sbom_export(deployment_id,
134
- task_token)
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 ticketing_service_delete_ticket(deployment_id,
16
- external_ticket_id)
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 ticketing_service_link_ticket(deployment_id,
48
- body)
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 ticketing_service_unlink_ticket(deployment_id,
78
- body)
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 ticketing_service_create_ticket(deployment_slug,
123
- body)
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 triage_service_bulk_triage(deployment_slug,
22
- body)
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',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apimatic-semgrep-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - developer sdksio