@maxim_mazurok/gapi.client.osconfig-v2beta 0.2.20260312 → 0.2.20260604
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 +11 -59
- 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://osconfig.googleapis.com/$discovery/rest?version=v2beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260604
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -32,54 +32,6 @@ declare namespace gapi.client {
|
|
|
32
32
|
/** Specifies the relative value defined as a percentage, which will be multiplied by a reference value. */
|
|
33
33
|
percent?: number;
|
|
34
34
|
}
|
|
35
|
-
interface GoogleCloudOsconfigCommonV1__OperationMetadata {
|
|
36
|
-
/** Output only. API version used to start the operation. */
|
|
37
|
-
apiVersion?: string;
|
|
38
|
-
/** Output only. The time the operation was created. */
|
|
39
|
-
createTime?: string;
|
|
40
|
-
/** Output only. The time the operation finished running. */
|
|
41
|
-
endTime?: string;
|
|
42
|
-
/** Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
|
|
43
|
-
requestedCancellation?: boolean;
|
|
44
|
-
/** Output only. Human-readable status of the operation, if any. */
|
|
45
|
-
statusMessage?: string;
|
|
46
|
-
/** Output only. Server-defined resource path for the target of the operation. */
|
|
47
|
-
target?: string;
|
|
48
|
-
/** Output only. Name of the verb executed by the operation. */
|
|
49
|
-
verb?: string;
|
|
50
|
-
}
|
|
51
|
-
interface GoogleCloudOsconfigCommonV1alpha__OperationMetadata {
|
|
52
|
-
/** Output only. API version used to start the operation. */
|
|
53
|
-
apiVersion?: string;
|
|
54
|
-
/** Output only. The time the operation was created. */
|
|
55
|
-
createTime?: string;
|
|
56
|
-
/** Output only. The time the operation finished running. */
|
|
57
|
-
endTime?: string;
|
|
58
|
-
/** Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
|
|
59
|
-
requestedCancellation?: boolean;
|
|
60
|
-
/** Output only. Human-readable status of the operation, if any. */
|
|
61
|
-
statusMessage?: string;
|
|
62
|
-
/** Output only. Server-defined resource path for the target of the operation. */
|
|
63
|
-
target?: string;
|
|
64
|
-
/** Output only. Name of the verb executed by the operation. */
|
|
65
|
-
verb?: string;
|
|
66
|
-
}
|
|
67
|
-
interface GoogleCloudOsconfigCommonV1main__OperationMetadata {
|
|
68
|
-
/** Output only. API version used to start the operation. */
|
|
69
|
-
apiVersion?: string;
|
|
70
|
-
/** Output only. The time the operation was created. */
|
|
71
|
-
createTime?: string;
|
|
72
|
-
/** Output only. The time the operation finished running. */
|
|
73
|
-
endTime?: string;
|
|
74
|
-
/** Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
|
|
75
|
-
requestedCancellation?: boolean;
|
|
76
|
-
/** Output only. Human-readable status of the operation, if any. */
|
|
77
|
-
statusMessage?: string;
|
|
78
|
-
/** Output only. Server-defined resource path for the target of the operation. */
|
|
79
|
-
target?: string;
|
|
80
|
-
/** Output only. Name of the verb executed by the operation. */
|
|
81
|
-
verb?: string;
|
|
82
|
-
}
|
|
83
35
|
interface GoogleCloudOsconfigV1__OSPolicyAssignmentOperationMetadata {
|
|
84
36
|
/** The OS policy assignment API method. */
|
|
85
37
|
apiMethod?: 'API_METHOD_UNSPECIFIED' | 'CREATE' | 'UPDATE' | 'DELETE';
|
|
@@ -158,7 +110,7 @@ declare namespace gapi.client {
|
|
|
158
110
|
etag?: string;
|
|
159
111
|
/** Optional. Labels as key value pairs */
|
|
160
112
|
labels?: {[P in string]: string};
|
|
161
|
-
/** Immutable. Identifier. In
|
|
113
|
+
/** Immutable. Identifier. In the following format: * `organizations/{organization_id}/locations/global/policyOrchestrators/{orchestrator_id}` * `folders/{folder_id}/locations/global/policyOrchestrators/{orchestrator_id}` * `projects/{project_id_or_number}/locations/global/policyOrchestrators/{orchestrator_id}` */
|
|
162
114
|
name?: string;
|
|
163
115
|
/** Required. Resource to be orchestrated by the policy orchestrator. */
|
|
164
116
|
orchestratedResource?: GoogleCloudOsconfigV2beta__OrchestratedResource;
|
|
@@ -166,7 +118,7 @@ declare namespace gapi.client {
|
|
|
166
118
|
orchestrationScope?: GoogleCloudOsconfigV2beta__OrchestrationScope;
|
|
167
119
|
/** Output only. State of the orchestration. */
|
|
168
120
|
orchestrationState?: GoogleCloudOsconfigV2beta_PolicyOrchestrator_OrchestrationState;
|
|
169
|
-
/** Output only. Set to true, if
|
|
121
|
+
/** Output only. Set to true, if there are ongoing changes being applied by the orchestrator. */
|
|
170
122
|
reconciling?: boolean;
|
|
171
123
|
/** Optional. State of the orchestrator. Can be updated to change orchestrator behaviour. Allowed values: - `ACTIVE` - orchestrator is actively looking for actions to be taken. - `STOPPED` - orchestrator won't make any changes. Note: There might be more states added in the future. We use string here instead of an enum, to avoid the need of propagating new states to all the client code. */
|
|
172
124
|
state?: string;
|
|
@@ -389,7 +341,7 @@ declare namespace gapi.client {
|
|
|
389
341
|
uri?: string;
|
|
390
342
|
}
|
|
391
343
|
interface OSPolicyResourceFileResource {
|
|
392
|
-
/** A
|
|
344
|
+
/** A file with this content. The size of the content is limited to 32KiB. */
|
|
393
345
|
content?: string;
|
|
394
346
|
/** A remote or local source. */
|
|
395
347
|
file?: OSPolicyResourceFile;
|
|
@@ -514,7 +466,7 @@ declare namespace gapi.client {
|
|
|
514
466
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
515
467
|
code?: number;
|
|
516
468
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
517
|
-
details?:
|
|
469
|
+
details?: {[P in string]: any}[];
|
|
518
470
|
/** 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. */
|
|
519
471
|
message?: string;
|
|
520
472
|
}
|
|
@@ -704,7 +656,7 @@ declare namespace gapi.client {
|
|
|
704
656
|
fields?: string;
|
|
705
657
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
706
658
|
key?: string;
|
|
707
|
-
/** Immutable. Identifier. In
|
|
659
|
+
/** Immutable. Identifier. In the following format: * `organizations/{organization_id}/locations/global/policyOrchestrators/{orchestrator_id}` * `folders/{folder_id}/locations/global/policyOrchestrators/{orchestrator_id}` * `projects/{project_id_or_number}/locations/global/policyOrchestrators/{orchestrator_id}` */
|
|
708
660
|
name: string;
|
|
709
661
|
/** OAuth 2.0 token for the current user. */
|
|
710
662
|
oauth_token?: string;
|
|
@@ -735,7 +687,7 @@ declare namespace gapi.client {
|
|
|
735
687
|
fields?: string;
|
|
736
688
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
737
689
|
key?: string;
|
|
738
|
-
/** Immutable. Identifier. In
|
|
690
|
+
/** Immutable. Identifier. In the following format: * `organizations/{organization_id}/locations/global/policyOrchestrators/{orchestrator_id}` * `folders/{folder_id}/locations/global/policyOrchestrators/{orchestrator_id}` * `projects/{project_id_or_number}/locations/global/policyOrchestrators/{orchestrator_id}` */
|
|
739
691
|
name: string;
|
|
740
692
|
/** OAuth 2.0 token for the current user. */
|
|
741
693
|
oauth_token?: string;
|
|
@@ -1086,7 +1038,7 @@ declare namespace gapi.client {
|
|
|
1086
1038
|
fields?: string;
|
|
1087
1039
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1088
1040
|
key?: string;
|
|
1089
|
-
/** Immutable. Identifier. In
|
|
1041
|
+
/** Immutable. Identifier. In the following format: * `organizations/{organization_id}/locations/global/policyOrchestrators/{orchestrator_id}` * `folders/{folder_id}/locations/global/policyOrchestrators/{orchestrator_id}` * `projects/{project_id_or_number}/locations/global/policyOrchestrators/{orchestrator_id}` */
|
|
1090
1042
|
name: string;
|
|
1091
1043
|
/** OAuth 2.0 token for the current user. */
|
|
1092
1044
|
oauth_token?: string;
|
|
@@ -1117,7 +1069,7 @@ declare namespace gapi.client {
|
|
|
1117
1069
|
fields?: string;
|
|
1118
1070
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1119
1071
|
key?: string;
|
|
1120
|
-
/** Immutable. Identifier. In
|
|
1072
|
+
/** Immutable. Identifier. In the following format: * `organizations/{organization_id}/locations/global/policyOrchestrators/{orchestrator_id}` * `folders/{folder_id}/locations/global/policyOrchestrators/{orchestrator_id}` * `projects/{project_id_or_number}/locations/global/policyOrchestrators/{orchestrator_id}` */
|
|
1121
1073
|
name: string;
|
|
1122
1074
|
/** OAuth 2.0 token for the current user. */
|
|
1123
1075
|
oauth_token?: string;
|
|
@@ -1468,7 +1420,7 @@ declare namespace gapi.client {
|
|
|
1468
1420
|
fields?: string;
|
|
1469
1421
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1470
1422
|
key?: string;
|
|
1471
|
-
/** Immutable. Identifier. In
|
|
1423
|
+
/** Immutable. Identifier. In the following format: * `organizations/{organization_id}/locations/global/policyOrchestrators/{orchestrator_id}` * `folders/{folder_id}/locations/global/policyOrchestrators/{orchestrator_id}` * `projects/{project_id_or_number}/locations/global/policyOrchestrators/{orchestrator_id}` */
|
|
1472
1424
|
name: string;
|
|
1473
1425
|
/** OAuth 2.0 token for the current user. */
|
|
1474
1426
|
oauth_token?: string;
|
|
@@ -1499,7 +1451,7 @@ declare namespace gapi.client {
|
|
|
1499
1451
|
fields?: string;
|
|
1500
1452
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1501
1453
|
key?: string;
|
|
1502
|
-
/** Immutable. Identifier. In
|
|
1454
|
+
/** Immutable. Identifier. In the following format: * `organizations/{organization_id}/locations/global/policyOrchestrators/{orchestrator_id}` * `folders/{folder_id}/locations/global/policyOrchestrators/{orchestrator_id}` * `projects/{project_id_or_number}/locations/global/policyOrchestrators/{orchestrator_id}` */
|
|
1503
1455
|
name: string;
|
|
1504
1456
|
/** OAuth 2.0 token for the current user. */
|
|
1505
1457
|
oauth_token?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for OS Config API:
|
|
|
11
11
|
npm install @types/gapi.client.osconfig-v2beta --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.osconfig-v2beta"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|