@maxim_mazurok/gapi.client.orgpolicy-v2 0.3.20260710 → 0.3.20260723

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.
Files changed (3) hide show
  1. package/index.d.ts +21 -21
  2. package/package.json +1 -1
  3. package/readme.md +6 -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: 20260710
12
+ // Revision: 20260723
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -43,7 +43,7 @@ declare namespace gapi.client {
43
43
  equivalentConstraint?: string;
44
44
  /** Defines this constraint as being a list constraint. */
45
45
  listConstraint?: GoogleCloudOrgpolicyV2ConstraintListConstraint;
46
- /** Immutable. The resource name of the constraint. Must be in one of the following forms: * `projects/{project_number}/constraints/{constraint_name}` * `folders/{folder_id}/constraints/{constraint_name}` * `organizations/{organization_id}/constraints/{constraint_name}` For example, "/projects/123/constraints/compute.disableSerialPortAccess". */
46
+ /** Immutable. The resource name of the constraint. Must be in one of the following forms: * `projects/{project_number}/constraints/{constraint_name}` * `folders/{folder_number}/constraints/{constraint_name}` * `organizations/{organization_number}/constraints/{constraint_name}` For example, "/projects/123/constraints/compute.disableSerialPortAccess". */
47
47
  name?: string;
48
48
  /** Shows if dry run is supported for this constraint or not. */
49
49
  supportsDryRun?: boolean;
@@ -147,7 +147,7 @@ declare namespace gapi.client {
147
147
  dryRunSpec?: GoogleCloudOrgpolicyV2PolicySpec;
148
148
  /** Optional. An opaque tag indicating the current state of the policy, used for concurrency control. This entity tag (ETag) is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. */
149
149
  etag?: string;
150
- /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
150
+ /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_number}/policies/{constraint_name}` * `organizations/{organization_number}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
151
151
  name?: string;
152
152
  /** Basic information about the organization policy. */
153
153
  spec?: GoogleCloudOrgpolicyV2PolicySpec;
@@ -216,7 +216,7 @@ declare namespace gapi.client {
216
216
  pageSize?: number;
217
217
  /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
218
218
  pageToken?: string;
219
- /** 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}` */
219
+ /** 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_number}` * `organizations/{organization_number}` */
220
220
  parent: string;
221
221
  /** Returns response with indentations and line breaks. */
222
222
  prettyPrint?: boolean;
@@ -245,7 +245,7 @@ declare namespace gapi.client {
245
245
  key?: string;
246
246
  /** OAuth 2.0 token for the current user. */
247
247
  oauth_token?: string;
248
- /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
248
+ /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
249
249
  parent: string;
250
250
  /** Returns response with indentations and line breaks. */
251
251
  prettyPrint?: boolean;
@@ -274,7 +274,7 @@ declare namespace gapi.client {
274
274
  key?: string;
275
275
  /** OAuth 2.0 token for the current user. */
276
276
  oauth_token?: string;
277
- /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
277
+ /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
278
278
  parent: string;
279
279
  /** Returns response with indentations and line breaks. */
280
280
  prettyPrint?: boolean;
@@ -390,7 +390,7 @@ declare namespace gapi.client {
390
390
  pageSize?: number;
391
391
  /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
392
392
  pageToken?: string;
393
- /** 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}` */
393
+ /** 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_number}` * `organizations/{organization_number}` */
394
394
  parent: string;
395
395
  /** Returns response with indentations and line breaks. */
396
396
  prettyPrint?: boolean;
@@ -415,7 +415,7 @@ declare namespace gapi.client {
415
415
  fields?: string;
416
416
  /** 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. */
417
417
  key?: string;
418
- /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
418
+ /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_number}/policies/{constraint_name}` * `organizations/{organization_number}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
419
419
  name: string;
420
420
  /** OAuth 2.0 token for the current user. */
421
421
  oauth_token?: string;
@@ -446,7 +446,7 @@ declare namespace gapi.client {
446
446
  fields?: string;
447
447
  /** 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. */
448
448
  key?: string;
449
- /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
449
+ /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_number}/policies/{constraint_name}` * `organizations/{organization_number}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
450
450
  name: string;
451
451
  /** OAuth 2.0 token for the current user. */
452
452
  oauth_token?: string;
@@ -489,7 +489,7 @@ declare namespace gapi.client {
489
489
  pageSize?: number;
490
490
  /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
491
491
  pageToken?: string;
492
- /** 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}` */
492
+ /** 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_number}` * `organizations/{organization_number}` */
493
493
  parent: string;
494
494
  /** Returns response with indentations and line breaks. */
495
495
  prettyPrint?: boolean;
@@ -721,7 +721,7 @@ declare namespace gapi.client {
721
721
  key?: string;
722
722
  /** OAuth 2.0 token for the current user. */
723
723
  oauth_token?: string;
724
- /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
724
+ /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
725
725
  parent: string;
726
726
  /** Returns response with indentations and line breaks. */
727
727
  prettyPrint?: boolean;
@@ -750,7 +750,7 @@ declare namespace gapi.client {
750
750
  key?: string;
751
751
  /** OAuth 2.0 token for the current user. */
752
752
  oauth_token?: string;
753
- /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
753
+ /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
754
754
  parent: string;
755
755
  /** Returns response with indentations and line breaks. */
756
756
  prettyPrint?: boolean;
@@ -866,7 +866,7 @@ declare namespace gapi.client {
866
866
  pageSize?: number;
867
867
  /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
868
868
  pageToken?: string;
869
- /** 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}` */
869
+ /** 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_number}` * `organizations/{organization_number}` */
870
870
  parent: string;
871
871
  /** Returns response with indentations and line breaks. */
872
872
  prettyPrint?: boolean;
@@ -891,7 +891,7 @@ declare namespace gapi.client {
891
891
  fields?: string;
892
892
  /** 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. */
893
893
  key?: string;
894
- /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
894
+ /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_number}/policies/{constraint_name}` * `organizations/{organization_number}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
895
895
  name: string;
896
896
  /** OAuth 2.0 token for the current user. */
897
897
  oauth_token?: string;
@@ -922,7 +922,7 @@ declare namespace gapi.client {
922
922
  fields?: string;
923
923
  /** 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. */
924
924
  key?: string;
925
- /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
925
+ /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_number}/policies/{constraint_name}` * `organizations/{organization_number}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
926
926
  name: string;
927
927
  /** OAuth 2.0 token for the current user. */
928
928
  oauth_token?: string;
@@ -966,7 +966,7 @@ declare namespace gapi.client {
966
966
  pageSize?: number;
967
967
  /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
968
968
  pageToken?: string;
969
- /** 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}` */
969
+ /** 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_number}` * `organizations/{organization_number}` */
970
970
  parent: string;
971
971
  /** Returns response with indentations and line breaks. */
972
972
  prettyPrint?: boolean;
@@ -995,7 +995,7 @@ declare namespace gapi.client {
995
995
  key?: string;
996
996
  /** OAuth 2.0 token for the current user. */
997
997
  oauth_token?: string;
998
- /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
998
+ /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
999
999
  parent: string;
1000
1000
  /** Returns response with indentations and line breaks. */
1001
1001
  prettyPrint?: boolean;
@@ -1024,7 +1024,7 @@ declare namespace gapi.client {
1024
1024
  key?: string;
1025
1025
  /** OAuth 2.0 token for the current user. */
1026
1026
  oauth_token?: string;
1027
- /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
1027
+ /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
1028
1028
  parent: string;
1029
1029
  /** Returns response with indentations and line breaks. */
1030
1030
  prettyPrint?: boolean;
@@ -1140,7 +1140,7 @@ declare namespace gapi.client {
1140
1140
  pageSize?: number;
1141
1141
  /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
1142
1142
  pageToken?: string;
1143
- /** 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}` */
1143
+ /** 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_number}` * `organizations/{organization_number}` */
1144
1144
  parent: string;
1145
1145
  /** Returns response with indentations and line breaks. */
1146
1146
  prettyPrint?: boolean;
@@ -1165,7 +1165,7 @@ declare namespace gapi.client {
1165
1165
  fields?: string;
1166
1166
  /** 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. */
1167
1167
  key?: string;
1168
- /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
1168
+ /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_number}/policies/{constraint_name}` * `organizations/{organization_number}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
1169
1169
  name: string;
1170
1170
  /** OAuth 2.0 token for the current user. */
1171
1171
  oauth_token?: string;
@@ -1196,7 +1196,7 @@ declare namespace gapi.client {
1196
1196
  fields?: string;
1197
1197
  /** 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. */
1198
1198
  key?: string;
1199
- /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
1199
+ /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_number}/policies/{constraint_name}` * `organizations/{organization_number}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
1200
1200
  name: string;
1201
1201
  /** OAuth 2.0 token for the current user. */
1202
1202
  oauth_token?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.orgpolicy-v2",
3
- "version": "0.3.20260710",
3
+ "version": "0.3.20260723",
4
4
  "description": "TypeScript typings for Organization Policy API v2",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -62,6 +62,12 @@ var client_id = '',
62
62
  scope = [
63
63
  // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
64
64
  'https://www.googleapis.com/auth/cloud-platform',
65
+
66
+ // See, edit, configure, and delete your Google Cloud Organization Policy data and see the email address for your Google Account
67
+ 'https://www.googleapis.com/auth/organizationpolicy',
68
+
69
+ // See your Google Cloud Organization Policy data and the email address of your Google Account
70
+ 'https://www.googleapis.com/auth/organizationpolicy.readonly',
65
71
  ],
66
72
  immediate = true;
67
73
  // ...