@maxim_mazurok/gapi.client.orgpolicy-v2 0.2.20260312 → 0.2.20260601
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 +22 -22
- package/package.json +1 -1
- package/readme.md +12 -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://orgpolicy.googleapis.com/$discovery/rest?version=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260601
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -25,7 +25,7 @@ declare namespace gapi.client {
|
|
|
25
25
|
|
|
26
26
|
namespace orgpolicy {
|
|
27
27
|
interface GoogleCloudOrgpolicyV2AlternatePolicySpec {
|
|
28
|
-
/** Reference to the launch that will be used while audit logging and to control the launch.
|
|
28
|
+
/** Reference to the launch that will be used while audit logging and to control the launch. Set only in the alternate policy. */
|
|
29
29
|
launch?: string;
|
|
30
30
|
/** Specify constraint for configurations of Google Cloud resources. */
|
|
31
31
|
spec?: GoogleCloudOrgpolicyV2PolicySpec;
|
|
@@ -113,7 +113,7 @@ declare namespace gapi.client {
|
|
|
113
113
|
| 'DELETE'
|
|
114
114
|
| 'REMOVE_GRANT'
|
|
115
115
|
| 'GOVERN_TAGS'[];
|
|
116
|
-
/** Immutable. Name of the constraint. This is unique within the organization.
|
|
116
|
+
/** Immutable. Name of the constraint. This is unique within the organization. The name must be of the form: * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 71 characters and the minimum length is 1. Note that the prefix `organizations/{organization_id}/customConstraints/custom.` is not counted. */
|
|
117
117
|
name?: string;
|
|
118
118
|
/** Immutable. The resource instance type on which this policy applies. Format will be of the form : `/` Example: * `compute.googleapis.com/Instance`. */
|
|
119
119
|
resourceTypes?: string[];
|
|
@@ -123,17 +123,17 @@ declare namespace gapi.client {
|
|
|
123
123
|
interface GoogleCloudOrgpolicyV2ListConstraintsResponse {
|
|
124
124
|
/** The collection of constraints that are available on the targeted resource. */
|
|
125
125
|
constraints?: GoogleCloudOrgpolicyV2Constraint[];
|
|
126
|
-
/** Page token used to retrieve the next page. This is
|
|
126
|
+
/** Page token used to retrieve the next page. This is not used. */
|
|
127
127
|
nextPageToken?: string;
|
|
128
128
|
}
|
|
129
129
|
interface GoogleCloudOrgpolicyV2ListCustomConstraintsResponse {
|
|
130
130
|
/** All custom and managed constraints that exist on the organization resource. It will be empty if no custom constraints are set. */
|
|
131
131
|
customConstraints?: GoogleCloudOrgpolicyV2CustomConstraint[];
|
|
132
|
-
/** Page token used to retrieve the next page. This is
|
|
132
|
+
/** Page token used to retrieve the next page. This is not used, but the server may at any point start supplying a valid token. */
|
|
133
133
|
nextPageToken?: string;
|
|
134
134
|
}
|
|
135
135
|
interface GoogleCloudOrgpolicyV2ListPoliciesResponse {
|
|
136
|
-
/** Page token used to retrieve the next page. This is
|
|
136
|
+
/** Page token used to retrieve the next page. This is not used, but the server may at any point start supplying a valid token. */
|
|
137
137
|
nextPageToken?: string;
|
|
138
138
|
/** All policies that exist on the resource. It will be empty if no policies are set. */
|
|
139
139
|
policies?: GoogleCloudOrgpolicyV2Policy[];
|
|
@@ -210,9 +210,9 @@ declare namespace gapi.client {
|
|
|
210
210
|
key?: string;
|
|
211
211
|
/** OAuth 2.0 token for the current user. */
|
|
212
212
|
oauth_token?: string;
|
|
213
|
-
/** Size of the pages to be returned. This is
|
|
213
|
+
/** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
|
|
214
214
|
pageSize?: number;
|
|
215
|
-
/** Page token used to retrieve the next page. This is
|
|
215
|
+
/** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
|
|
216
216
|
pageToken?: string;
|
|
217
217
|
/** Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
218
218
|
parent: string;
|
|
@@ -384,9 +384,9 @@ declare namespace gapi.client {
|
|
|
384
384
|
key?: string;
|
|
385
385
|
/** OAuth 2.0 token for the current user. */
|
|
386
386
|
oauth_token?: string;
|
|
387
|
-
/** Size of the pages to be returned. This is
|
|
387
|
+
/** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
|
|
388
388
|
pageSize?: number;
|
|
389
|
-
/** Page token used to retrieve the next page. This is
|
|
389
|
+
/** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
|
|
390
390
|
pageToken?: string;
|
|
391
391
|
/** Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
392
392
|
parent: string;
|
|
@@ -483,9 +483,9 @@ declare namespace gapi.client {
|
|
|
483
483
|
key?: string;
|
|
484
484
|
/** OAuth 2.0 token for the current user. */
|
|
485
485
|
oauth_token?: string;
|
|
486
|
-
/** Size of the pages to be returned. This is
|
|
486
|
+
/** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
|
|
487
487
|
pageSize?: number;
|
|
488
|
-
/** Page token used to retrieve the next page. This is
|
|
488
|
+
/** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
|
|
489
489
|
pageToken?: string;
|
|
490
490
|
/** Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
491
491
|
parent: string;
|
|
@@ -628,9 +628,9 @@ declare namespace gapi.client {
|
|
|
628
628
|
key?: string;
|
|
629
629
|
/** OAuth 2.0 token for the current user. */
|
|
630
630
|
oauth_token?: string;
|
|
631
|
-
/** Size of the pages to be returned. This is
|
|
631
|
+
/** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
|
|
632
632
|
pageSize?: number;
|
|
633
|
-
/** Page token used to retrieve the next page. This is
|
|
633
|
+
/** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
|
|
634
634
|
pageToken?: string;
|
|
635
635
|
/** Required. The target Google Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms: * `organizations/{organization_id}` */
|
|
636
636
|
parent: string;
|
|
@@ -657,7 +657,7 @@ declare namespace gapi.client {
|
|
|
657
657
|
fields?: string;
|
|
658
658
|
/** 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. */
|
|
659
659
|
key?: string;
|
|
660
|
-
/** Immutable. Name of the constraint. This is unique within the organization.
|
|
660
|
+
/** Immutable. Name of the constraint. This is unique within the organization. The name must be of the form: * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 71 characters and the minimum length is 1. Note that the prefix `organizations/{organization_id}/customConstraints/custom.` is not counted. */
|
|
661
661
|
name: string;
|
|
662
662
|
/** OAuth 2.0 token for the current user. */
|
|
663
663
|
oauth_token?: string;
|
|
@@ -686,7 +686,7 @@ declare namespace gapi.client {
|
|
|
686
686
|
fields?: string;
|
|
687
687
|
/** 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. */
|
|
688
688
|
key?: string;
|
|
689
|
-
/** Immutable. Name of the constraint. This is unique within the organization.
|
|
689
|
+
/** Immutable. Name of the constraint. This is unique within the organization. The name must be of the form: * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 71 characters and the minimum length is 1. Note that the prefix `organizations/{organization_id}/customConstraints/custom.` is not counted. */
|
|
690
690
|
name: string;
|
|
691
691
|
/** OAuth 2.0 token for the current user. */
|
|
692
692
|
oauth_token?: string;
|
|
@@ -860,9 +860,9 @@ declare namespace gapi.client {
|
|
|
860
860
|
key?: string;
|
|
861
861
|
/** OAuth 2.0 token for the current user. */
|
|
862
862
|
oauth_token?: string;
|
|
863
|
-
/** Size of the pages to be returned. This is
|
|
863
|
+
/** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
|
|
864
864
|
pageSize?: number;
|
|
865
|
-
/** Page token used to retrieve the next page. This is
|
|
865
|
+
/** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
|
|
866
866
|
pageToken?: string;
|
|
867
867
|
/** Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
868
868
|
parent: string;
|
|
@@ -960,9 +960,9 @@ declare namespace gapi.client {
|
|
|
960
960
|
key?: string;
|
|
961
961
|
/** OAuth 2.0 token for the current user. */
|
|
962
962
|
oauth_token?: string;
|
|
963
|
-
/** Size of the pages to be returned. This is
|
|
963
|
+
/** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
|
|
964
964
|
pageSize?: number;
|
|
965
|
-
/** Page token used to retrieve the next page. This is
|
|
965
|
+
/** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
|
|
966
966
|
pageToken?: string;
|
|
967
967
|
/** Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
968
968
|
parent: string;
|
|
@@ -1134,9 +1134,9 @@ declare namespace gapi.client {
|
|
|
1134
1134
|
key?: string;
|
|
1135
1135
|
/** OAuth 2.0 token for the current user. */
|
|
1136
1136
|
oauth_token?: string;
|
|
1137
|
-
/** Size of the pages to be returned. This is
|
|
1137
|
+
/** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
|
|
1138
1138
|
pageSize?: number;
|
|
1139
|
-
/** Page token used to retrieve the next page. This is
|
|
1139
|
+
/** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
|
|
1140
1140
|
pageToken?: string;
|
|
1141
1141
|
/** Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
1142
1142
|
parent: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,18 @@ Install typings for Organization Policy API:
|
|
|
11
11
|
npm install @types/gapi.client.orgpolicy-v2 --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": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.orgpolicy-v2"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
14
26
|
## Usage
|
|
15
27
|
|
|
16
28
|
You need to initialize Google API client in your code:
|