@googleapis/biglake 4.1.1 → 5.0.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 +18 -0
- package/README.md +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +435 -2
- package/build/v1.js +175 -2
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +930 -108
package/build/v1.d.ts
CHANGED
|
@@ -55,9 +55,9 @@ export declare namespace biglake_v1 {
|
|
|
55
55
|
upload_protocol?: string;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Lakehouse API
|
|
59
59
|
*
|
|
60
|
-
* The BigLake API provides access to
|
|
60
|
+
* The Lakehouse API (formerly BigLake API) provides access to a serverless, fully managed, and highly available metastore that provides a single source of truth for your data lakehouse. It lets multiple engines—including Apache Spark, Google Managed Spark, Apache Flink, Trino and BigQuery—share tables and metadata for key open formats (Apache Iceberg, Apache Hive), and query the same copy of data. Plus, through the Lakehouse runtime catalog federation seamlessly unite your lakehouse ecosystem, letting Iceberg compatible engines on Google Cloud (BigQuery, Google Managed Spark) discover and analyze enterprise data across Snowflake, Databricks, and AWS Glue.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
63
|
* ```js
|
|
@@ -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;
|