@googleapis/dataform 9.0.1 → 10.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.
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
2
  import { Readable } from 'stream';
4
3
  export declare namespace dataform_v1beta1 {
@@ -195,6 +194,11 @@ export declare namespace dataform_v1beta1 {
195
194
  */
196
195
  role?: string | null;
197
196
  }
197
+ /**
198
+ * The request message for Operations.CancelOperation.
199
+ */
200
+ export interface Schema$CancelOperationRequest {
201
+ }
198
202
  /**
199
203
  * `CancelWorkflowInvocation` request message.
200
204
  */
@@ -733,6 +737,19 @@ export declare namespace dataform_v1beta1 {
733
737
  */
734
738
  url?: string | null;
735
739
  }
740
+ /**
741
+ * Contains metadata about the IAM policy override for a given Dataform resource. If is_active is true, this the policy encoded in iam_policy_name is the source of truth for this resource. Will be provided in internal ESV2 views for: Workspaces, Repositories, Folders, TeamFolders.
742
+ */
743
+ export interface Schema$IamPolicyOverrideView {
744
+ /**
745
+ * The IAM policy name for the resource.
746
+ */
747
+ iamPolicyName?: Schema$PolicyName;
748
+ /**
749
+ * Whether the IAM policy encoded in this view is active.
750
+ */
751
+ isActive?: boolean | null;
752
+ }
736
753
  /**
737
754
  * Load definition for incremental load modes
738
755
  */
@@ -853,6 +870,19 @@ export declare namespace dataform_v1beta1 {
853
870
  */
854
871
  nextPageToken?: string | null;
855
872
  }
873
+ /**
874
+ * The response message for Operations.ListOperations.
875
+ */
876
+ export interface Schema$ListOperationsResponse {
877
+ /**
878
+ * The standard List next-page token.
879
+ */
880
+ nextPageToken?: string | null;
881
+ /**
882
+ * A list of operations that matches the specified filter in the request.
883
+ */
884
+ operations?: Schema$Operation[];
885
+ }
856
886
  /**
857
887
  * `ListReleaseConfigs` response message.
858
888
  */
@@ -1085,6 +1115,35 @@ export declare namespace dataform_v1beta1 {
1085
1115
  */
1086
1116
  gcsOutputBucket?: string | null;
1087
1117
  }
1118
+ /**
1119
+ * This resource represents a long-running operation that is the result of a network API call.
1120
+ */
1121
+ export interface Schema$Operation {
1122
+ /**
1123
+ * If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
1124
+ */
1125
+ done?: boolean | null;
1126
+ /**
1127
+ * The error result of the operation in case of failure or cancellation.
1128
+ */
1129
+ error?: Schema$Status;
1130
+ /**
1131
+ * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1132
+ */
1133
+ metadata?: {
1134
+ [key: string]: any;
1135
+ } | null;
1136
+ /**
1137
+ * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id\}`.
1138
+ */
1139
+ name?: string | null;
1140
+ /**
1141
+ * The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1142
+ */
1143
+ response?: {
1144
+ [key: string]: any;
1145
+ } | null;
1146
+ }
1088
1147
  /**
1089
1148
  * Represents the metadata of the long-running operation.
1090
1149
  */
@@ -1164,6 +1223,23 @@ export declare namespace dataform_v1beta1 {
1164
1223
  */
1165
1224
  version?: number | null;
1166
1225
  }
1226
+ /**
1227
+ * An internal name for an IAM policy, based on the resource to which the policy applies. Not to be confused with a resource's external full resource name. For more information on this distinction, see go/iam-full-resource-names.
1228
+ */
1229
+ export interface Schema$PolicyName {
1230
+ /**
1231
+ * Identifies an instance of the type. ID format varies by type. The ID format is defined in the IAM .service file that defines the type, either in path_mapping or in a comment.
1232
+ */
1233
+ id?: string | null;
1234
+ /**
1235
+ * For Cloud IAM: The location of the Policy. Must be empty or "global" for Policies owned by global IAM. Must name a region from prodspec/cloud-iam-cloudspec for Regional IAM Policies, see go/iam-faq#where-is-iam-currently-deployed. For Local IAM: This field should be set to "local".
1236
+ */
1237
+ region?: string | null;
1238
+ /**
1239
+ * Resource type. Types are defined in IAM's .service files. Valid values for type might be 'storage_buckets', 'compute_instances', 'resourcemanager_customers', 'billing_accounts', etc.
1240
+ */
1241
+ type?: string | null;
1242
+ }
1167
1243
  /**
1168
1244
  * `PullGitCommits` request message.
1169
1245
  */
@@ -1860,7 +1936,10 @@ export declare namespace dataform_v1beta1 {
1860
1936
  }
1861
1937
  export class Resource$Projects$Locations {
1862
1938
  context: APIRequestContext;
1939
+ folders: Resource$Projects$Locations$Folders;
1940
+ operations: Resource$Projects$Locations$Operations;
1863
1941
  repositories: Resource$Projects$Locations$Repositories;
1942
+ teamFolders: Resource$Projects$Locations$Teamfolders;
1864
1943
  constructor(context: APIRequestContext);
1865
1944
  /**
1866
1945
  * Gets information about a location.
@@ -2027,7 +2106,7 @@ export declare namespace dataform_v1beta1 {
2027
2106
  *
2028
2107
  * // Do the magic
2029
2108
  * const res = await dataform.projects.locations.list({
2030
- * // Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
2109
+ * // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
2031
2110
  * extraLocationTypes: 'placeholder-value',
2032
2111
  * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
2033
2112
  * filter: 'placeholder-value',
@@ -2134,61 +2213,615 @@ export declare namespace dataform_v1beta1 {
2134
2213
  * @param callback - Optional callback that handles the response.
2135
2214
  * @returns A promise if used with async/await, or void if used with a callback.
2136
2215
  */
2137
- updateConfig(params: Params$Resource$Projects$Locations$Updateconfig, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2138
- updateConfig(params?: Params$Resource$Projects$Locations$Updateconfig, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Config>>;
2139
- updateConfig(params: Params$Resource$Projects$Locations$Updateconfig, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2140
- updateConfig(params: Params$Resource$Projects$Locations$Updateconfig, options: MethodOptions | BodyResponseCallback<Schema$Config>, callback: BodyResponseCallback<Schema$Config>): void;
2141
- updateConfig(params: Params$Resource$Projects$Locations$Updateconfig, callback: BodyResponseCallback<Schema$Config>): void;
2142
- updateConfig(callback: BodyResponseCallback<Schema$Config>): void;
2216
+ updateConfig(params: Params$Resource$Projects$Locations$Updateconfig, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2217
+ updateConfig(params?: Params$Resource$Projects$Locations$Updateconfig, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Config>>;
2218
+ updateConfig(params: Params$Resource$Projects$Locations$Updateconfig, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2219
+ updateConfig(params: Params$Resource$Projects$Locations$Updateconfig, options: MethodOptions | BodyResponseCallback<Schema$Config>, callback: BodyResponseCallback<Schema$Config>): void;
2220
+ updateConfig(params: Params$Resource$Projects$Locations$Updateconfig, callback: BodyResponseCallback<Schema$Config>): void;
2221
+ updateConfig(callback: BodyResponseCallback<Schema$Config>): void;
2222
+ }
2223
+ export interface Params$Resource$Projects$Locations$Get extends StandardParameters {
2224
+ /**
2225
+ * Resource name for the location.
2226
+ */
2227
+ name?: string;
2228
+ }
2229
+ export interface Params$Resource$Projects$Locations$Getconfig extends StandardParameters {
2230
+ /**
2231
+ * Required. The config name.
2232
+ */
2233
+ name?: string;
2234
+ }
2235
+ export interface Params$Resource$Projects$Locations$List extends StandardParameters {
2236
+ /**
2237
+ * Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
2238
+ */
2239
+ extraLocationTypes?: string[];
2240
+ /**
2241
+ * A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
2242
+ */
2243
+ filter?: string;
2244
+ /**
2245
+ * The resource that owns the locations collection, if applicable.
2246
+ */
2247
+ name?: string;
2248
+ /**
2249
+ * The maximum number of results to return. If not set, the service selects a default.
2250
+ */
2251
+ pageSize?: number;
2252
+ /**
2253
+ * A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
2254
+ */
2255
+ pageToken?: string;
2256
+ }
2257
+ export interface Params$Resource$Projects$Locations$Updateconfig extends StandardParameters {
2258
+ /**
2259
+ * Identifier. The config name.
2260
+ */
2261
+ name?: string;
2262
+ /**
2263
+ * Optional. Specifies the fields to be updated in the config.
2264
+ */
2265
+ updateMask?: string;
2266
+ /**
2267
+ * Request body metadata
2268
+ */
2269
+ requestBody?: Schema$Config;
2270
+ }
2271
+ export class Resource$Projects$Locations$Folders {
2272
+ context: APIRequestContext;
2273
+ constructor(context: APIRequestContext);
2274
+ /**
2275
+ * Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
2276
+ * @example
2277
+ * ```js
2278
+ * // Before running the sample:
2279
+ * // - Enable the API at:
2280
+ * // https://console.developers.google.com/apis/api/dataform.googleapis.com
2281
+ * // - Login into gcloud by running:
2282
+ * // ```sh
2283
+ * // $ gcloud auth application-default login
2284
+ * // ```
2285
+ * // - Install the npm module by running:
2286
+ * // ```sh
2287
+ * // $ npm install googleapis
2288
+ * // ```
2289
+ *
2290
+ * const {google} = require('googleapis');
2291
+ * const dataform = google.dataform('v1beta1');
2292
+ *
2293
+ * async function main() {
2294
+ * const auth = new google.auth.GoogleAuth({
2295
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2296
+ * scopes: [
2297
+ * 'https://www.googleapis.com/auth/bigquery',
2298
+ * 'https://www.googleapis.com/auth/cloud-platform',
2299
+ * ],
2300
+ * });
2301
+ *
2302
+ * // Acquire an auth client, and bind it to all future calls
2303
+ * const authClient = await auth.getClient();
2304
+ * google.options({auth: authClient});
2305
+ *
2306
+ * // Do the magic
2307
+ * const res = await dataform.projects.locations.folders.getIamPolicy({
2308
+ * // 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).
2309
+ * 'options.requestedPolicyVersion': 'placeholder-value',
2310
+ * // 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.
2311
+ * resource: 'projects/my-project/locations/my-location/folders/my-folder',
2312
+ * });
2313
+ * console.log(res.data);
2314
+ *
2315
+ * // Example response
2316
+ * // {
2317
+ * // "bindings": [],
2318
+ * // "etag": "my_etag",
2319
+ * // "version": 0
2320
+ * // }
2321
+ * }
2322
+ *
2323
+ * main().catch(e => {
2324
+ * console.error(e);
2325
+ * throw e;
2326
+ * });
2327
+ *
2328
+ * ```
2329
+ *
2330
+ * @param params - Parameters for request
2331
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2332
+ * @param callback - Optional callback that handles the response.
2333
+ * @returns A promise if used with async/await, or void if used with a callback.
2334
+ */
2335
+ getIamPolicy(params: Params$Resource$Projects$Locations$Folders$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2336
+ getIamPolicy(params?: Params$Resource$Projects$Locations$Folders$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
2337
+ getIamPolicy(params: Params$Resource$Projects$Locations$Folders$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2338
+ getIamPolicy(params: Params$Resource$Projects$Locations$Folders$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
2339
+ getIamPolicy(params: Params$Resource$Projects$Locations$Folders$Getiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
2340
+ getIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
2341
+ /**
2342
+ * Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
2343
+ * @example
2344
+ * ```js
2345
+ * // Before running the sample:
2346
+ * // - Enable the API at:
2347
+ * // https://console.developers.google.com/apis/api/dataform.googleapis.com
2348
+ * // - Login into gcloud by running:
2349
+ * // ```sh
2350
+ * // $ gcloud auth application-default login
2351
+ * // ```
2352
+ * // - Install the npm module by running:
2353
+ * // ```sh
2354
+ * // $ npm install googleapis
2355
+ * // ```
2356
+ *
2357
+ * const {google} = require('googleapis');
2358
+ * const dataform = google.dataform('v1beta1');
2359
+ *
2360
+ * async function main() {
2361
+ * const auth = new google.auth.GoogleAuth({
2362
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2363
+ * scopes: [
2364
+ * 'https://www.googleapis.com/auth/bigquery',
2365
+ * 'https://www.googleapis.com/auth/cloud-platform',
2366
+ * ],
2367
+ * });
2368
+ *
2369
+ * // Acquire an auth client, and bind it to all future calls
2370
+ * const authClient = await auth.getClient();
2371
+ * google.options({auth: authClient});
2372
+ *
2373
+ * // Do the magic
2374
+ * const res = await dataform.projects.locations.folders.setIamPolicy({
2375
+ * // 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.
2376
+ * resource: 'projects/my-project/locations/my-location/folders/my-folder',
2377
+ *
2378
+ * // Request body metadata
2379
+ * requestBody: {
2380
+ * // request body parameters
2381
+ * // {
2382
+ * // "policy": {}
2383
+ * // }
2384
+ * },
2385
+ * });
2386
+ * console.log(res.data);
2387
+ *
2388
+ * // Example response
2389
+ * // {
2390
+ * // "bindings": [],
2391
+ * // "etag": "my_etag",
2392
+ * // "version": 0
2393
+ * // }
2394
+ * }
2395
+ *
2396
+ * main().catch(e => {
2397
+ * console.error(e);
2398
+ * throw e;
2399
+ * });
2400
+ *
2401
+ * ```
2402
+ *
2403
+ * @param params - Parameters for request
2404
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2405
+ * @param callback - Optional callback that handles the response.
2406
+ * @returns A promise if used with async/await, or void if used with a callback.
2407
+ */
2408
+ setIamPolicy(params: Params$Resource$Projects$Locations$Folders$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2409
+ setIamPolicy(params?: Params$Resource$Projects$Locations$Folders$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
2410
+ setIamPolicy(params: Params$Resource$Projects$Locations$Folders$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2411
+ setIamPolicy(params: Params$Resource$Projects$Locations$Folders$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
2412
+ setIamPolicy(params: Params$Resource$Projects$Locations$Folders$Setiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
2413
+ setIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
2414
+ /**
2415
+ * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
2416
+ * @example
2417
+ * ```js
2418
+ * // Before running the sample:
2419
+ * // - Enable the API at:
2420
+ * // https://console.developers.google.com/apis/api/dataform.googleapis.com
2421
+ * // - Login into gcloud by running:
2422
+ * // ```sh
2423
+ * // $ gcloud auth application-default login
2424
+ * // ```
2425
+ * // - Install the npm module by running:
2426
+ * // ```sh
2427
+ * // $ npm install googleapis
2428
+ * // ```
2429
+ *
2430
+ * const {google} = require('googleapis');
2431
+ * const dataform = google.dataform('v1beta1');
2432
+ *
2433
+ * async function main() {
2434
+ * const auth = new google.auth.GoogleAuth({
2435
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2436
+ * scopes: [
2437
+ * 'https://www.googleapis.com/auth/bigquery',
2438
+ * 'https://www.googleapis.com/auth/cloud-platform',
2439
+ * ],
2440
+ * });
2441
+ *
2442
+ * // Acquire an auth client, and bind it to all future calls
2443
+ * const authClient = await auth.getClient();
2444
+ * google.options({auth: authClient});
2445
+ *
2446
+ * // Do the magic
2447
+ * const res = await dataform.projects.locations.folders.testIamPermissions({
2448
+ * // 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.
2449
+ * resource: 'projects/my-project/locations/my-location/folders/my-folder',
2450
+ *
2451
+ * // Request body metadata
2452
+ * requestBody: {
2453
+ * // request body parameters
2454
+ * // {
2455
+ * // "permissions": []
2456
+ * // }
2457
+ * },
2458
+ * });
2459
+ * console.log(res.data);
2460
+ *
2461
+ * // Example response
2462
+ * // {
2463
+ * // "permissions": []
2464
+ * // }
2465
+ * }
2466
+ *
2467
+ * main().catch(e => {
2468
+ * console.error(e);
2469
+ * throw e;
2470
+ * });
2471
+ *
2472
+ * ```
2473
+ *
2474
+ * @param params - Parameters for request
2475
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2476
+ * @param callback - Optional callback that handles the response.
2477
+ * @returns A promise if used with async/await, or void if used with a callback.
2478
+ */
2479
+ testIamPermissions(params: Params$Resource$Projects$Locations$Folders$Testiampermissions, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2480
+ testIamPermissions(params?: Params$Resource$Projects$Locations$Folders$Testiampermissions, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>;
2481
+ testIamPermissions(params: Params$Resource$Projects$Locations$Folders$Testiampermissions, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2482
+ testIamPermissions(params: Params$Resource$Projects$Locations$Folders$Testiampermissions, options: MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
2483
+ testIamPermissions(params: Params$Resource$Projects$Locations$Folders$Testiampermissions, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
2484
+ testIamPermissions(callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
2485
+ }
2486
+ export interface Params$Resource$Projects$Locations$Folders$Getiampolicy extends StandardParameters {
2487
+ /**
2488
+ * 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).
2489
+ */
2490
+ 'options.requestedPolicyVersion'?: number;
2491
+ /**
2492
+ * 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.
2493
+ */
2494
+ resource?: string;
2495
+ }
2496
+ export interface Params$Resource$Projects$Locations$Folders$Setiampolicy extends StandardParameters {
2497
+ /**
2498
+ * 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.
2499
+ */
2500
+ resource?: string;
2501
+ /**
2502
+ * Request body metadata
2503
+ */
2504
+ requestBody?: Schema$SetIamPolicyRequest;
2505
+ }
2506
+ export interface Params$Resource$Projects$Locations$Folders$Testiampermissions extends StandardParameters {
2507
+ /**
2508
+ * 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.
2509
+ */
2510
+ resource?: string;
2511
+ /**
2512
+ * Request body metadata
2513
+ */
2514
+ requestBody?: Schema$TestIamPermissionsRequest;
2515
+ }
2516
+ export class Resource$Projects$Locations$Operations {
2517
+ context: APIRequestContext;
2518
+ constructor(context: APIRequestContext);
2519
+ /**
2520
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
2521
+ * @example
2522
+ * ```js
2523
+ * // Before running the sample:
2524
+ * // - Enable the API at:
2525
+ * // https://console.developers.google.com/apis/api/dataform.googleapis.com
2526
+ * // - Login into gcloud by running:
2527
+ * // ```sh
2528
+ * // $ gcloud auth application-default login
2529
+ * // ```
2530
+ * // - Install the npm module by running:
2531
+ * // ```sh
2532
+ * // $ npm install googleapis
2533
+ * // ```
2534
+ *
2535
+ * const {google} = require('googleapis');
2536
+ * const dataform = google.dataform('v1beta1');
2537
+ *
2538
+ * async function main() {
2539
+ * const auth = new google.auth.GoogleAuth({
2540
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2541
+ * scopes: [
2542
+ * 'https://www.googleapis.com/auth/bigquery',
2543
+ * 'https://www.googleapis.com/auth/cloud-platform',
2544
+ * ],
2545
+ * });
2546
+ *
2547
+ * // Acquire an auth client, and bind it to all future calls
2548
+ * const authClient = await auth.getClient();
2549
+ * google.options({auth: authClient});
2550
+ *
2551
+ * // Do the magic
2552
+ * const res = await dataform.projects.locations.operations.cancel({
2553
+ * // The name of the operation resource to be cancelled.
2554
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
2555
+ *
2556
+ * // Request body metadata
2557
+ * requestBody: {
2558
+ * // request body parameters
2559
+ * // {}
2560
+ * },
2561
+ * });
2562
+ * console.log(res.data);
2563
+ *
2564
+ * // Example response
2565
+ * // {}
2566
+ * }
2567
+ *
2568
+ * main().catch(e => {
2569
+ * console.error(e);
2570
+ * throw e;
2571
+ * });
2572
+ *
2573
+ * ```
2574
+ *
2575
+ * @param params - Parameters for request
2576
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2577
+ * @param callback - Optional callback that handles the response.
2578
+ * @returns A promise if used with async/await, or void if used with a callback.
2579
+ */
2580
+ cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2581
+ cancel(params?: Params$Resource$Projects$Locations$Operations$Cancel, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
2582
+ cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2583
+ cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
2584
+ cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, callback: BodyResponseCallback<Schema$Empty>): void;
2585
+ cancel(callback: BodyResponseCallback<Schema$Empty>): void;
2586
+ /**
2587
+ * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2588
+ * @example
2589
+ * ```js
2590
+ * // Before running the sample:
2591
+ * // - Enable the API at:
2592
+ * // https://console.developers.google.com/apis/api/dataform.googleapis.com
2593
+ * // - Login into gcloud by running:
2594
+ * // ```sh
2595
+ * // $ gcloud auth application-default login
2596
+ * // ```
2597
+ * // - Install the npm module by running:
2598
+ * // ```sh
2599
+ * // $ npm install googleapis
2600
+ * // ```
2601
+ *
2602
+ * const {google} = require('googleapis');
2603
+ * const dataform = google.dataform('v1beta1');
2604
+ *
2605
+ * async function main() {
2606
+ * const auth = new google.auth.GoogleAuth({
2607
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2608
+ * scopes: [
2609
+ * 'https://www.googleapis.com/auth/bigquery',
2610
+ * 'https://www.googleapis.com/auth/cloud-platform',
2611
+ * ],
2612
+ * });
2613
+ *
2614
+ * // Acquire an auth client, and bind it to all future calls
2615
+ * const authClient = await auth.getClient();
2616
+ * google.options({auth: authClient});
2617
+ *
2618
+ * // Do the magic
2619
+ * const res = await dataform.projects.locations.operations.delete({
2620
+ * // The name of the operation resource to be deleted.
2621
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
2622
+ * });
2623
+ * console.log(res.data);
2624
+ *
2625
+ * // Example response
2626
+ * // {}
2627
+ * }
2628
+ *
2629
+ * main().catch(e => {
2630
+ * console.error(e);
2631
+ * throw e;
2632
+ * });
2633
+ *
2634
+ * ```
2635
+ *
2636
+ * @param params - Parameters for request
2637
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2638
+ * @param callback - Optional callback that handles the response.
2639
+ * @returns A promise if used with async/await, or void if used with a callback.
2640
+ */
2641
+ delete(params: Params$Resource$Projects$Locations$Operations$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2642
+ delete(params?: Params$Resource$Projects$Locations$Operations$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
2643
+ delete(params: Params$Resource$Projects$Locations$Operations$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2644
+ delete(params: Params$Resource$Projects$Locations$Operations$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
2645
+ delete(params: Params$Resource$Projects$Locations$Operations$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
2646
+ delete(callback: BodyResponseCallback<Schema$Empty>): void;
2647
+ /**
2648
+ * Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
2649
+ * @example
2650
+ * ```js
2651
+ * // Before running the sample:
2652
+ * // - Enable the API at:
2653
+ * // https://console.developers.google.com/apis/api/dataform.googleapis.com
2654
+ * // - Login into gcloud by running:
2655
+ * // ```sh
2656
+ * // $ gcloud auth application-default login
2657
+ * // ```
2658
+ * // - Install the npm module by running:
2659
+ * // ```sh
2660
+ * // $ npm install googleapis
2661
+ * // ```
2662
+ *
2663
+ * const {google} = require('googleapis');
2664
+ * const dataform = google.dataform('v1beta1');
2665
+ *
2666
+ * async function main() {
2667
+ * const auth = new google.auth.GoogleAuth({
2668
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2669
+ * scopes: [
2670
+ * 'https://www.googleapis.com/auth/bigquery',
2671
+ * 'https://www.googleapis.com/auth/cloud-platform',
2672
+ * ],
2673
+ * });
2674
+ *
2675
+ * // Acquire an auth client, and bind it to all future calls
2676
+ * const authClient = await auth.getClient();
2677
+ * google.options({auth: authClient});
2678
+ *
2679
+ * // Do the magic
2680
+ * const res = await dataform.projects.locations.operations.get({
2681
+ * // The name of the operation resource.
2682
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
2683
+ * });
2684
+ * console.log(res.data);
2685
+ *
2686
+ * // Example response
2687
+ * // {
2688
+ * // "done": false,
2689
+ * // "error": {},
2690
+ * // "metadata": {},
2691
+ * // "name": "my_name",
2692
+ * // "response": {}
2693
+ * // }
2694
+ * }
2695
+ *
2696
+ * main().catch(e => {
2697
+ * console.error(e);
2698
+ * throw e;
2699
+ * });
2700
+ *
2701
+ * ```
2702
+ *
2703
+ * @param params - Parameters for request
2704
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2705
+ * @param callback - Optional callback that handles the response.
2706
+ * @returns A promise if used with async/await, or void if used with a callback.
2707
+ */
2708
+ get(params: Params$Resource$Projects$Locations$Operations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2709
+ get(params?: Params$Resource$Projects$Locations$Operations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2710
+ get(params: Params$Resource$Projects$Locations$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2711
+ get(params: Params$Resource$Projects$Locations$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2712
+ get(params: Params$Resource$Projects$Locations$Operations$Get, callback: BodyResponseCallback<Schema$Operation>): void;
2713
+ get(callback: BodyResponseCallback<Schema$Operation>): void;
2714
+ /**
2715
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
2716
+ * @example
2717
+ * ```js
2718
+ * // Before running the sample:
2719
+ * // - Enable the API at:
2720
+ * // https://console.developers.google.com/apis/api/dataform.googleapis.com
2721
+ * // - Login into gcloud by running:
2722
+ * // ```sh
2723
+ * // $ gcloud auth application-default login
2724
+ * // ```
2725
+ * // - Install the npm module by running:
2726
+ * // ```sh
2727
+ * // $ npm install googleapis
2728
+ * // ```
2729
+ *
2730
+ * const {google} = require('googleapis');
2731
+ * const dataform = google.dataform('v1beta1');
2732
+ *
2733
+ * async function main() {
2734
+ * const auth = new google.auth.GoogleAuth({
2735
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2736
+ * scopes: [
2737
+ * 'https://www.googleapis.com/auth/bigquery',
2738
+ * 'https://www.googleapis.com/auth/cloud-platform',
2739
+ * ],
2740
+ * });
2741
+ *
2742
+ * // Acquire an auth client, and bind it to all future calls
2743
+ * const authClient = await auth.getClient();
2744
+ * google.options({auth: authClient});
2745
+ *
2746
+ * // Do the magic
2747
+ * const res = await dataform.projects.locations.operations.list({
2748
+ * // The standard list filter.
2749
+ * filter: 'placeholder-value',
2750
+ * // The name of the operation's parent resource.
2751
+ * name: 'projects/my-project/locations/my-location',
2752
+ * // The standard list page size.
2753
+ * pageSize: 'placeholder-value',
2754
+ * // The standard list page token.
2755
+ * pageToken: 'placeholder-value',
2756
+ * });
2757
+ * console.log(res.data);
2758
+ *
2759
+ * // Example response
2760
+ * // {
2761
+ * // "nextPageToken": "my_nextPageToken",
2762
+ * // "operations": []
2763
+ * // }
2764
+ * }
2765
+ *
2766
+ * main().catch(e => {
2767
+ * console.error(e);
2768
+ * throw e;
2769
+ * });
2770
+ *
2771
+ * ```
2772
+ *
2773
+ * @param params - Parameters for request
2774
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2775
+ * @param callback - Optional callback that handles the response.
2776
+ * @returns A promise if used with async/await, or void if used with a callback.
2777
+ */
2778
+ list(params: Params$Resource$Projects$Locations$Operations$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2779
+ list(params?: Params$Resource$Projects$Locations$Operations$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
2780
+ list(params: Params$Resource$Projects$Locations$Operations$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2781
+ list(params: Params$Resource$Projects$Locations$Operations$List, options: MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>, callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
2782
+ list(params: Params$Resource$Projects$Locations$Operations$List, callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
2783
+ list(callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
2143
2784
  }
2144
- export interface Params$Resource$Projects$Locations$Get extends StandardParameters {
2785
+ export interface Params$Resource$Projects$Locations$Operations$Cancel extends StandardParameters {
2145
2786
  /**
2146
- * Resource name for the location.
2787
+ * The name of the operation resource to be cancelled.
2147
2788
  */
2148
2789
  name?: string;
2790
+ /**
2791
+ * Request body metadata
2792
+ */
2793
+ requestBody?: Schema$CancelOperationRequest;
2149
2794
  }
2150
- export interface Params$Resource$Projects$Locations$Getconfig extends StandardParameters {
2795
+ export interface Params$Resource$Projects$Locations$Operations$Delete extends StandardParameters {
2151
2796
  /**
2152
- * Required. The config name.
2797
+ * The name of the operation resource to be deleted.
2153
2798
  */
2154
2799
  name?: string;
2155
2800
  }
2156
- export interface Params$Resource$Projects$Locations$List extends StandardParameters {
2801
+ export interface Params$Resource$Projects$Locations$Operations$Get extends StandardParameters {
2157
2802
  /**
2158
- * Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
2803
+ * The name of the operation resource.
2159
2804
  */
2160
- extraLocationTypes?: string[];
2805
+ name?: string;
2806
+ }
2807
+ export interface Params$Resource$Projects$Locations$Operations$List extends StandardParameters {
2161
2808
  /**
2162
- * A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
2809
+ * The standard list filter.
2163
2810
  */
2164
2811
  filter?: string;
2165
2812
  /**
2166
- * The resource that owns the locations collection, if applicable.
2813
+ * The name of the operation's parent resource.
2167
2814
  */
2168
2815
  name?: string;
2169
2816
  /**
2170
- * The maximum number of results to return. If not set, the service selects a default.
2817
+ * The standard list page size.
2171
2818
  */
2172
2819
  pageSize?: number;
2173
2820
  /**
2174
- * A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
2821
+ * The standard list page token.
2175
2822
  */
2176
2823
  pageToken?: string;
2177
2824
  }
2178
- export interface Params$Resource$Projects$Locations$Updateconfig extends StandardParameters {
2179
- /**
2180
- * Identifier. The config name.
2181
- */
2182
- name?: string;
2183
- /**
2184
- * Optional. Specifies the fields to be updated in the config.
2185
- */
2186
- updateMask?: string;
2187
- /**
2188
- * Request body metadata
2189
- */
2190
- requestBody?: Schema$Config;
2191
- }
2192
2825
  export class Resource$Projects$Locations$Repositories {
2193
2826
  context: APIRequestContext;
2194
2827
  compilationResults: Resource$Projects$Locations$Repositories$Compilationresults;
@@ -7130,5 +7763,253 @@ export declare namespace dataform_v1beta1 {
7130
7763
  */
7131
7764
  requestBody?: Schema$WriteFileRequest;
7132
7765
  }
7766
+ export class Resource$Projects$Locations$Teamfolders {
7767
+ context: APIRequestContext;
7768
+ constructor(context: APIRequestContext);
7769
+ /**
7770
+ * Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
7771
+ * @example
7772
+ * ```js
7773
+ * // Before running the sample:
7774
+ * // - Enable the API at:
7775
+ * // https://console.developers.google.com/apis/api/dataform.googleapis.com
7776
+ * // - Login into gcloud by running:
7777
+ * // ```sh
7778
+ * // $ gcloud auth application-default login
7779
+ * // ```
7780
+ * // - Install the npm module by running:
7781
+ * // ```sh
7782
+ * // $ npm install googleapis
7783
+ * // ```
7784
+ *
7785
+ * const {google} = require('googleapis');
7786
+ * const dataform = google.dataform('v1beta1');
7787
+ *
7788
+ * async function main() {
7789
+ * const auth = new google.auth.GoogleAuth({
7790
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7791
+ * scopes: [
7792
+ * 'https://www.googleapis.com/auth/bigquery',
7793
+ * 'https://www.googleapis.com/auth/cloud-platform',
7794
+ * ],
7795
+ * });
7796
+ *
7797
+ * // Acquire an auth client, and bind it to all future calls
7798
+ * const authClient = await auth.getClient();
7799
+ * google.options({auth: authClient});
7800
+ *
7801
+ * // Do the magic
7802
+ * const res = await dataform.projects.locations.teamFolders.getIamPolicy({
7803
+ * // 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).
7804
+ * 'options.requestedPolicyVersion': 'placeholder-value',
7805
+ * // 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.
7806
+ * resource:
7807
+ * 'projects/my-project/locations/my-location/teamFolders/my-teamFolder',
7808
+ * });
7809
+ * console.log(res.data);
7810
+ *
7811
+ * // Example response
7812
+ * // {
7813
+ * // "bindings": [],
7814
+ * // "etag": "my_etag",
7815
+ * // "version": 0
7816
+ * // }
7817
+ * }
7818
+ *
7819
+ * main().catch(e => {
7820
+ * console.error(e);
7821
+ * throw e;
7822
+ * });
7823
+ *
7824
+ * ```
7825
+ *
7826
+ * @param params - Parameters for request
7827
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7828
+ * @param callback - Optional callback that handles the response.
7829
+ * @returns A promise if used with async/await, or void if used with a callback.
7830
+ */
7831
+ getIamPolicy(params: Params$Resource$Projects$Locations$Teamfolders$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
7832
+ getIamPolicy(params?: Params$Resource$Projects$Locations$Teamfolders$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
7833
+ getIamPolicy(params: Params$Resource$Projects$Locations$Teamfolders$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
7834
+ getIamPolicy(params: Params$Resource$Projects$Locations$Teamfolders$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
7835
+ getIamPolicy(params: Params$Resource$Projects$Locations$Teamfolders$Getiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
7836
+ getIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
7837
+ /**
7838
+ * Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
7839
+ * @example
7840
+ * ```js
7841
+ * // Before running the sample:
7842
+ * // - Enable the API at:
7843
+ * // https://console.developers.google.com/apis/api/dataform.googleapis.com
7844
+ * // - Login into gcloud by running:
7845
+ * // ```sh
7846
+ * // $ gcloud auth application-default login
7847
+ * // ```
7848
+ * // - Install the npm module by running:
7849
+ * // ```sh
7850
+ * // $ npm install googleapis
7851
+ * // ```
7852
+ *
7853
+ * const {google} = require('googleapis');
7854
+ * const dataform = google.dataform('v1beta1');
7855
+ *
7856
+ * async function main() {
7857
+ * const auth = new google.auth.GoogleAuth({
7858
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7859
+ * scopes: [
7860
+ * 'https://www.googleapis.com/auth/bigquery',
7861
+ * 'https://www.googleapis.com/auth/cloud-platform',
7862
+ * ],
7863
+ * });
7864
+ *
7865
+ * // Acquire an auth client, and bind it to all future calls
7866
+ * const authClient = await auth.getClient();
7867
+ * google.options({auth: authClient});
7868
+ *
7869
+ * // Do the magic
7870
+ * const res = await dataform.projects.locations.teamFolders.setIamPolicy({
7871
+ * // 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.
7872
+ * resource:
7873
+ * 'projects/my-project/locations/my-location/teamFolders/my-teamFolder',
7874
+ *
7875
+ * // Request body metadata
7876
+ * requestBody: {
7877
+ * // request body parameters
7878
+ * // {
7879
+ * // "policy": {}
7880
+ * // }
7881
+ * },
7882
+ * });
7883
+ * console.log(res.data);
7884
+ *
7885
+ * // Example response
7886
+ * // {
7887
+ * // "bindings": [],
7888
+ * // "etag": "my_etag",
7889
+ * // "version": 0
7890
+ * // }
7891
+ * }
7892
+ *
7893
+ * main().catch(e => {
7894
+ * console.error(e);
7895
+ * throw e;
7896
+ * });
7897
+ *
7898
+ * ```
7899
+ *
7900
+ * @param params - Parameters for request
7901
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7902
+ * @param callback - Optional callback that handles the response.
7903
+ * @returns A promise if used with async/await, or void if used with a callback.
7904
+ */
7905
+ setIamPolicy(params: Params$Resource$Projects$Locations$Teamfolders$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
7906
+ setIamPolicy(params?: Params$Resource$Projects$Locations$Teamfolders$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
7907
+ setIamPolicy(params: Params$Resource$Projects$Locations$Teamfolders$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
7908
+ setIamPolicy(params: Params$Resource$Projects$Locations$Teamfolders$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
7909
+ setIamPolicy(params: Params$Resource$Projects$Locations$Teamfolders$Setiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
7910
+ setIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
7911
+ /**
7912
+ * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
7913
+ * @example
7914
+ * ```js
7915
+ * // Before running the sample:
7916
+ * // - Enable the API at:
7917
+ * // https://console.developers.google.com/apis/api/dataform.googleapis.com
7918
+ * // - Login into gcloud by running:
7919
+ * // ```sh
7920
+ * // $ gcloud auth application-default login
7921
+ * // ```
7922
+ * // - Install the npm module by running:
7923
+ * // ```sh
7924
+ * // $ npm install googleapis
7925
+ * // ```
7926
+ *
7927
+ * const {google} = require('googleapis');
7928
+ * const dataform = google.dataform('v1beta1');
7929
+ *
7930
+ * async function main() {
7931
+ * const auth = new google.auth.GoogleAuth({
7932
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7933
+ * scopes: [
7934
+ * 'https://www.googleapis.com/auth/bigquery',
7935
+ * 'https://www.googleapis.com/auth/cloud-platform',
7936
+ * ],
7937
+ * });
7938
+ *
7939
+ * // Acquire an auth client, and bind it to all future calls
7940
+ * const authClient = await auth.getClient();
7941
+ * google.options({auth: authClient});
7942
+ *
7943
+ * // Do the magic
7944
+ * const res = await dataform.projects.locations.teamFolders.testIamPermissions({
7945
+ * // 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.
7946
+ * resource:
7947
+ * 'projects/my-project/locations/my-location/teamFolders/my-teamFolder',
7948
+ *
7949
+ * // Request body metadata
7950
+ * requestBody: {
7951
+ * // request body parameters
7952
+ * // {
7953
+ * // "permissions": []
7954
+ * // }
7955
+ * },
7956
+ * });
7957
+ * console.log(res.data);
7958
+ *
7959
+ * // Example response
7960
+ * // {
7961
+ * // "permissions": []
7962
+ * // }
7963
+ * }
7964
+ *
7965
+ * main().catch(e => {
7966
+ * console.error(e);
7967
+ * throw e;
7968
+ * });
7969
+ *
7970
+ * ```
7971
+ *
7972
+ * @param params - Parameters for request
7973
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7974
+ * @param callback - Optional callback that handles the response.
7975
+ * @returns A promise if used with async/await, or void if used with a callback.
7976
+ */
7977
+ testIamPermissions(params: Params$Resource$Projects$Locations$Teamfolders$Testiampermissions, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
7978
+ testIamPermissions(params?: Params$Resource$Projects$Locations$Teamfolders$Testiampermissions, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>;
7979
+ testIamPermissions(params: Params$Resource$Projects$Locations$Teamfolders$Testiampermissions, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
7980
+ testIamPermissions(params: Params$Resource$Projects$Locations$Teamfolders$Testiampermissions, options: MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
7981
+ testIamPermissions(params: Params$Resource$Projects$Locations$Teamfolders$Testiampermissions, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
7982
+ testIamPermissions(callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
7983
+ }
7984
+ export interface Params$Resource$Projects$Locations$Teamfolders$Getiampolicy extends StandardParameters {
7985
+ /**
7986
+ * 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).
7987
+ */
7988
+ 'options.requestedPolicyVersion'?: number;
7989
+ /**
7990
+ * 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.
7991
+ */
7992
+ resource?: string;
7993
+ }
7994
+ export interface Params$Resource$Projects$Locations$Teamfolders$Setiampolicy extends StandardParameters {
7995
+ /**
7996
+ * 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.
7997
+ */
7998
+ resource?: string;
7999
+ /**
8000
+ * Request body metadata
8001
+ */
8002
+ requestBody?: Schema$SetIamPolicyRequest;
8003
+ }
8004
+ export interface Params$Resource$Projects$Locations$Teamfolders$Testiampermissions extends StandardParameters {
8005
+ /**
8006
+ * 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.
8007
+ */
8008
+ resource?: string;
8009
+ /**
8010
+ * Request body metadata
8011
+ */
8012
+ requestBody?: Schema$TestIamPermissionsRequest;
8013
+ }
7133
8014
  export {};
7134
8015
  }