@maxim_mazurok/gapi.client.accesscontextmanager-v1 0.0.20221205 → 0.0.20221213

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 +248 -1
  2. package/package.json +1 -1
  3. package/tests.ts +50 -1
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://accesscontextmanager.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20221205
12
+ // Revision: 20221213
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -88,6 +88,27 @@ declare namespace gapi.client {
88
88
  /** The log type that this config enables. */
89
89
  logType?: string;
90
90
  }
91
+ interface AuthorizedOrgsDesc {
92
+ /** The asset type of this authorized orgs desc. e.g. device, credential strength. */
93
+ assetType?: string;
94
+ /**
95
+ * Authorization direction of this authorization relationship. i.e. Whether to allow specified orgs to evaluate this org's traffic, or allow specified orgs' traffic to be evaluated by
96
+ * this org. Orgs specified as `AUTHORIZATION_DIRECTION_TO` in this AuthorizedOrgsDesc[com.google.identity.accesscontextmanager.v1.AuthorizedOrgsDesc] must also specify this org as the
97
+ * `AUTHORIZATION_DIRECTION_FROM` in their own AuthorizedOrgsDesc in order for this relationship to take effect. Orgs specified as `AUTHORIZATION_DIRECTION_FROM` in this
98
+ * AuthorizedOrgsDesc[com.google.identity.accesscontextmanager.v1.AuthorizedOrgsDesc] must also specify this org as the `AUTHORIZATION_DIRECTION_TO` in their own AuthorizedOrgsDesc in
99
+ * order for this relationship to take effect.
100
+ */
101
+ authorizationDirection?: string;
102
+ /** The authorization type of this authorized orgs desc. e.g.authorization, troubleshooting or logging. */
103
+ authorizationType?: string;
104
+ /**
105
+ * Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section
106
+ * 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: "accessPolicies/122256/authorizedOrgs/b3-BhcX_Ud5N"
107
+ */
108
+ name?: string;
109
+ /** The list of organization ids in this AuthorizedOrgsDesc. */
110
+ orgs?: string[];
111
+ }
91
112
  interface BasicLevel {
92
113
  /**
93
114
  * How the `conditions` list should be combined to determine if a request is granted this `AccessLevel`. If AND is used, each `Condition` in `conditions` must be satisfied for the
@@ -315,6 +336,12 @@ declare namespace gapi.client {
315
336
  /** The pagination token to retrieve the next page of results. If the value is empty, no further results remain. */
316
337
  nextPageToken?: string;
317
338
  }
339
+ interface ListAuthorizedOrgsDescsResponse {
340
+ /** List of the Authorized Orgs Desc instances. */
341
+ authorizedOrgsDescs?: AuthorizedOrgsDesc[];
342
+ /** The pagination token to retrieve the next page of results. If the value is empty, no further results remain. */
343
+ nextPageToken?: string;
344
+ }
318
345
  interface ListGcpUserAccessBindingsResponse {
319
346
  /** GcpUserAccessBinding */
320
347
  gcpUserAccessBindings?: GcpUserAccessBinding[];
@@ -855,6 +882,225 @@ declare namespace gapi.client {
855
882
  },
856
883
  body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
857
884
  }
885
+ interface AuthorizedOrgsDescsResource {
886
+ /**
887
+ * Creates a authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized
888
+ * orgs desc contains errors, an error response is returned for the first error encountered. The name of this `AuthorizedOrgsDesc` will be assigned during creation.
889
+ */
890
+ create(request: {
891
+ /** V1 error format. */
892
+ "$.xgafv"?: string;
893
+ /** OAuth access token. */
894
+ access_token?: string;
895
+ /** Data format for response. */
896
+ alt?: string;
897
+ /** JSONP */
898
+ callback?: string;
899
+ /** Selector specifying which fields to include in a partial response. */
900
+ fields?: string;
901
+ /** 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. */
902
+ key?: string;
903
+ /** OAuth 2.0 token for the current user. */
904
+ oauth_token?: string;
905
+ /** Required. Resource name for the access policy which owns this Authorized Orgs Desc. Format: `accessPolicies/{policy_id}` */
906
+ parent: string;
907
+ /** Returns response with indentations and line breaks. */
908
+ prettyPrint?: boolean;
909
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
910
+ quotaUser?: string;
911
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
912
+ upload_protocol?: string;
913
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
914
+ uploadType?: string;
915
+ /** Request body */
916
+ resource: AuthorizedOrgsDesc;
917
+ }): Request<Operation>;
918
+ create(request: {
919
+ /** V1 error format. */
920
+ "$.xgafv"?: string;
921
+ /** OAuth access token. */
922
+ access_token?: string;
923
+ /** Data format for response. */
924
+ alt?: string;
925
+ /** JSONP */
926
+ callback?: string;
927
+ /** Selector specifying which fields to include in a partial response. */
928
+ fields?: string;
929
+ /** 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. */
930
+ key?: string;
931
+ /** OAuth 2.0 token for the current user. */
932
+ oauth_token?: string;
933
+ /** Required. Resource name for the access policy which owns this Authorized Orgs Desc. Format: `accessPolicies/{policy_id}` */
934
+ parent: string;
935
+ /** Returns response with indentations and line breaks. */
936
+ prettyPrint?: boolean;
937
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
938
+ quotaUser?: string;
939
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
940
+ upload_protocol?: string;
941
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
942
+ uploadType?: string;
943
+ },
944
+ body: AuthorizedOrgsDesc): Request<Operation>;
945
+ /**
946
+ * Deletes a authorized orgs desc based on the resource name. The long-running operation from this RPC has a successful status after the authorized orgs desc is removed from
947
+ * long-lasting storage.
948
+ */
949
+ delete(request?: {
950
+ /** V1 error format. */
951
+ "$.xgafv"?: string;
952
+ /** OAuth access token. */
953
+ access_token?: string;
954
+ /** Data format for response. */
955
+ alt?: string;
956
+ /** JSONP */
957
+ callback?: string;
958
+ /** Selector specifying which fields to include in a partial response. */
959
+ fields?: string;
960
+ /** 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. */
961
+ key?: string;
962
+ /** Required. Resource name for the Authorized Orgs Desc. Format: `accessPolicies/{policy_id}/authorizedOrgsDesc/{authorized_orgs_desc_id}` */
963
+ name: string;
964
+ /** OAuth 2.0 token for the current user. */
965
+ oauth_token?: string;
966
+ /** Returns response with indentations and line breaks. */
967
+ prettyPrint?: boolean;
968
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
969
+ quotaUser?: string;
970
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
971
+ upload_protocol?: string;
972
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
973
+ uploadType?: string;
974
+ }): Request<Operation>;
975
+ /** Gets a authorized orgs desc based on the resource name. */
976
+ get(request?: {
977
+ /** V1 error format. */
978
+ "$.xgafv"?: string;
979
+ /** OAuth access token. */
980
+ access_token?: string;
981
+ /** Data format for response. */
982
+ alt?: string;
983
+ /** JSONP */
984
+ callback?: string;
985
+ /** Selector specifying which fields to include in a partial response. */
986
+ fields?: string;
987
+ /** 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. */
988
+ key?: string;
989
+ /** Required. Resource name for the Authorized Orgs Desc. Format: `accessPolicies/{policy_id}/authorizedOrgsDescs/{authorized_orgs_descs_id}` */
990
+ name: string;
991
+ /** OAuth 2.0 token for the current user. */
992
+ oauth_token?: string;
993
+ /** Returns response with indentations and line breaks. */
994
+ prettyPrint?: boolean;
995
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
996
+ quotaUser?: string;
997
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
998
+ upload_protocol?: string;
999
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1000
+ uploadType?: string;
1001
+ }): Request<AuthorizedOrgsDesc>;
1002
+ /** Lists all authorized orgs descs for an access policy. */
1003
+ list(request?: {
1004
+ /** V1 error format. */
1005
+ "$.xgafv"?: string;
1006
+ /** OAuth access token. */
1007
+ access_token?: string;
1008
+ /** Data format for response. */
1009
+ alt?: string;
1010
+ /** JSONP */
1011
+ callback?: string;
1012
+ /** Selector specifying which fields to include in a partial response. */
1013
+ fields?: string;
1014
+ /** 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. */
1015
+ key?: string;
1016
+ /** OAuth 2.0 token for the current user. */
1017
+ oauth_token?: string;
1018
+ /** Number of Authorized Orgs Descs to include in the list. Default 100. */
1019
+ pageSize?: number;
1020
+ /** Next page token for the next batch of Authorized Orgs Desc instances. Defaults to the first page of results. */
1021
+ pageToken?: string;
1022
+ /** Required. Resource name for the access policy to list Authorized Orgs Desc from. Format: `accessPolicies/{policy_id}` */
1023
+ parent: string;
1024
+ /** Returns response with indentations and line breaks. */
1025
+ prettyPrint?: boolean;
1026
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1027
+ quotaUser?: string;
1028
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1029
+ upload_protocol?: string;
1030
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1031
+ uploadType?: string;
1032
+ }): Request<ListAuthorizedOrgsDescsResponse>;
1033
+ /**
1034
+ * Updates a authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized
1035
+ * orgs desc contains errors, an error response is returned for the first error encountered. Only the organization list in `AuthorizedOrgsDesc` can be updated. The name,
1036
+ * authorization_type, asset_type and authorization_direction cannot be updated.
1037
+ */
1038
+ patch(request: {
1039
+ /** V1 error format. */
1040
+ "$.xgafv"?: string;
1041
+ /** OAuth access token. */
1042
+ access_token?: string;
1043
+ /** Data format for response. */
1044
+ alt?: string;
1045
+ /** JSONP */
1046
+ callback?: string;
1047
+ /** Selector specifying which fields to include in a partial response. */
1048
+ fields?: string;
1049
+ /** 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. */
1050
+ key?: string;
1051
+ /**
1052
+ * Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section
1053
+ * 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: "accessPolicies/122256/authorizedOrgs/b3-BhcX_Ud5N"
1054
+ */
1055
+ name: string;
1056
+ /** OAuth 2.0 token for the current user. */
1057
+ oauth_token?: string;
1058
+ /** Returns response with indentations and line breaks. */
1059
+ prettyPrint?: boolean;
1060
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1061
+ quotaUser?: string;
1062
+ /** Required. Mask to control which fields get updated. Must be non-empty. */
1063
+ updateMask?: string;
1064
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1065
+ upload_protocol?: string;
1066
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1067
+ uploadType?: string;
1068
+ /** Request body */
1069
+ resource: AuthorizedOrgsDesc;
1070
+ }): Request<Operation>;
1071
+ patch(request: {
1072
+ /** V1 error format. */
1073
+ "$.xgafv"?: string;
1074
+ /** OAuth access token. */
1075
+ access_token?: string;
1076
+ /** Data format for response. */
1077
+ alt?: string;
1078
+ /** JSONP */
1079
+ callback?: string;
1080
+ /** Selector specifying which fields to include in a partial response. */
1081
+ fields?: string;
1082
+ /** 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. */
1083
+ key?: string;
1084
+ /**
1085
+ * Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section
1086
+ * 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: "accessPolicies/122256/authorizedOrgs/b3-BhcX_Ud5N"
1087
+ */
1088
+ name: string;
1089
+ /** OAuth 2.0 token for the current user. */
1090
+ oauth_token?: string;
1091
+ /** Returns response with indentations and line breaks. */
1092
+ prettyPrint?: boolean;
1093
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1094
+ quotaUser?: string;
1095
+ /** Required. Mask to control which fields get updated. Must be non-empty. */
1096
+ updateMask?: string;
1097
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1098
+ upload_protocol?: string;
1099
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1100
+ uploadType?: string;
1101
+ },
1102
+ body: AuthorizedOrgsDesc): Request<Operation>;
1103
+ }
858
1104
  interface ServicePerimetersResource {
859
1105
  /**
860
1106
  * Commits the dry-run specification for all the service perimeters in an access policy. A commit operation on a service perimeter involves copying its `spec` field to the `status`
@@ -1530,6 +1776,7 @@ declare namespace gapi.client {
1530
1776
  },
1531
1777
  body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
1532
1778
  accessLevels: AccessLevelsResource;
1779
+ authorizedOrgsDescs: AuthorizedOrgsDescsResource;
1533
1780
  servicePerimeters: ServicePerimetersResource;
1534
1781
  }
1535
1782
  interface OperationsResource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.accesscontextmanager-v1",
3
- "version": "0.0.20221205",
3
+ "version": "0.0.20221213",
4
4
  "description": "TypeScript typings for Access Context Manager API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20221205
6
+ // Revision: 20221213
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -335,6 +335,55 @@ gapi.load('client', async () => {
335
335
  "Test string"
336
336
  ],
337
337
  });
338
+ /**
339
+ * Creates a authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs
340
+ * desc contains errors, an error response is returned for the first error encountered. The name of this `AuthorizedOrgsDesc` will be assigned during creation.
341
+ */
342
+ await gapi.client.accesscontextmanager.accessPolicies.authorizedOrgsDescs.create({
343
+ parent: "Test string",
344
+ }, {
345
+ assetType: "Test string",
346
+ authorizationDirection: "Test string",
347
+ authorizationType: "Test string",
348
+ name: "Test string",
349
+ orgs: [
350
+ "Test string"
351
+ ],
352
+ });
353
+ /**
354
+ * Deletes a authorized orgs desc based on the resource name. The long-running operation from this RPC has a successful status after the authorized orgs desc is removed from long-lasting
355
+ * storage.
356
+ */
357
+ await gapi.client.accesscontextmanager.accessPolicies.authorizedOrgsDescs.delete({
358
+ name: "Test string",
359
+ });
360
+ /** Gets a authorized orgs desc based on the resource name. */
361
+ await gapi.client.accesscontextmanager.accessPolicies.authorizedOrgsDescs.get({
362
+ name: "Test string",
363
+ });
364
+ /** Lists all authorized orgs descs for an access policy. */
365
+ await gapi.client.accesscontextmanager.accessPolicies.authorizedOrgsDescs.list({
366
+ pageSize: 42,
367
+ pageToken: "Test string",
368
+ parent: "Test string",
369
+ });
370
+ /**
371
+ * Updates a authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs
372
+ * desc contains errors, an error response is returned for the first error encountered. Only the organization list in `AuthorizedOrgsDesc` can be updated. The name, authorization_type,
373
+ * asset_type and authorization_direction cannot be updated.
374
+ */
375
+ await gapi.client.accesscontextmanager.accessPolicies.authorizedOrgsDescs.patch({
376
+ name: "Test string",
377
+ updateMask: "Test string",
378
+ }, {
379
+ assetType: "Test string",
380
+ authorizationDirection: "Test string",
381
+ authorizationType: "Test string",
382
+ name: "Test string",
383
+ orgs: [
384
+ "Test string"
385
+ ],
386
+ });
338
387
  /**
339
388
  * Commits the dry-run specification for all the service perimeters in an access policy. A commit operation on a service perimeter involves copying its `spec` field to the `status` field
340
389
  * of the service perimeter. Only service perimeters with `use_explicit_dry_run_spec` field set to true are affected by a commit operation. The long-running operation from this RPC has a