@maxim_mazurok/gapi.client.securityposture-v1 0.2.20260317 → 0.3.20260618
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.
- package/index.d.ts +5 -5
- package/package.json +1 -1
- package/readme.md +17 -0
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://securityposture.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260618
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -398,7 +398,7 @@ declare namespace gapi.client {
|
|
|
398
398
|
resourceTypes?: string[];
|
|
399
399
|
}
|
|
400
400
|
interface ResourceTypes {
|
|
401
|
-
/** Optional. The resource types we
|
|
401
|
+
/** Optional. The resource types we support. */
|
|
402
402
|
included?: string[];
|
|
403
403
|
}
|
|
404
404
|
interface SecurityHealthAnalyticsCustomModule {
|
|
@@ -427,7 +427,7 @@ declare namespace gapi.client {
|
|
|
427
427
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
428
428
|
code?: number;
|
|
429
429
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
430
|
-
details?:
|
|
430
|
+
details?: {[P in string]: any}[];
|
|
431
431
|
/** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
|
|
432
432
|
message?: string;
|
|
433
433
|
}
|
|
@@ -1348,7 +1348,7 @@ declare namespace gapi.client {
|
|
|
1348
1348
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1349
1349
|
uploadType?: string;
|
|
1350
1350
|
}): Request<Location>;
|
|
1351
|
-
/** Lists information about the supported locations for this service. This method
|
|
1351
|
+
/** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
|
|
1352
1352
|
list(request?: {
|
|
1353
1353
|
/** V1 error format. */
|
|
1354
1354
|
'$.xgafv'?: '1' | '2';
|
|
@@ -1358,7 +1358,7 @@ declare namespace gapi.client {
|
|
|
1358
1358
|
alt?: 'json' | 'media' | 'proto';
|
|
1359
1359
|
/** JSONP */
|
|
1360
1360
|
callback?: string;
|
|
1361
|
-
/** Optional. Do not use this field
|
|
1361
|
+
/** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
|
|
1362
1362
|
extraLocationTypes?: string | string[];
|
|
1363
1363
|
/** Selector specifying which fields to include in a partial response. */
|
|
1364
1364
|
fields?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Security Posture API:
|
|
|
11
11
|
npm install @types/gapi.client.securityposture-v1 --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": [
|
|
22
|
+
"gapi",
|
|
23
|
+
"gapi.auth2",
|
|
24
|
+
"gapi.client",
|
|
25
|
+
"gapi.client.securityposture-v1"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|