@googleapis/biglake 4.1.1 → 4.2.0
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/CHANGELOG.md +7 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +433 -0
- package/build/v1.js +173 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +863 -18
package/build/v1.d.ts
CHANGED
|
@@ -375,6 +375,24 @@ export declare namespace biglake_v1 {
|
|
|
375
375
|
*/
|
|
376
376
|
updateTime?: string | null;
|
|
377
377
|
}
|
|
378
|
+
/**
|
|
379
|
+
* Request message for `TestIamPermissions` method.
|
|
380
|
+
*/
|
|
381
|
+
export interface Schema$TestIamPermissionsRequest {
|
|
382
|
+
/**
|
|
383
|
+
* The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
384
|
+
*/
|
|
385
|
+
permissions?: string[] | null;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Response message for `TestIamPermissions` method.
|
|
389
|
+
*/
|
|
390
|
+
export interface Schema$TestIamPermissionsResponse {
|
|
391
|
+
/**
|
|
392
|
+
* A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
|
|
393
|
+
*/
|
|
394
|
+
permissions?: string[] | null;
|
|
395
|
+
}
|
|
378
396
|
export class Resource$Projects {
|
|
379
397
|
context: APIRequestContext;
|
|
380
398
|
catalogs: Resource$Projects$Catalogs;
|
|
@@ -528,6 +546,77 @@ export declare namespace biglake_v1 {
|
|
|
528
546
|
setIamPolicy(params: Params$Resource$Projects$Catalogs$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
529
547
|
setIamPolicy(params: Params$Resource$Projects$Catalogs$Setiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
530
548
|
setIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
|
|
549
|
+
/**
|
|
550
|
+
* Tests the IAM permissions for the specified catalog.
|
|
551
|
+
* @example
|
|
552
|
+
* ```js
|
|
553
|
+
* // Before running the sample:
|
|
554
|
+
* // - Enable the API at:
|
|
555
|
+
* // https://console.developers.google.com/apis/api/biglake.googleapis.com
|
|
556
|
+
* // - Login into gcloud by running:
|
|
557
|
+
* // ```sh
|
|
558
|
+
* // $ gcloud auth application-default login
|
|
559
|
+
* // ```
|
|
560
|
+
* // - Install the npm module by running:
|
|
561
|
+
* // ```sh
|
|
562
|
+
* // $ npm install googleapis
|
|
563
|
+
* // ```
|
|
564
|
+
*
|
|
565
|
+
* const {google} = require('googleapis');
|
|
566
|
+
* const biglake = google.biglake('v1');
|
|
567
|
+
*
|
|
568
|
+
* async function main() {
|
|
569
|
+
* const auth = new google.auth.GoogleAuth({
|
|
570
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
571
|
+
* scopes: [
|
|
572
|
+
* 'https://www.googleapis.com/auth/bigquery',
|
|
573
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
574
|
+
* ],
|
|
575
|
+
* });
|
|
576
|
+
*
|
|
577
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
578
|
+
* const authClient = await auth.getClient();
|
|
579
|
+
* google.options({auth: authClient});
|
|
580
|
+
*
|
|
581
|
+
* // Do the magic
|
|
582
|
+
* const res = await biglake.projects.catalogs.testIamPermissions({
|
|
583
|
+
* // REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
584
|
+
* resource: 'projects/my-project/catalogs/my-catalog',
|
|
585
|
+
*
|
|
586
|
+
* // Request body metadata
|
|
587
|
+
* requestBody: {
|
|
588
|
+
* // request body parameters
|
|
589
|
+
* // {
|
|
590
|
+
* // "permissions": []
|
|
591
|
+
* // }
|
|
592
|
+
* },
|
|
593
|
+
* });
|
|
594
|
+
* console.log(res.data);
|
|
595
|
+
*
|
|
596
|
+
* // Example response
|
|
597
|
+
* // {
|
|
598
|
+
* // "permissions": []
|
|
599
|
+
* // }
|
|
600
|
+
* }
|
|
601
|
+
*
|
|
602
|
+
* main().catch(e => {
|
|
603
|
+
* console.error(e);
|
|
604
|
+
* throw e;
|
|
605
|
+
* });
|
|
606
|
+
*
|
|
607
|
+
* ```
|
|
608
|
+
*
|
|
609
|
+
* @param params - Parameters for request
|
|
610
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
611
|
+
* @param callback - Optional callback that handles the response.
|
|
612
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
613
|
+
*/
|
|
614
|
+
testIamPermissions(params: Params$Resource$Projects$Catalogs$Testiampermissions, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
615
|
+
testIamPermissions(params?: Params$Resource$Projects$Catalogs$Testiampermissions, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>;
|
|
616
|
+
testIamPermissions(params: Params$Resource$Projects$Catalogs$Testiampermissions, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
617
|
+
testIamPermissions(params: Params$Resource$Projects$Catalogs$Testiampermissions, options: MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
618
|
+
testIamPermissions(params: Params$Resource$Projects$Catalogs$Testiampermissions, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
619
|
+
testIamPermissions(callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
531
620
|
}
|
|
532
621
|
export interface Params$Resource$Projects$Catalogs$Getiampolicy extends StandardParameters {
|
|
533
622
|
/**
|
|
@@ -549,8 +638,19 @@ export declare namespace biglake_v1 {
|
|
|
549
638
|
*/
|
|
550
639
|
requestBody?: Schema$SetIamPolicyRequest;
|
|
551
640
|
}
|
|
641
|
+
export interface Params$Resource$Projects$Catalogs$Testiampermissions extends StandardParameters {
|
|
642
|
+
/**
|
|
643
|
+
* REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
644
|
+
*/
|
|
645
|
+
resource?: string;
|
|
646
|
+
/**
|
|
647
|
+
* Request body metadata
|
|
648
|
+
*/
|
|
649
|
+
requestBody?: Schema$TestIamPermissionsRequest;
|
|
650
|
+
}
|
|
552
651
|
export class Resource$Projects$Catalogs$Namespaces {
|
|
553
652
|
context: APIRequestContext;
|
|
653
|
+
tables: Resource$Projects$Catalogs$Namespaces$Tables;
|
|
554
654
|
constructor(context: APIRequestContext);
|
|
555
655
|
/**
|
|
556
656
|
* Gets the IAM policy for the specified Catalog.
|
|
@@ -695,6 +795,77 @@ export declare namespace biglake_v1 {
|
|
|
695
795
|
setIamPolicy(params: Params$Resource$Projects$Catalogs$Namespaces$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
696
796
|
setIamPolicy(params: Params$Resource$Projects$Catalogs$Namespaces$Setiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
697
797
|
setIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
|
|
798
|
+
/**
|
|
799
|
+
* Tests the IAM permissions for the specified namespace.
|
|
800
|
+
* @example
|
|
801
|
+
* ```js
|
|
802
|
+
* // Before running the sample:
|
|
803
|
+
* // - Enable the API at:
|
|
804
|
+
* // https://console.developers.google.com/apis/api/biglake.googleapis.com
|
|
805
|
+
* // - Login into gcloud by running:
|
|
806
|
+
* // ```sh
|
|
807
|
+
* // $ gcloud auth application-default login
|
|
808
|
+
* // ```
|
|
809
|
+
* // - Install the npm module by running:
|
|
810
|
+
* // ```sh
|
|
811
|
+
* // $ npm install googleapis
|
|
812
|
+
* // ```
|
|
813
|
+
*
|
|
814
|
+
* const {google} = require('googleapis');
|
|
815
|
+
* const biglake = google.biglake('v1');
|
|
816
|
+
*
|
|
817
|
+
* async function main() {
|
|
818
|
+
* const auth = new google.auth.GoogleAuth({
|
|
819
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
820
|
+
* scopes: [
|
|
821
|
+
* 'https://www.googleapis.com/auth/bigquery',
|
|
822
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
823
|
+
* ],
|
|
824
|
+
* });
|
|
825
|
+
*
|
|
826
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
827
|
+
* const authClient = await auth.getClient();
|
|
828
|
+
* google.options({auth: authClient});
|
|
829
|
+
*
|
|
830
|
+
* // Do the magic
|
|
831
|
+
* const res = await biglake.projects.catalogs.namespaces.testIamPermissions({
|
|
832
|
+
* // REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
833
|
+
* resource: 'projects/my-project/catalogs/my-catalog/namespaces/my-namespace',
|
|
834
|
+
*
|
|
835
|
+
* // Request body metadata
|
|
836
|
+
* requestBody: {
|
|
837
|
+
* // request body parameters
|
|
838
|
+
* // {
|
|
839
|
+
* // "permissions": []
|
|
840
|
+
* // }
|
|
841
|
+
* },
|
|
842
|
+
* });
|
|
843
|
+
* console.log(res.data);
|
|
844
|
+
*
|
|
845
|
+
* // Example response
|
|
846
|
+
* // {
|
|
847
|
+
* // "permissions": []
|
|
848
|
+
* // }
|
|
849
|
+
* }
|
|
850
|
+
*
|
|
851
|
+
* main().catch(e => {
|
|
852
|
+
* console.error(e);
|
|
853
|
+
* throw e;
|
|
854
|
+
* });
|
|
855
|
+
*
|
|
856
|
+
* ```
|
|
857
|
+
*
|
|
858
|
+
* @param params - Parameters for request
|
|
859
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
860
|
+
* @param callback - Optional callback that handles the response.
|
|
861
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
862
|
+
*/
|
|
863
|
+
testIamPermissions(params: Params$Resource$Projects$Catalogs$Namespaces$Testiampermissions, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
864
|
+
testIamPermissions(params?: Params$Resource$Projects$Catalogs$Namespaces$Testiampermissions, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>;
|
|
865
|
+
testIamPermissions(params: Params$Resource$Projects$Catalogs$Namespaces$Testiampermissions, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
866
|
+
testIamPermissions(params: Params$Resource$Projects$Catalogs$Namespaces$Testiampermissions, options: MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
867
|
+
testIamPermissions(params: Params$Resource$Projects$Catalogs$Namespaces$Testiampermissions, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
868
|
+
testIamPermissions(callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
698
869
|
}
|
|
699
870
|
export interface Params$Resource$Projects$Catalogs$Namespaces$Getiampolicy extends StandardParameters {
|
|
700
871
|
/**
|
|
@@ -716,6 +887,268 @@ export declare namespace biglake_v1 {
|
|
|
716
887
|
*/
|
|
717
888
|
requestBody?: Schema$SetIamPolicyRequest;
|
|
718
889
|
}
|
|
890
|
+
export interface Params$Resource$Projects$Catalogs$Namespaces$Testiampermissions extends StandardParameters {
|
|
891
|
+
/**
|
|
892
|
+
* REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
893
|
+
*/
|
|
894
|
+
resource?: string;
|
|
895
|
+
/**
|
|
896
|
+
* Request body metadata
|
|
897
|
+
*/
|
|
898
|
+
requestBody?: Schema$TestIamPermissionsRequest;
|
|
899
|
+
}
|
|
900
|
+
export class Resource$Projects$Catalogs$Namespaces$Tables {
|
|
901
|
+
context: APIRequestContext;
|
|
902
|
+
constructor(context: APIRequestContext);
|
|
903
|
+
/**
|
|
904
|
+
* Gets the IAM policy for the specified Catalog.
|
|
905
|
+
* @example
|
|
906
|
+
* ```js
|
|
907
|
+
* // Before running the sample:
|
|
908
|
+
* // - Enable the API at:
|
|
909
|
+
* // https://console.developers.google.com/apis/api/biglake.googleapis.com
|
|
910
|
+
* // - Login into gcloud by running:
|
|
911
|
+
* // ```sh
|
|
912
|
+
* // $ gcloud auth application-default login
|
|
913
|
+
* // ```
|
|
914
|
+
* // - Install the npm module by running:
|
|
915
|
+
* // ```sh
|
|
916
|
+
* // $ npm install googleapis
|
|
917
|
+
* // ```
|
|
918
|
+
*
|
|
919
|
+
* const {google} = require('googleapis');
|
|
920
|
+
* const biglake = google.biglake('v1');
|
|
921
|
+
*
|
|
922
|
+
* async function main() {
|
|
923
|
+
* const auth = new google.auth.GoogleAuth({
|
|
924
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
925
|
+
* scopes: [
|
|
926
|
+
* 'https://www.googleapis.com/auth/bigquery',
|
|
927
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
928
|
+
* ],
|
|
929
|
+
* });
|
|
930
|
+
*
|
|
931
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
932
|
+
* const authClient = await auth.getClient();
|
|
933
|
+
* google.options({auth: authClient});
|
|
934
|
+
*
|
|
935
|
+
* // Do the magic
|
|
936
|
+
* const res = await biglake.projects.catalogs.namespaces.tables.getIamPolicy({
|
|
937
|
+
* // Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
938
|
+
* 'options.requestedPolicyVersion': 'placeholder-value',
|
|
939
|
+
* // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
940
|
+
* resource:
|
|
941
|
+
* 'projects/my-project/catalogs/my-catalog/namespaces/my-namespace/tables/my-table',
|
|
942
|
+
* });
|
|
943
|
+
* console.log(res.data);
|
|
944
|
+
*
|
|
945
|
+
* // Example response
|
|
946
|
+
* // {
|
|
947
|
+
* // "auditConfigs": [],
|
|
948
|
+
* // "bindings": [],
|
|
949
|
+
* // "etag": "my_etag",
|
|
950
|
+
* // "version": 0
|
|
951
|
+
* // }
|
|
952
|
+
* }
|
|
953
|
+
*
|
|
954
|
+
* main().catch(e => {
|
|
955
|
+
* console.error(e);
|
|
956
|
+
* throw e;
|
|
957
|
+
* });
|
|
958
|
+
*
|
|
959
|
+
* ```
|
|
960
|
+
*
|
|
961
|
+
* @param params - Parameters for request
|
|
962
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
963
|
+
* @param callback - Optional callback that handles the response.
|
|
964
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
965
|
+
*/
|
|
966
|
+
getIamPolicy(params: Params$Resource$Projects$Catalogs$Namespaces$Tables$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
967
|
+
getIamPolicy(params?: Params$Resource$Projects$Catalogs$Namespaces$Tables$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
|
|
968
|
+
getIamPolicy(params: Params$Resource$Projects$Catalogs$Namespaces$Tables$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
969
|
+
getIamPolicy(params: Params$Resource$Projects$Catalogs$Namespaces$Tables$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
970
|
+
getIamPolicy(params: Params$Resource$Projects$Catalogs$Namespaces$Tables$Getiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
971
|
+
getIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
|
|
972
|
+
/**
|
|
973
|
+
* Sets the IAM policy for the specified catalog.
|
|
974
|
+
* @example
|
|
975
|
+
* ```js
|
|
976
|
+
* // Before running the sample:
|
|
977
|
+
* // - Enable the API at:
|
|
978
|
+
* // https://console.developers.google.com/apis/api/biglake.googleapis.com
|
|
979
|
+
* // - Login into gcloud by running:
|
|
980
|
+
* // ```sh
|
|
981
|
+
* // $ gcloud auth application-default login
|
|
982
|
+
* // ```
|
|
983
|
+
* // - Install the npm module by running:
|
|
984
|
+
* // ```sh
|
|
985
|
+
* // $ npm install googleapis
|
|
986
|
+
* // ```
|
|
987
|
+
*
|
|
988
|
+
* const {google} = require('googleapis');
|
|
989
|
+
* const biglake = google.biglake('v1');
|
|
990
|
+
*
|
|
991
|
+
* async function main() {
|
|
992
|
+
* const auth = new google.auth.GoogleAuth({
|
|
993
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
994
|
+
* scopes: [
|
|
995
|
+
* 'https://www.googleapis.com/auth/bigquery',
|
|
996
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
997
|
+
* ],
|
|
998
|
+
* });
|
|
999
|
+
*
|
|
1000
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1001
|
+
* const authClient = await auth.getClient();
|
|
1002
|
+
* google.options({auth: authClient});
|
|
1003
|
+
*
|
|
1004
|
+
* // Do the magic
|
|
1005
|
+
* const res = await biglake.projects.catalogs.namespaces.tables.setIamPolicy({
|
|
1006
|
+
* // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
1007
|
+
* resource:
|
|
1008
|
+
* 'projects/my-project/catalogs/my-catalog/namespaces/my-namespace/tables/my-table',
|
|
1009
|
+
*
|
|
1010
|
+
* // Request body metadata
|
|
1011
|
+
* requestBody: {
|
|
1012
|
+
* // request body parameters
|
|
1013
|
+
* // {
|
|
1014
|
+
* // "policy": {},
|
|
1015
|
+
* // "updateMask": "my_updateMask"
|
|
1016
|
+
* // }
|
|
1017
|
+
* },
|
|
1018
|
+
* });
|
|
1019
|
+
* console.log(res.data);
|
|
1020
|
+
*
|
|
1021
|
+
* // Example response
|
|
1022
|
+
* // {
|
|
1023
|
+
* // "auditConfigs": [],
|
|
1024
|
+
* // "bindings": [],
|
|
1025
|
+
* // "etag": "my_etag",
|
|
1026
|
+
* // "version": 0
|
|
1027
|
+
* // }
|
|
1028
|
+
* }
|
|
1029
|
+
*
|
|
1030
|
+
* main().catch(e => {
|
|
1031
|
+
* console.error(e);
|
|
1032
|
+
* throw e;
|
|
1033
|
+
* });
|
|
1034
|
+
*
|
|
1035
|
+
* ```
|
|
1036
|
+
*
|
|
1037
|
+
* @param params - Parameters for request
|
|
1038
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1039
|
+
* @param callback - Optional callback that handles the response.
|
|
1040
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1041
|
+
*/
|
|
1042
|
+
setIamPolicy(params: Params$Resource$Projects$Catalogs$Namespaces$Tables$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1043
|
+
setIamPolicy(params?: Params$Resource$Projects$Catalogs$Namespaces$Tables$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
|
|
1044
|
+
setIamPolicy(params: Params$Resource$Projects$Catalogs$Namespaces$Tables$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1045
|
+
setIamPolicy(params: Params$Resource$Projects$Catalogs$Namespaces$Tables$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
1046
|
+
setIamPolicy(params: Params$Resource$Projects$Catalogs$Namespaces$Tables$Setiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
1047
|
+
setIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
|
|
1048
|
+
/**
|
|
1049
|
+
* Tests the IAM permissions for the specified table.
|
|
1050
|
+
* @example
|
|
1051
|
+
* ```js
|
|
1052
|
+
* // Before running the sample:
|
|
1053
|
+
* // - Enable the API at:
|
|
1054
|
+
* // https://console.developers.google.com/apis/api/biglake.googleapis.com
|
|
1055
|
+
* // - Login into gcloud by running:
|
|
1056
|
+
* // ```sh
|
|
1057
|
+
* // $ gcloud auth application-default login
|
|
1058
|
+
* // ```
|
|
1059
|
+
* // - Install the npm module by running:
|
|
1060
|
+
* // ```sh
|
|
1061
|
+
* // $ npm install googleapis
|
|
1062
|
+
* // ```
|
|
1063
|
+
*
|
|
1064
|
+
* const {google} = require('googleapis');
|
|
1065
|
+
* const biglake = google.biglake('v1');
|
|
1066
|
+
*
|
|
1067
|
+
* async function main() {
|
|
1068
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1069
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1070
|
+
* scopes: [
|
|
1071
|
+
* 'https://www.googleapis.com/auth/bigquery',
|
|
1072
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
1073
|
+
* ],
|
|
1074
|
+
* });
|
|
1075
|
+
*
|
|
1076
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1077
|
+
* const authClient = await auth.getClient();
|
|
1078
|
+
* google.options({auth: authClient});
|
|
1079
|
+
*
|
|
1080
|
+
* // Do the magic
|
|
1081
|
+
* const res =
|
|
1082
|
+
* await biglake.projects.catalogs.namespaces.tables.testIamPermissions({
|
|
1083
|
+
* // REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
1084
|
+
* resource:
|
|
1085
|
+
* 'projects/my-project/catalogs/my-catalog/namespaces/my-namespace/tables/my-table',
|
|
1086
|
+
*
|
|
1087
|
+
* // Request body metadata
|
|
1088
|
+
* requestBody: {
|
|
1089
|
+
* // request body parameters
|
|
1090
|
+
* // {
|
|
1091
|
+
* // "permissions": []
|
|
1092
|
+
* // }
|
|
1093
|
+
* },
|
|
1094
|
+
* });
|
|
1095
|
+
* console.log(res.data);
|
|
1096
|
+
*
|
|
1097
|
+
* // Example response
|
|
1098
|
+
* // {
|
|
1099
|
+
* // "permissions": []
|
|
1100
|
+
* // }
|
|
1101
|
+
* }
|
|
1102
|
+
*
|
|
1103
|
+
* main().catch(e => {
|
|
1104
|
+
* console.error(e);
|
|
1105
|
+
* throw e;
|
|
1106
|
+
* });
|
|
1107
|
+
*
|
|
1108
|
+
* ```
|
|
1109
|
+
*
|
|
1110
|
+
* @param params - Parameters for request
|
|
1111
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1112
|
+
* @param callback - Optional callback that handles the response.
|
|
1113
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1114
|
+
*/
|
|
1115
|
+
testIamPermissions(params: Params$Resource$Projects$Catalogs$Namespaces$Tables$Testiampermissions, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1116
|
+
testIamPermissions(params?: Params$Resource$Projects$Catalogs$Namespaces$Tables$Testiampermissions, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>;
|
|
1117
|
+
testIamPermissions(params: Params$Resource$Projects$Catalogs$Namespaces$Tables$Testiampermissions, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1118
|
+
testIamPermissions(params: Params$Resource$Projects$Catalogs$Namespaces$Tables$Testiampermissions, options: MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
1119
|
+
testIamPermissions(params: Params$Resource$Projects$Catalogs$Namespaces$Tables$Testiampermissions, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
1120
|
+
testIamPermissions(callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
1121
|
+
}
|
|
1122
|
+
export interface Params$Resource$Projects$Catalogs$Namespaces$Tables$Getiampolicy extends StandardParameters {
|
|
1123
|
+
/**
|
|
1124
|
+
* Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
1125
|
+
*/
|
|
1126
|
+
'options.requestedPolicyVersion'?: number;
|
|
1127
|
+
/**
|
|
1128
|
+
* REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
1129
|
+
*/
|
|
1130
|
+
resource?: string;
|
|
1131
|
+
}
|
|
1132
|
+
export interface Params$Resource$Projects$Catalogs$Namespaces$Tables$Setiampolicy extends StandardParameters {
|
|
1133
|
+
/**
|
|
1134
|
+
* REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
1135
|
+
*/
|
|
1136
|
+
resource?: string;
|
|
1137
|
+
/**
|
|
1138
|
+
* Request body metadata
|
|
1139
|
+
*/
|
|
1140
|
+
requestBody?: Schema$SetIamPolicyRequest;
|
|
1141
|
+
}
|
|
1142
|
+
export interface Params$Resource$Projects$Catalogs$Namespaces$Tables$Testiampermissions extends StandardParameters {
|
|
1143
|
+
/**
|
|
1144
|
+
* REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
1145
|
+
*/
|
|
1146
|
+
resource?: string;
|
|
1147
|
+
/**
|
|
1148
|
+
* Request body metadata
|
|
1149
|
+
*/
|
|
1150
|
+
requestBody?: Schema$TestIamPermissionsRequest;
|
|
1151
|
+
}
|
|
719
1152
|
export class Resource$Projects$Locations {
|
|
720
1153
|
context: APIRequestContext;
|
|
721
1154
|
catalogs: Resource$Projects$Locations$Catalogs;
|
package/build/v1.js
CHANGED
|
@@ -126,12 +126,46 @@ var biglake_v1;
|
|
|
126
126
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
+
testIamPermissions(paramsOrCallback, optionsOrCallback, callback) {
|
|
130
|
+
let params = (paramsOrCallback ||
|
|
131
|
+
{});
|
|
132
|
+
let options = (optionsOrCallback || {});
|
|
133
|
+
if (typeof paramsOrCallback === 'function') {
|
|
134
|
+
callback = paramsOrCallback;
|
|
135
|
+
params = {};
|
|
136
|
+
options = {};
|
|
137
|
+
}
|
|
138
|
+
if (typeof optionsOrCallback === 'function') {
|
|
139
|
+
callback = optionsOrCallback;
|
|
140
|
+
options = {};
|
|
141
|
+
}
|
|
142
|
+
const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/';
|
|
143
|
+
const parameters = {
|
|
144
|
+
options: Object.assign({
|
|
145
|
+
url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'),
|
|
146
|
+
method: 'POST',
|
|
147
|
+
apiVersion: '',
|
|
148
|
+
}, options),
|
|
149
|
+
params,
|
|
150
|
+
requiredParams: ['resource'],
|
|
151
|
+
pathParams: ['resource'],
|
|
152
|
+
context: this.context,
|
|
153
|
+
};
|
|
154
|
+
if (callback) {
|
|
155
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
129
161
|
}
|
|
130
162
|
biglake_v1.Resource$Projects$Catalogs = Resource$Projects$Catalogs;
|
|
131
163
|
class Resource$Projects$Catalogs$Namespaces {
|
|
132
164
|
context;
|
|
165
|
+
tables;
|
|
133
166
|
constructor(context) {
|
|
134
167
|
this.context = context;
|
|
168
|
+
this.tables = new Resource$Projects$Catalogs$Namespaces$Tables(this.context);
|
|
135
169
|
}
|
|
136
170
|
getIamPolicy(paramsOrCallback, optionsOrCallback, callback) {
|
|
137
171
|
let params = (paramsOrCallback ||
|
|
@@ -199,8 +233,147 @@ var biglake_v1;
|
|
|
199
233
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
200
234
|
}
|
|
201
235
|
}
|
|
236
|
+
testIamPermissions(paramsOrCallback, optionsOrCallback, callback) {
|
|
237
|
+
let params = (paramsOrCallback ||
|
|
238
|
+
{});
|
|
239
|
+
let options = (optionsOrCallback || {});
|
|
240
|
+
if (typeof paramsOrCallback === 'function') {
|
|
241
|
+
callback = paramsOrCallback;
|
|
242
|
+
params =
|
|
243
|
+
{};
|
|
244
|
+
options = {};
|
|
245
|
+
}
|
|
246
|
+
if (typeof optionsOrCallback === 'function') {
|
|
247
|
+
callback = optionsOrCallback;
|
|
248
|
+
options = {};
|
|
249
|
+
}
|
|
250
|
+
const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/';
|
|
251
|
+
const parameters = {
|
|
252
|
+
options: Object.assign({
|
|
253
|
+
url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'),
|
|
254
|
+
method: 'POST',
|
|
255
|
+
apiVersion: '',
|
|
256
|
+
}, options),
|
|
257
|
+
params,
|
|
258
|
+
requiredParams: ['resource'],
|
|
259
|
+
pathParams: ['resource'],
|
|
260
|
+
context: this.context,
|
|
261
|
+
};
|
|
262
|
+
if (callback) {
|
|
263
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
202
269
|
}
|
|
203
270
|
biglake_v1.Resource$Projects$Catalogs$Namespaces = Resource$Projects$Catalogs$Namespaces;
|
|
271
|
+
class Resource$Projects$Catalogs$Namespaces$Tables {
|
|
272
|
+
context;
|
|
273
|
+
constructor(context) {
|
|
274
|
+
this.context = context;
|
|
275
|
+
}
|
|
276
|
+
getIamPolicy(paramsOrCallback, optionsOrCallback, callback) {
|
|
277
|
+
let params = (paramsOrCallback ||
|
|
278
|
+
{});
|
|
279
|
+
let options = (optionsOrCallback || {});
|
|
280
|
+
if (typeof paramsOrCallback === 'function') {
|
|
281
|
+
callback = paramsOrCallback;
|
|
282
|
+
params =
|
|
283
|
+
{};
|
|
284
|
+
options = {};
|
|
285
|
+
}
|
|
286
|
+
if (typeof optionsOrCallback === 'function') {
|
|
287
|
+
callback = optionsOrCallback;
|
|
288
|
+
options = {};
|
|
289
|
+
}
|
|
290
|
+
const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/';
|
|
291
|
+
const parameters = {
|
|
292
|
+
options: Object.assign({
|
|
293
|
+
url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'),
|
|
294
|
+
method: 'GET',
|
|
295
|
+
apiVersion: '',
|
|
296
|
+
}, options),
|
|
297
|
+
params,
|
|
298
|
+
requiredParams: ['resource'],
|
|
299
|
+
pathParams: ['resource'],
|
|
300
|
+
context: this.context,
|
|
301
|
+
};
|
|
302
|
+
if (callback) {
|
|
303
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
setIamPolicy(paramsOrCallback, optionsOrCallback, callback) {
|
|
310
|
+
let params = (paramsOrCallback ||
|
|
311
|
+
{});
|
|
312
|
+
let options = (optionsOrCallback || {});
|
|
313
|
+
if (typeof paramsOrCallback === 'function') {
|
|
314
|
+
callback = paramsOrCallback;
|
|
315
|
+
params =
|
|
316
|
+
{};
|
|
317
|
+
options = {};
|
|
318
|
+
}
|
|
319
|
+
if (typeof optionsOrCallback === 'function') {
|
|
320
|
+
callback = optionsOrCallback;
|
|
321
|
+
options = {};
|
|
322
|
+
}
|
|
323
|
+
const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/';
|
|
324
|
+
const parameters = {
|
|
325
|
+
options: Object.assign({
|
|
326
|
+
url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'),
|
|
327
|
+
method: 'POST',
|
|
328
|
+
apiVersion: '',
|
|
329
|
+
}, options),
|
|
330
|
+
params,
|
|
331
|
+
requiredParams: ['resource'],
|
|
332
|
+
pathParams: ['resource'],
|
|
333
|
+
context: this.context,
|
|
334
|
+
};
|
|
335
|
+
if (callback) {
|
|
336
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
337
|
+
}
|
|
338
|
+
else {
|
|
339
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
testIamPermissions(paramsOrCallback, optionsOrCallback, callback) {
|
|
343
|
+
let params = (paramsOrCallback ||
|
|
344
|
+
{});
|
|
345
|
+
let options = (optionsOrCallback || {});
|
|
346
|
+
if (typeof paramsOrCallback === 'function') {
|
|
347
|
+
callback = paramsOrCallback;
|
|
348
|
+
params =
|
|
349
|
+
{};
|
|
350
|
+
options = {};
|
|
351
|
+
}
|
|
352
|
+
if (typeof optionsOrCallback === 'function') {
|
|
353
|
+
callback = optionsOrCallback;
|
|
354
|
+
options = {};
|
|
355
|
+
}
|
|
356
|
+
const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/';
|
|
357
|
+
const parameters = {
|
|
358
|
+
options: Object.assign({
|
|
359
|
+
url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'),
|
|
360
|
+
method: 'POST',
|
|
361
|
+
apiVersion: '',
|
|
362
|
+
}, options),
|
|
363
|
+
params,
|
|
364
|
+
requiredParams: ['resource'],
|
|
365
|
+
pathParams: ['resource'],
|
|
366
|
+
context: this.context,
|
|
367
|
+
};
|
|
368
|
+
if (callback) {
|
|
369
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
370
|
+
}
|
|
371
|
+
else {
|
|
372
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
biglake_v1.Resource$Projects$Catalogs$Namespaces$Tables = Resource$Projects$Catalogs$Namespaces$Tables;
|
|
204
377
|
class Resource$Projects$Locations {
|
|
205
378
|
context;
|
|
206
379
|
catalogs;
|