-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from isimluk/swagger-update
Re-generate the codebase using the latest swagger
- Loading branch information
Showing
7 changed files
with
452 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* CrowdStrike API Specification | ||
* Use this API specification as a reference for the API endpoints you can use to interact with your Falcon environment. These endpoints support authentication via OAuth2 and interact with detections and network containment. For detailed usage guides and more information about API endpoints that don\'t yet support OAuth2, see our [documentation inside the Falcon console](https://falcon.crowdstrike.com/support/documentation). To use the APIs described below, combine the base URL with the path shown for each API endpoint. For commercial cloud customers, your base URL is `https://api.crowdstrike.com`. Each API endpoint requires authorization via an OAuth2 token. Your first API request should retrieve an OAuth2 token using the `oauth2/token` endpoint, such as `https://api.crowdstrike.com/oauth2/token`. For subsequent requests, include the OAuth2 token in an HTTP authorization header. Tokens expire after 30 minutes, after which you should make a new token request to continue making API requests. | ||
* | ||
* The version of the OpenAPI document: rolling | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import * as runtime from "../runtime"; | ||
import type { ApiCustomerSettingsPatchRequestV1, MsaQueryResponse, MsaReplyMetaOnly } from "../models"; | ||
import { | ||
ApiCustomerSettingsPatchRequestV1FromJSON, | ||
ApiCustomerSettingsPatchRequestV1ToJSON, | ||
MsaQueryResponseFromJSON, | ||
MsaQueryResponseToJSON, | ||
MsaReplyMetaOnlyFromJSON, | ||
MsaReplyMetaOnlyToJSON, | ||
} from "../models"; | ||
|
||
export interface CustomerSettingsUpdateRequest { | ||
body: ApiCustomerSettingsPatchRequestV1; | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
export class InstallationTokensSettingsApi extends runtime.BaseAPI { | ||
/** | ||
* Update installation token settings. | ||
*/ | ||
async customerSettingsUpdateRaw(requestParameters: CustomerSettingsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MsaQueryResponse>> { | ||
if (requestParameters.body === null || requestParameters.body === undefined) { | ||
throw new runtime.RequiredError("body", "Required parameter requestParameters.body was null or undefined when calling customerSettingsUpdate."); | ||
} | ||
|
||
const queryParameters: any = {}; | ||
|
||
const headerParameters: runtime.HTTPHeaders = {}; | ||
|
||
headerParameters["Content-Type"] = "application/json"; | ||
|
||
if (this.configuration && this.configuration.accessToken) { | ||
// oauth required | ||
headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", ["installation-tokens-settings:write"]); | ||
} | ||
|
||
const response = await this.request( | ||
{ | ||
path: `/installation-tokens/entities/customer-settings/v1`, | ||
method: "PATCH", | ||
headers: headerParameters, | ||
query: queryParameters, | ||
body: ApiCustomerSettingsPatchRequestV1ToJSON(requestParameters.body), | ||
}, | ||
initOverrides | ||
); | ||
|
||
return new runtime.JSONApiResponse(response, (jsonValue) => MsaQueryResponseFromJSON(jsonValue)); | ||
} | ||
|
||
/** | ||
* Update installation token settings. | ||
*/ | ||
async customerSettingsUpdate(body: ApiCustomerSettingsPatchRequestV1, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MsaQueryResponse> { | ||
const response = await this.customerSettingsUpdateRaw({ body: body }, initOverrides); | ||
return await response.value(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.