@googleapis/dataform 14.1.0 → 15.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 +17 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +2080 -445
- package/build/v1.js +515 -0
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +262 -51
- package/build/v1beta1.js +65 -0
- package/build/v1beta1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +6875 -4001
- package/v1beta1.ts +419 -51
package/v1beta1.ts
CHANGED
|
@@ -420,7 +420,7 @@ export namespace dataform_v1beta1 {
|
|
|
420
420
|
*/
|
|
421
421
|
export interface Schema$CompilationError {
|
|
422
422
|
/**
|
|
423
|
-
* Output only. The identifier of the action where this error occurred, if available.
|
|
423
|
+
* Output only. The identifier of the action where this error occurred, if available. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:CompilationError)
|
|
424
424
|
*/
|
|
425
425
|
actionTarget?: Schema$Target;
|
|
426
426
|
/**
|
|
@@ -628,6 +628,24 @@ export namespace dataform_v1beta1 {
|
|
|
628
628
|
* Represents the delete file operation.
|
|
629
629
|
*/
|
|
630
630
|
export interface Schema$DeleteFile {}
|
|
631
|
+
/**
|
|
632
|
+
* `DeleteFolderTree` request message.
|
|
633
|
+
*/
|
|
634
|
+
export interface Schema$DeleteFolderTreeRequest {
|
|
635
|
+
/**
|
|
636
|
+
* Optional. If `false` (default): The operation will fail if any Repository within the folder hierarchy has associated Release Configs or Workflow Configs. If `true`: The operation will attempt to delete everything, including any Release Configs and Workflow Configs linked to Repositories within the folder hierarchy. This permanently removes schedules and resources.
|
|
637
|
+
*/
|
|
638
|
+
force?: boolean | null;
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* `DeleteTeamFolderTree` request message.
|
|
642
|
+
*/
|
|
643
|
+
export interface Schema$DeleteTeamFolderTreeRequest {
|
|
644
|
+
/**
|
|
645
|
+
* Optional. If `false` (default): The operation will fail if any Repository within the folder hierarchy has associated Release Configs or Workflow Configs. If `true`: The operation will attempt to delete everything, including any Release Configs and Workflow Configs linked to Repositories within the folder hierarchy. This permanently removes schedules and resources.
|
|
646
|
+
*/
|
|
647
|
+
force?: boolean | null;
|
|
648
|
+
}
|
|
631
649
|
/**
|
|
632
650
|
* Represents a single entry in a directory.
|
|
633
651
|
*/
|
|
@@ -640,6 +658,10 @@ export namespace dataform_v1beta1 {
|
|
|
640
658
|
* A file in the directory.
|
|
641
659
|
*/
|
|
642
660
|
file?: string | null;
|
|
661
|
+
/**
|
|
662
|
+
* Entry with metadata.
|
|
663
|
+
*/
|
|
664
|
+
metadata?: Schema$FilesystemEntryMetadata;
|
|
643
665
|
}
|
|
644
666
|
/**
|
|
645
667
|
* Client-facing representation of a directory entry in search results.
|
|
@@ -763,12 +785,25 @@ export namespace dataform_v1beta1 {
|
|
|
763
785
|
*/
|
|
764
786
|
path?: string | null;
|
|
765
787
|
}
|
|
788
|
+
/**
|
|
789
|
+
* Represents metadata for a single entry in a filesystem.
|
|
790
|
+
*/
|
|
791
|
+
export interface Schema$FilesystemEntryMetadata {
|
|
792
|
+
/**
|
|
793
|
+
* Output only. Provides the size of the entry in bytes. For directories, this will be 0.
|
|
794
|
+
*/
|
|
795
|
+
sizeBytes?: string | null;
|
|
796
|
+
/**
|
|
797
|
+
* Output only. Represents the time of the last modification of the entry.
|
|
798
|
+
*/
|
|
799
|
+
updateTime?: string | null;
|
|
800
|
+
}
|
|
766
801
|
/**
|
|
767
802
|
* Represents a Dataform Folder. This is a resource that is used to organize Files and other Folders and provide hierarchical access controls.
|
|
768
803
|
*/
|
|
769
804
|
export interface Schema$Folder {
|
|
770
805
|
/**
|
|
771
|
-
* Optional. The containing Folder resource name. This should take the format: projects/{project\}/locations/{location\}/folders/{folder\}, projects/{project\}/locations/{location\}/teamFolders/{teamFolder\}, or just
|
|
806
|
+
* Optional. The containing Folder resource name. This should take the format: projects/{project\}/locations/{location\}/folders/{folder\}, projects/{project\}/locations/{location\}/teamFolders/{teamFolder\}, or just "" if this is a root Folder. This field can only be updated through MoveFolder.
|
|
772
807
|
*/
|
|
773
808
|
containingFolder?: string | null;
|
|
774
809
|
/**
|
|
@@ -822,7 +857,7 @@ export namespace dataform_v1beta1 {
|
|
|
822
857
|
*/
|
|
823
858
|
authenticationTokenSecretVersion?: string | null;
|
|
824
859
|
/**
|
|
825
|
-
* Required. The Git remote's default branch name.
|
|
860
|
+
* Required. The Git remote's default branch name. If not set, `main` will be used and stored for the repository.
|
|
826
861
|
*/
|
|
827
862
|
defaultBranch?: string | null;
|
|
828
863
|
/**
|
|
@@ -956,7 +991,7 @@ export namespace dataform_v1beta1 {
|
|
|
956
991
|
*/
|
|
957
992
|
nextPageToken?: string | null;
|
|
958
993
|
/**
|
|
959
|
-
* Locations which could not be reached.
|
|
994
|
+
* Locations which could not be reached. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:ListCompilationResultsResponse)
|
|
960
995
|
*/
|
|
961
996
|
unreachable?: string[] | null;
|
|
962
997
|
}
|
|
@@ -1003,7 +1038,7 @@ export namespace dataform_v1beta1 {
|
|
|
1003
1038
|
*/
|
|
1004
1039
|
releaseConfigs?: Schema$ReleaseConfig[];
|
|
1005
1040
|
/**
|
|
1006
|
-
* Locations which could not be reached.
|
|
1041
|
+
* Locations which could not be reached. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:ListReleaseConfigsResponse)
|
|
1007
1042
|
*/
|
|
1008
1043
|
unreachable?: string[] | null;
|
|
1009
1044
|
}
|
|
@@ -1173,7 +1208,7 @@ export namespace dataform_v1beta1 {
|
|
|
1173
1208
|
*/
|
|
1174
1209
|
export interface Schema$MoveFolderRequest {
|
|
1175
1210
|
/**
|
|
1176
|
-
*
|
|
1211
|
+
* Optional. The name of the Folder, TeamFolder, or root location to move the Folder to. Can be in the format of: "" to move into the root User folder, `projects/x/locations/x/folders/x`, `projects/x/locations/x/teamFolders/x`
|
|
1177
1212
|
*/
|
|
1178
1213
|
destinationContainingFolder?: string | null;
|
|
1179
1214
|
}
|
|
@@ -1182,7 +1217,7 @@ export namespace dataform_v1beta1 {
|
|
|
1182
1217
|
*/
|
|
1183
1218
|
export interface Schema$MoveRepositoryRequest {
|
|
1184
1219
|
/**
|
|
1185
|
-
*
|
|
1220
|
+
* Optional. The name of the Folder, TeamFolder, or root location to move the repository to. Can be in the format of: "" to move into the root User folder, `projects/x/locations/x/folders/x`, `projects/x/locations/x/teamFolders/x`
|
|
1186
1221
|
*/
|
|
1187
1222
|
destinationContainingFolder?: string | null;
|
|
1188
1223
|
}
|
|
@@ -1216,7 +1251,7 @@ export namespace dataform_v1beta1 {
|
|
|
1216
1251
|
*/
|
|
1217
1252
|
contents?: string | null;
|
|
1218
1253
|
/**
|
|
1219
|
-
* Output only. The ID of the
|
|
1254
|
+
* Output only. The ID of the Gemini Enterprise Agent Platform job that executed the notebook in contents and also the ID used for the outputs created in Google Cloud Storage buckets. Only set once the job has started to run.
|
|
1220
1255
|
*/
|
|
1221
1256
|
jobId?: string | null;
|
|
1222
1257
|
}
|
|
@@ -1515,7 +1550,7 @@ export namespace dataform_v1beta1 {
|
|
|
1515
1550
|
*/
|
|
1516
1551
|
clusterExpressions?: string[] | null;
|
|
1517
1552
|
/**
|
|
1518
|
-
* Optional. The connection specifying the credentials to be used to read and write to external storage, such as Cloud Storage. The connection can have the form `{project\}.{location\}.{connection_id\}` or `projects/{project\}/locations/{location\}/connections/{connection_id\}
|
|
1553
|
+
* Optional. The connection specifying the credentials to be used to read and write to external storage, such as Cloud Storage. The connection can have the form `{project\}.{location\}.{connection_id\}` or `projects/{project\}/locations/{location\}/connections/{connection_id\}`, or be set to DEFAULT.
|
|
1519
1554
|
*/
|
|
1520
1555
|
connection?: string | null;
|
|
1521
1556
|
/**
|
|
@@ -1617,7 +1652,7 @@ export namespace dataform_v1beta1 {
|
|
|
1617
1652
|
*/
|
|
1618
1653
|
gitCommitish?: string | null;
|
|
1619
1654
|
/**
|
|
1620
|
-
* Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string.
|
|
1655
|
+
* Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:ReleaseConfig)
|
|
1621
1656
|
*/
|
|
1622
1657
|
internalMetadata?: string | null;
|
|
1623
1658
|
/**
|
|
@@ -2500,7 +2535,7 @@ export namespace dataform_v1beta1 {
|
|
|
2500
2535
|
}
|
|
2501
2536
|
|
|
2502
2537
|
/**
|
|
2503
|
-
* Lists information about the supported locations for this service.
|
|
2538
|
+
* Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
|
|
2504
2539
|
* @example
|
|
2505
2540
|
* ```js
|
|
2506
2541
|
* // Before running the sample:
|
|
@@ -2533,7 +2568,7 @@ export namespace dataform_v1beta1 {
|
|
|
2533
2568
|
*
|
|
2534
2569
|
* // Do the magic
|
|
2535
2570
|
* const res = await dataform.projects.locations.list({
|
|
2536
|
-
* // Optional. Do not use this field
|
|
2571
|
+
* // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
|
|
2537
2572
|
* extraLocationTypes: 'placeholder-value',
|
|
2538
2573
|
* // 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).
|
|
2539
2574
|
* filter: 'placeholder-value',
|
|
@@ -2684,11 +2719,11 @@ export namespace dataform_v1beta1 {
|
|
|
2684
2719
|
*
|
|
2685
2720
|
* // Do the magic
|
|
2686
2721
|
* const res = await dataform.projects.locations.queryUserRootContents({
|
|
2687
|
-
* // Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example:
|
|
2722
|
+
* // Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example: * `filter="display_name="MyFolder""`
|
|
2688
2723
|
* filter: 'placeholder-value',
|
|
2689
|
-
* // Required. Location of the user root folder
|
|
2724
|
+
* // Required. Location of the user root folder to list contents for. Format: projects/x/locations/x
|
|
2690
2725
|
* location: 'projects/my-project/locations/my-location',
|
|
2691
|
-
* // Optional. Field to additionally sort results by. Will order Folders before Repositories, and then by `order_by` in ascending order. Supported keywords: display_name (default), created_at, last_modified_at. Examples:
|
|
2726
|
+
* // Optional. Field to additionally sort results by. Will order Folders before Repositories, and then by `order_by` in ascending order. Supported keywords: display_name (default), created_at, last_modified_at. Examples: * `orderBy="display_name"` * `orderBy="display_name desc"`
|
|
2692
2727
|
* orderBy: 'placeholder-value',
|
|
2693
2728
|
* // Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
|
|
2694
2729
|
* pageSize: 'placeholder-value',
|
|
@@ -2970,7 +3005,7 @@ export namespace dataform_v1beta1 {
|
|
|
2970
3005
|
}
|
|
2971
3006
|
export interface Params$Resource$Projects$Locations$List extends StandardParameters {
|
|
2972
3007
|
/**
|
|
2973
|
-
* Optional. Do not use this field
|
|
3008
|
+
* Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
|
|
2974
3009
|
*/
|
|
2975
3010
|
extraLocationTypes?: string[];
|
|
2976
3011
|
/**
|
|
@@ -2992,15 +3027,15 @@ export namespace dataform_v1beta1 {
|
|
|
2992
3027
|
}
|
|
2993
3028
|
export interface Params$Resource$Projects$Locations$Queryuserrootcontents extends StandardParameters {
|
|
2994
3029
|
/**
|
|
2995
|
-
* Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example:
|
|
3030
|
+
* Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example: * `filter="display_name="MyFolder""`
|
|
2996
3031
|
*/
|
|
2997
3032
|
filter?: string;
|
|
2998
3033
|
/**
|
|
2999
|
-
* Required. Location of the user root folder
|
|
3034
|
+
* Required. Location of the user root folder to list contents for. Format: projects/x/locations/x
|
|
3000
3035
|
*/
|
|
3001
3036
|
location?: string;
|
|
3002
3037
|
/**
|
|
3003
|
-
* Optional. Field to additionally sort results by. Will order Folders before Repositories, and then by `order_by` in ascending order. Supported keywords: display_name (default), created_at, last_modified_at. Examples:
|
|
3038
|
+
* Optional. Field to additionally sort results by. Will order Folders before Repositories, and then by `order_by` in ascending order. Supported keywords: display_name (default), created_at, last_modified_at. Examples: * `orderBy="display_name"` * `orderBy="display_name desc"`
|
|
3004
3039
|
*/
|
|
3005
3040
|
orderBy?: string;
|
|
3006
3041
|
/**
|
|
@@ -3068,7 +3103,7 @@ export namespace dataform_v1beta1 {
|
|
|
3068
3103
|
*
|
|
3069
3104
|
* // Do the magic
|
|
3070
3105
|
* const res = await dataform.projects.locations.folders.create({
|
|
3071
|
-
* // The ID to use for the Folder, which will become the final component of the Folder's resource name.
|
|
3106
|
+
* // Deprecated: This field is not used. The resource name is generated automatically. The ID to use for the Folder, which will become the final component of the Folder's resource name.
|
|
3072
3107
|
* folderId: 'placeholder-value',
|
|
3073
3108
|
* // Required. The location in which to create the Folder. Must be in the format `projects/x/locations/x`.
|
|
3074
3109
|
* parent: 'projects/my-project/locations/my-location',
|
|
@@ -3333,6 +3368,158 @@ export namespace dataform_v1beta1 {
|
|
|
3333
3368
|
}
|
|
3334
3369
|
}
|
|
3335
3370
|
|
|
3371
|
+
/**
|
|
3372
|
+
* Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and WorkflowConfigs).
|
|
3373
|
+
* @example
|
|
3374
|
+
* ```js
|
|
3375
|
+
* // Before running the sample:
|
|
3376
|
+
* // - Enable the API at:
|
|
3377
|
+
* // https://console.developers.google.com/apis/api/dataform.googleapis.com
|
|
3378
|
+
* // - Login into gcloud by running:
|
|
3379
|
+
* // ```sh
|
|
3380
|
+
* // $ gcloud auth application-default login
|
|
3381
|
+
* // ```
|
|
3382
|
+
* // - Install the npm module by running:
|
|
3383
|
+
* // ```sh
|
|
3384
|
+
* // $ npm install googleapis
|
|
3385
|
+
* // ```
|
|
3386
|
+
*
|
|
3387
|
+
* const {google} = require('googleapis');
|
|
3388
|
+
* const dataform = google.dataform('v1beta1');
|
|
3389
|
+
*
|
|
3390
|
+
* async function main() {
|
|
3391
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3392
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3393
|
+
* scopes: [
|
|
3394
|
+
* 'https://www.googleapis.com/auth/bigquery',
|
|
3395
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3396
|
+
* ],
|
|
3397
|
+
* });
|
|
3398
|
+
*
|
|
3399
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3400
|
+
* const authClient = await auth.getClient();
|
|
3401
|
+
* google.options({auth: authClient});
|
|
3402
|
+
*
|
|
3403
|
+
* // Do the magic
|
|
3404
|
+
* const res = await dataform.projects.locations.folders.deleteTree({
|
|
3405
|
+
* // Required. The Folder's name. Format: projects/{project\}/locations/{location\}/folders/{folder\}
|
|
3406
|
+
* name: 'projects/my-project/locations/my-location/folders/my-folder',
|
|
3407
|
+
*
|
|
3408
|
+
* // Request body metadata
|
|
3409
|
+
* requestBody: {
|
|
3410
|
+
* // request body parameters
|
|
3411
|
+
* // {
|
|
3412
|
+
* // "force": false
|
|
3413
|
+
* // }
|
|
3414
|
+
* },
|
|
3415
|
+
* });
|
|
3416
|
+
* console.log(res.data);
|
|
3417
|
+
*
|
|
3418
|
+
* // Example response
|
|
3419
|
+
* // {
|
|
3420
|
+
* // "done": false,
|
|
3421
|
+
* // "error": {},
|
|
3422
|
+
* // "metadata": {},
|
|
3423
|
+
* // "name": "my_name",
|
|
3424
|
+
* // "response": {}
|
|
3425
|
+
* // }
|
|
3426
|
+
* }
|
|
3427
|
+
*
|
|
3428
|
+
* main().catch(e => {
|
|
3429
|
+
* console.error(e);
|
|
3430
|
+
* throw e;
|
|
3431
|
+
* });
|
|
3432
|
+
*
|
|
3433
|
+
* ```
|
|
3434
|
+
*
|
|
3435
|
+
* @param params - Parameters for request
|
|
3436
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3437
|
+
* @param callback - Optional callback that handles the response.
|
|
3438
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3439
|
+
*/
|
|
3440
|
+
deleteTree(
|
|
3441
|
+
params: Params$Resource$Projects$Locations$Folders$Deletetree,
|
|
3442
|
+
options: StreamMethodOptions
|
|
3443
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3444
|
+
deleteTree(
|
|
3445
|
+
params?: Params$Resource$Projects$Locations$Folders$Deletetree,
|
|
3446
|
+
options?: MethodOptions
|
|
3447
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
3448
|
+
deleteTree(
|
|
3449
|
+
params: Params$Resource$Projects$Locations$Folders$Deletetree,
|
|
3450
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3451
|
+
callback: BodyResponseCallback<Readable>
|
|
3452
|
+
): void;
|
|
3453
|
+
deleteTree(
|
|
3454
|
+
params: Params$Resource$Projects$Locations$Folders$Deletetree,
|
|
3455
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3456
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3457
|
+
): void;
|
|
3458
|
+
deleteTree(
|
|
3459
|
+
params: Params$Resource$Projects$Locations$Folders$Deletetree,
|
|
3460
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3461
|
+
): void;
|
|
3462
|
+
deleteTree(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3463
|
+
deleteTree(
|
|
3464
|
+
paramsOrCallback?:
|
|
3465
|
+
| Params$Resource$Projects$Locations$Folders$Deletetree
|
|
3466
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3467
|
+
| BodyResponseCallback<Readable>,
|
|
3468
|
+
optionsOrCallback?:
|
|
3469
|
+
| MethodOptions
|
|
3470
|
+
| StreamMethodOptions
|
|
3471
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3472
|
+
| BodyResponseCallback<Readable>,
|
|
3473
|
+
callback?:
|
|
3474
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3475
|
+
| BodyResponseCallback<Readable>
|
|
3476
|
+
):
|
|
3477
|
+
| void
|
|
3478
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
3479
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3480
|
+
let params = (paramsOrCallback ||
|
|
3481
|
+
{}) as Params$Resource$Projects$Locations$Folders$Deletetree;
|
|
3482
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3483
|
+
|
|
3484
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3485
|
+
callback = paramsOrCallback;
|
|
3486
|
+
params = {} as Params$Resource$Projects$Locations$Folders$Deletetree;
|
|
3487
|
+
options = {};
|
|
3488
|
+
}
|
|
3489
|
+
|
|
3490
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3491
|
+
callback = optionsOrCallback;
|
|
3492
|
+
options = {};
|
|
3493
|
+
}
|
|
3494
|
+
|
|
3495
|
+
const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/';
|
|
3496
|
+
const parameters = {
|
|
3497
|
+
options: Object.assign(
|
|
3498
|
+
{
|
|
3499
|
+
url: (rootUrl + '/v1beta1/{+name}:deleteTree').replace(
|
|
3500
|
+
/([^:]\/)\/+/g,
|
|
3501
|
+
'$1'
|
|
3502
|
+
),
|
|
3503
|
+
method: 'POST',
|
|
3504
|
+
apiVersion: '',
|
|
3505
|
+
},
|
|
3506
|
+
options
|
|
3507
|
+
),
|
|
3508
|
+
params,
|
|
3509
|
+
requiredParams: ['name'],
|
|
3510
|
+
pathParams: ['name'],
|
|
3511
|
+
context: this.context,
|
|
3512
|
+
};
|
|
3513
|
+
if (callback) {
|
|
3514
|
+
createAPIRequest<Schema$Operation>(
|
|
3515
|
+
parameters,
|
|
3516
|
+
callback as BodyResponseCallback<unknown>
|
|
3517
|
+
);
|
|
3518
|
+
} else {
|
|
3519
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3520
|
+
}
|
|
3521
|
+
}
|
|
3522
|
+
|
|
3336
3523
|
/**
|
|
3337
3524
|
* Fetches a single Folder.
|
|
3338
3525
|
* @example
|
|
@@ -3968,11 +4155,11 @@ export namespace dataform_v1beta1 {
|
|
|
3968
4155
|
*
|
|
3969
4156
|
* // Do the magic
|
|
3970
4157
|
* const res = await dataform.projects.locations.folders.queryFolderContents({
|
|
3971
|
-
* // Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example:
|
|
4158
|
+
* // Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example: * `filter="display_name="MyFolder""`
|
|
3972
4159
|
* filter: 'placeholder-value',
|
|
3973
|
-
* // Required.
|
|
4160
|
+
* // Required. Resource name of the Folder to list contents for. Format: projects/x/locations/x/folders/x
|
|
3974
4161
|
* folder: 'projects/my-project/locations/my-location/folders/my-folder',
|
|
3975
|
-
* // Optional. Field to additionally sort results by. Will order Folders before Repositories, and then by `order_by` in ascending order. Supported keywords: display_name (default), create_time, last_modified_time. Examples:
|
|
4162
|
+
* // Optional. Field to additionally sort results by. Will order Folders before Repositories, and then by `order_by` in ascending order. Supported keywords: display_name (default), create_time, last_modified_time. Examples: * `orderBy="display_name"` * `orderBy="display_name desc"`
|
|
3976
4163
|
* orderBy: 'placeholder-value',
|
|
3977
4164
|
* // Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
|
|
3978
4165
|
* pageSize: 'placeholder-value',
|
|
@@ -4394,7 +4581,7 @@ export namespace dataform_v1beta1 {
|
|
|
4394
4581
|
|
|
4395
4582
|
export interface Params$Resource$Projects$Locations$Folders$Create extends StandardParameters {
|
|
4396
4583
|
/**
|
|
4397
|
-
* The ID to use for the Folder, which will become the final component of the Folder's resource name.
|
|
4584
|
+
* Deprecated: This field is not used. The resource name is generated automatically. The ID to use for the Folder, which will become the final component of the Folder's resource name.
|
|
4398
4585
|
*/
|
|
4399
4586
|
folderId?: string;
|
|
4400
4587
|
/**
|
|
@@ -4413,6 +4600,17 @@ export namespace dataform_v1beta1 {
|
|
|
4413
4600
|
*/
|
|
4414
4601
|
name?: string;
|
|
4415
4602
|
}
|
|
4603
|
+
export interface Params$Resource$Projects$Locations$Folders$Deletetree extends StandardParameters {
|
|
4604
|
+
/**
|
|
4605
|
+
* Required. The Folder's name. Format: projects/{project\}/locations/{location\}/folders/{folder\}
|
|
4606
|
+
*/
|
|
4607
|
+
name?: string;
|
|
4608
|
+
|
|
4609
|
+
/**
|
|
4610
|
+
* Request body metadata
|
|
4611
|
+
*/
|
|
4612
|
+
requestBody?: Schema$DeleteFolderTreeRequest;
|
|
4613
|
+
}
|
|
4416
4614
|
export interface Params$Resource$Projects$Locations$Folders$Get extends StandardParameters {
|
|
4417
4615
|
/**
|
|
4418
4616
|
* Required. The Folder's name.
|
|
@@ -4457,15 +4655,15 @@ export namespace dataform_v1beta1 {
|
|
|
4457
4655
|
}
|
|
4458
4656
|
export interface Params$Resource$Projects$Locations$Folders$Queryfoldercontents extends StandardParameters {
|
|
4459
4657
|
/**
|
|
4460
|
-
* Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example:
|
|
4658
|
+
* Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example: * `filter="display_name="MyFolder""`
|
|
4461
4659
|
*/
|
|
4462
4660
|
filter?: string;
|
|
4463
4661
|
/**
|
|
4464
|
-
* Required.
|
|
4662
|
+
* Required. Resource name of the Folder to list contents for. Format: projects/x/locations/x/folders/x
|
|
4465
4663
|
*/
|
|
4466
4664
|
folder?: string;
|
|
4467
4665
|
/**
|
|
4468
|
-
* Optional. Field to additionally sort results by. Will order Folders before Repositories, and then by `order_by` in ascending order. Supported keywords: display_name (default), create_time, last_modified_time. Examples:
|
|
4666
|
+
* Optional. Field to additionally sort results by. Will order Folders before Repositories, and then by `order_by` in ascending order. Supported keywords: display_name (default), create_time, last_modified_time. Examples: * `orderBy="display_name"` * `orderBy="display_name desc"`
|
|
4469
4667
|
*/
|
|
4470
4668
|
orderBy?: string;
|
|
4471
4669
|
/**
|
|
@@ -7863,7 +8061,7 @@ export namespace dataform_v1beta1 {
|
|
|
7863
8061
|
* // Do the magic
|
|
7864
8062
|
* const res =
|
|
7865
8063
|
* await dataform.projects.locations.repositories.compilationResults.get({
|
|
7866
|
-
* // Required. The compilation result's name.
|
|
8064
|
+
* // Required. The compilation result's name. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:GetCompilationResultRequest)
|
|
7867
8065
|
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie/compilationResults/my-compilationResult',
|
|
7868
8066
|
* });
|
|
7869
8067
|
* console.log(res.data);
|
|
@@ -8013,7 +8211,7 @@ export namespace dataform_v1beta1 {
|
|
|
8013
8211
|
* // Do the magic
|
|
8014
8212
|
* const res =
|
|
8015
8213
|
* await dataform.projects.locations.repositories.compilationResults.list({
|
|
8016
|
-
* // Optional. Filter for the returned list.
|
|
8214
|
+
* // Optional. Filter for the returned list. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:ListCompilationResultsRequest)
|
|
8017
8215
|
* filter: 'placeholder-value',
|
|
8018
8216
|
* // Optional. This field only supports ordering by `name` and `create_time`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field.
|
|
8019
8217
|
* orderBy: 'placeholder-value',
|
|
@@ -8310,13 +8508,13 @@ export namespace dataform_v1beta1 {
|
|
|
8310
8508
|
}
|
|
8311
8509
|
export interface Params$Resource$Projects$Locations$Repositories$Compilationresults$Get extends StandardParameters {
|
|
8312
8510
|
/**
|
|
8313
|
-
* Required. The compilation result's name.
|
|
8511
|
+
* Required. The compilation result's name. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:GetCompilationResultRequest)
|
|
8314
8512
|
*/
|
|
8315
8513
|
name?: string;
|
|
8316
8514
|
}
|
|
8317
8515
|
export interface Params$Resource$Projects$Locations$Repositories$Compilationresults$List extends StandardParameters {
|
|
8318
8516
|
/**
|
|
8319
|
-
* Optional. Filter for the returned list.
|
|
8517
|
+
* Optional. Filter for the returned list. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:ListCompilationResultsRequest)
|
|
8320
8518
|
*/
|
|
8321
8519
|
filter?: string;
|
|
8322
8520
|
/**
|
|
@@ -8399,7 +8597,7 @@ export namespace dataform_v1beta1 {
|
|
|
8399
8597
|
* // Required. The repository in which to create the release config. Must be in the format `projects/x/locations/x/repositories/x`.
|
|
8400
8598
|
* parent:
|
|
8401
8599
|
* 'projects/my-project/locations/my-location/repositories/my-repositorie',
|
|
8402
|
-
* // Required. The ID to use for the release config, which will become the final component of the release config's resource name.
|
|
8600
|
+
* // Required. The ID to use for the release config, which will become the final component of the release config's resource name. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:CreateReleaseConfigRequest)
|
|
8403
8601
|
* releaseConfigId: 'placeholder-value',
|
|
8404
8602
|
*
|
|
8405
8603
|
* // Request body metadata
|
|
@@ -8565,7 +8763,7 @@ export namespace dataform_v1beta1 {
|
|
|
8565
8763
|
* // Do the magic
|
|
8566
8764
|
* const res =
|
|
8567
8765
|
* await dataform.projects.locations.repositories.releaseConfigs.delete({
|
|
8568
|
-
* // Required. The release config's name.
|
|
8766
|
+
* // Required. The release config's name. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:DeleteReleaseConfigRequest)
|
|
8569
8767
|
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie/releaseConfigs/my-releaseConfig',
|
|
8570
8768
|
* });
|
|
8571
8769
|
* console.log(res.data);
|
|
@@ -8702,7 +8900,7 @@ export namespace dataform_v1beta1 {
|
|
|
8702
8900
|
* // Do the magic
|
|
8703
8901
|
* const res = await dataform.projects.locations.repositories.releaseConfigs.get(
|
|
8704
8902
|
* {
|
|
8705
|
-
* // Required. The release config's name.
|
|
8903
|
+
* // Required. The release config's name. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:GetReleaseConfigRequest)
|
|
8706
8904
|
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie/releaseConfigs/my-releaseConfig',
|
|
8707
8905
|
* },
|
|
8708
8906
|
* );
|
|
@@ -8852,7 +9050,7 @@ export namespace dataform_v1beta1 {
|
|
|
8852
9050
|
* await dataform.projects.locations.repositories.releaseConfigs.list({
|
|
8853
9051
|
* // Optional. Maximum number of release configs to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
|
|
8854
9052
|
* pageSize: 'placeholder-value',
|
|
8855
|
-
* // Optional. Page token received from a previous `ListReleaseConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReleaseConfigs`, with the exception of `page_size`, must match the call that provided the page token.
|
|
9053
|
+
* // Optional. Page token received from a previous `ListReleaseConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReleaseConfigs`, with the exception of `page_size`, must match the call that provided the page token. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:ListReleaseConfigsRequest)
|
|
8856
9054
|
* pageToken: 'placeholder-value',
|
|
8857
9055
|
* // Required. The repository in which to list release configs. Must be in the format `projects/x/locations/x/repositories/x`.
|
|
8858
9056
|
* parent:
|
|
@@ -9140,7 +9338,7 @@ export namespace dataform_v1beta1 {
|
|
|
9140
9338
|
*/
|
|
9141
9339
|
parent?: string;
|
|
9142
9340
|
/**
|
|
9143
|
-
* Required. The ID to use for the release config, which will become the final component of the release config's resource name.
|
|
9341
|
+
* Required. The ID to use for the release config, which will become the final component of the release config's resource name. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:CreateReleaseConfigRequest)
|
|
9144
9342
|
*/
|
|
9145
9343
|
releaseConfigId?: string;
|
|
9146
9344
|
|
|
@@ -9151,13 +9349,13 @@ export namespace dataform_v1beta1 {
|
|
|
9151
9349
|
}
|
|
9152
9350
|
export interface Params$Resource$Projects$Locations$Repositories$Releaseconfigs$Delete extends StandardParameters {
|
|
9153
9351
|
/**
|
|
9154
|
-
* Required. The release config's name.
|
|
9352
|
+
* Required. The release config's name. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:DeleteReleaseConfigRequest)
|
|
9155
9353
|
*/
|
|
9156
9354
|
name?: string;
|
|
9157
9355
|
}
|
|
9158
9356
|
export interface Params$Resource$Projects$Locations$Repositories$Releaseconfigs$Get extends StandardParameters {
|
|
9159
9357
|
/**
|
|
9160
|
-
* Required. The release config's name.
|
|
9358
|
+
* Required. The release config's name. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:GetReleaseConfigRequest)
|
|
9161
9359
|
*/
|
|
9162
9360
|
name?: string;
|
|
9163
9361
|
}
|
|
@@ -9167,7 +9365,7 @@ export namespace dataform_v1beta1 {
|
|
|
9167
9365
|
*/
|
|
9168
9366
|
pageSize?: number;
|
|
9169
9367
|
/**
|
|
9170
|
-
* Optional. Page token received from a previous `ListReleaseConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReleaseConfigs`, with the exception of `page_size`, must match the call that provided the page token.
|
|
9368
|
+
* Optional. Page token received from a previous `ListReleaseConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReleaseConfigs`, with the exception of `page_size`, must match the call that provided the page token. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:ListReleaseConfigsRequest)
|
|
9171
9369
|
*/
|
|
9172
9370
|
pageToken?: string;
|
|
9173
9371
|
/**
|
|
@@ -13339,6 +13537,8 @@ export namespace dataform_v1beta1 {
|
|
|
13339
13537
|
* pageToken: 'placeholder-value',
|
|
13340
13538
|
* // Optional. The directory's full path including directory name, relative to the workspace root. If left unset, the workspace root is used.
|
|
13341
13539
|
* path: 'placeholder-value',
|
|
13540
|
+
* // Optional. Specifies the metadata to return for each directory entry. If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by CMEK-protected workspaces.
|
|
13541
|
+
* view: 'placeholder-value',
|
|
13342
13542
|
* // Required. The workspace's name.
|
|
13343
13543
|
* workspace:
|
|
13344
13544
|
* 'projects/my-project/locations/my-location/repositories/my-repositorie/workspaces/my-workspace',
|
|
@@ -14845,6 +15045,10 @@ export namespace dataform_v1beta1 {
|
|
|
14845
15045
|
* Optional. The directory's full path including directory name, relative to the workspace root. If left unset, the workspace root is used.
|
|
14846
15046
|
*/
|
|
14847
15047
|
path?: string;
|
|
15048
|
+
/**
|
|
15049
|
+
* Optional. Specifies the metadata to return for each directory entry. If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by CMEK-protected workspaces.
|
|
15050
|
+
*/
|
|
15051
|
+
view?: string;
|
|
14848
15052
|
/**
|
|
14849
15053
|
* Required. The workspace's name.
|
|
14850
15054
|
*/
|
|
@@ -14991,7 +15195,7 @@ export namespace dataform_v1beta1 {
|
|
|
14991
15195
|
* const res = await dataform.projects.locations.teamFolders.create({
|
|
14992
15196
|
* // Required. The location in which to create the TeamFolder. Must be in the format `projects/x/locations/x`.
|
|
14993
15197
|
* parent: 'projects/my-project/locations/my-location',
|
|
14994
|
-
* // The ID to use for the TeamFolder, which will become the final component of the TeamFolder's resource name.
|
|
15198
|
+
* // Deprecated: This field is not used. The resource name is generated automatically. The ID to use for the TeamFolder, which will become the final component of the TeamFolder's resource name.
|
|
14995
15199
|
* teamFolderId: 'placeholder-value',
|
|
14996
15200
|
*
|
|
14997
15201
|
* // Request body metadata
|
|
@@ -15250,6 +15454,159 @@ export namespace dataform_v1beta1 {
|
|
|
15250
15454
|
}
|
|
15251
15455
|
}
|
|
15252
15456
|
|
|
15457
|
+
/**
|
|
15458
|
+
* Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and WorkflowConfigs).
|
|
15459
|
+
* @example
|
|
15460
|
+
* ```js
|
|
15461
|
+
* // Before running the sample:
|
|
15462
|
+
* // - Enable the API at:
|
|
15463
|
+
* // https://console.developers.google.com/apis/api/dataform.googleapis.com
|
|
15464
|
+
* // - Login into gcloud by running:
|
|
15465
|
+
* // ```sh
|
|
15466
|
+
* // $ gcloud auth application-default login
|
|
15467
|
+
* // ```
|
|
15468
|
+
* // - Install the npm module by running:
|
|
15469
|
+
* // ```sh
|
|
15470
|
+
* // $ npm install googleapis
|
|
15471
|
+
* // ```
|
|
15472
|
+
*
|
|
15473
|
+
* const {google} = require('googleapis');
|
|
15474
|
+
* const dataform = google.dataform('v1beta1');
|
|
15475
|
+
*
|
|
15476
|
+
* async function main() {
|
|
15477
|
+
* const auth = new google.auth.GoogleAuth({
|
|
15478
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
15479
|
+
* scopes: [
|
|
15480
|
+
* 'https://www.googleapis.com/auth/bigquery',
|
|
15481
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
15482
|
+
* ],
|
|
15483
|
+
* });
|
|
15484
|
+
*
|
|
15485
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
15486
|
+
* const authClient = await auth.getClient();
|
|
15487
|
+
* google.options({auth: authClient});
|
|
15488
|
+
*
|
|
15489
|
+
* // Do the magic
|
|
15490
|
+
* const res = await dataform.projects.locations.teamFolders.deleteTree({
|
|
15491
|
+
* // Required. The TeamFolder's name. Format: projects/{project\}/locations/{location\}/teamFolders/{team_folder\}
|
|
15492
|
+
* name: 'projects/my-project/locations/my-location/teamFolders/my-teamFolder',
|
|
15493
|
+
*
|
|
15494
|
+
* // Request body metadata
|
|
15495
|
+
* requestBody: {
|
|
15496
|
+
* // request body parameters
|
|
15497
|
+
* // {
|
|
15498
|
+
* // "force": false
|
|
15499
|
+
* // }
|
|
15500
|
+
* },
|
|
15501
|
+
* });
|
|
15502
|
+
* console.log(res.data);
|
|
15503
|
+
*
|
|
15504
|
+
* // Example response
|
|
15505
|
+
* // {
|
|
15506
|
+
* // "done": false,
|
|
15507
|
+
* // "error": {},
|
|
15508
|
+
* // "metadata": {},
|
|
15509
|
+
* // "name": "my_name",
|
|
15510
|
+
* // "response": {}
|
|
15511
|
+
* // }
|
|
15512
|
+
* }
|
|
15513
|
+
*
|
|
15514
|
+
* main().catch(e => {
|
|
15515
|
+
* console.error(e);
|
|
15516
|
+
* throw e;
|
|
15517
|
+
* });
|
|
15518
|
+
*
|
|
15519
|
+
* ```
|
|
15520
|
+
*
|
|
15521
|
+
* @param params - Parameters for request
|
|
15522
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
15523
|
+
* @param callback - Optional callback that handles the response.
|
|
15524
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
15525
|
+
*/
|
|
15526
|
+
deleteTree(
|
|
15527
|
+
params: Params$Resource$Projects$Locations$Teamfolders$Deletetree,
|
|
15528
|
+
options: StreamMethodOptions
|
|
15529
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
15530
|
+
deleteTree(
|
|
15531
|
+
params?: Params$Resource$Projects$Locations$Teamfolders$Deletetree,
|
|
15532
|
+
options?: MethodOptions
|
|
15533
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
15534
|
+
deleteTree(
|
|
15535
|
+
params: Params$Resource$Projects$Locations$Teamfolders$Deletetree,
|
|
15536
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
15537
|
+
callback: BodyResponseCallback<Readable>
|
|
15538
|
+
): void;
|
|
15539
|
+
deleteTree(
|
|
15540
|
+
params: Params$Resource$Projects$Locations$Teamfolders$Deletetree,
|
|
15541
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
15542
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
15543
|
+
): void;
|
|
15544
|
+
deleteTree(
|
|
15545
|
+
params: Params$Resource$Projects$Locations$Teamfolders$Deletetree,
|
|
15546
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
15547
|
+
): void;
|
|
15548
|
+
deleteTree(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
15549
|
+
deleteTree(
|
|
15550
|
+
paramsOrCallback?:
|
|
15551
|
+
| Params$Resource$Projects$Locations$Teamfolders$Deletetree
|
|
15552
|
+
| BodyResponseCallback<Schema$Operation>
|
|
15553
|
+
| BodyResponseCallback<Readable>,
|
|
15554
|
+
optionsOrCallback?:
|
|
15555
|
+
| MethodOptions
|
|
15556
|
+
| StreamMethodOptions
|
|
15557
|
+
| BodyResponseCallback<Schema$Operation>
|
|
15558
|
+
| BodyResponseCallback<Readable>,
|
|
15559
|
+
callback?:
|
|
15560
|
+
| BodyResponseCallback<Schema$Operation>
|
|
15561
|
+
| BodyResponseCallback<Readable>
|
|
15562
|
+
):
|
|
15563
|
+
| void
|
|
15564
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
15565
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
15566
|
+
let params = (paramsOrCallback ||
|
|
15567
|
+
{}) as Params$Resource$Projects$Locations$Teamfolders$Deletetree;
|
|
15568
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
15569
|
+
|
|
15570
|
+
if (typeof paramsOrCallback === 'function') {
|
|
15571
|
+
callback = paramsOrCallback;
|
|
15572
|
+
params =
|
|
15573
|
+
{} as Params$Resource$Projects$Locations$Teamfolders$Deletetree;
|
|
15574
|
+
options = {};
|
|
15575
|
+
}
|
|
15576
|
+
|
|
15577
|
+
if (typeof optionsOrCallback === 'function') {
|
|
15578
|
+
callback = optionsOrCallback;
|
|
15579
|
+
options = {};
|
|
15580
|
+
}
|
|
15581
|
+
|
|
15582
|
+
const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/';
|
|
15583
|
+
const parameters = {
|
|
15584
|
+
options: Object.assign(
|
|
15585
|
+
{
|
|
15586
|
+
url: (rootUrl + '/v1beta1/{+name}:deleteTree').replace(
|
|
15587
|
+
/([^:]\/)\/+/g,
|
|
15588
|
+
'$1'
|
|
15589
|
+
),
|
|
15590
|
+
method: 'POST',
|
|
15591
|
+
apiVersion: '',
|
|
15592
|
+
},
|
|
15593
|
+
options
|
|
15594
|
+
),
|
|
15595
|
+
params,
|
|
15596
|
+
requiredParams: ['name'],
|
|
15597
|
+
pathParams: ['name'],
|
|
15598
|
+
context: this.context,
|
|
15599
|
+
};
|
|
15600
|
+
if (callback) {
|
|
15601
|
+
createAPIRequest<Schema$Operation>(
|
|
15602
|
+
parameters,
|
|
15603
|
+
callback as BodyResponseCallback<unknown>
|
|
15604
|
+
);
|
|
15605
|
+
} else {
|
|
15606
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
15607
|
+
}
|
|
15608
|
+
}
|
|
15609
|
+
|
|
15253
15610
|
/**
|
|
15254
15611
|
* Fetches a single TeamFolder.
|
|
15255
15612
|
* @example
|
|
@@ -15729,15 +16086,15 @@ export namespace dataform_v1beta1 {
|
|
|
15729
16086
|
*
|
|
15730
16087
|
* // Do the magic
|
|
15731
16088
|
* const res = await dataform.projects.locations.teamFolders.queryContents({
|
|
15732
|
-
* // Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example:
|
|
16089
|
+
* // Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example: * `filter="display_name="MyFolder""`
|
|
15733
16090
|
* filter: 'placeholder-value',
|
|
15734
|
-
* // Optional. Field to additionally sort results by. Will order Folders before Repositories, and then by `order_by` in ascending order. Supported keywords: `display_name` (default), `create_time`, last_modified_time. Examples:
|
|
16091
|
+
* // Optional. Field to additionally sort results by. Will order Folders before Repositories, and then by `order_by` in ascending order. Supported keywords: `display_name` (default), `create_time`, last_modified_time. Examples: * `orderBy="display_name"` * `orderBy="display_name desc"`
|
|
15735
16092
|
* orderBy: 'placeholder-value',
|
|
15736
16093
|
* // Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
|
|
15737
16094
|
* pageSize: 'placeholder-value',
|
|
15738
16095
|
* // Optional. Page token received from a previous `QueryTeamFolderContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryTeamFolderContents`, with the exception of `page_size`, must match the call that provided the page token.
|
|
15739
16096
|
* pageToken: 'placeholder-value',
|
|
15740
|
-
* // Required.
|
|
16097
|
+
* // Required. Resource name of the TeamFolder to list contents for. Format: `projects/x/locations/x/teamFolders/x`.
|
|
15741
16098
|
* teamFolder:
|
|
15742
16099
|
* 'projects/my-project/locations/my-location/teamFolders/my-teamFolder',
|
|
15743
16100
|
* });
|
|
@@ -15886,11 +16243,11 @@ export namespace dataform_v1beta1 {
|
|
|
15886
16243
|
*
|
|
15887
16244
|
* // Do the magic
|
|
15888
16245
|
* const res = await dataform.projects.locations.teamFolders.search({
|
|
15889
|
-
* // Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example:
|
|
16246
|
+
* // Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example: * `filter="display_name="MyFolder""`
|
|
15890
16247
|
* filter: 'placeholder-value',
|
|
15891
16248
|
* // Required. Location in which to query TeamFolders. Format: `projects/x/locations/x`.
|
|
15892
16249
|
* location: 'projects/my-project/locations/my-location',
|
|
15893
|
-
* // Optional. Field to additionally sort results by. Supported keywords: `display_name` (default), `create_time`, `last_modified_time`. Examples:
|
|
16250
|
+
* // Optional. Field to additionally sort results by. Supported keywords: `display_name` (default), `create_time`, `last_modified_time`. Examples: * `orderBy="display_name"` * `orderBy="display_name desc"`
|
|
15894
16251
|
* orderBy: 'placeholder-value',
|
|
15895
16252
|
* // Optional. Maximum number of TeamFolders to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
|
|
15896
16253
|
* pageSize: 'placeholder-value',
|
|
@@ -16318,7 +16675,7 @@ export namespace dataform_v1beta1 {
|
|
|
16318
16675
|
*/
|
|
16319
16676
|
parent?: string;
|
|
16320
16677
|
/**
|
|
16321
|
-
* The ID to use for the TeamFolder, which will become the final component of the TeamFolder's resource name.
|
|
16678
|
+
* Deprecated: This field is not used. The resource name is generated automatically. The ID to use for the TeamFolder, which will become the final component of the TeamFolder's resource name.
|
|
16322
16679
|
*/
|
|
16323
16680
|
teamFolderId?: string;
|
|
16324
16681
|
|
|
@@ -16333,6 +16690,17 @@ export namespace dataform_v1beta1 {
|
|
|
16333
16690
|
*/
|
|
16334
16691
|
name?: string;
|
|
16335
16692
|
}
|
|
16693
|
+
export interface Params$Resource$Projects$Locations$Teamfolders$Deletetree extends StandardParameters {
|
|
16694
|
+
/**
|
|
16695
|
+
* Required. The TeamFolder's name. Format: projects/{project\}/locations/{location\}/teamFolders/{team_folder\}
|
|
16696
|
+
*/
|
|
16697
|
+
name?: string;
|
|
16698
|
+
|
|
16699
|
+
/**
|
|
16700
|
+
* Request body metadata
|
|
16701
|
+
*/
|
|
16702
|
+
requestBody?: Schema$DeleteTeamFolderTreeRequest;
|
|
16703
|
+
}
|
|
16336
16704
|
export interface Params$Resource$Projects$Locations$Teamfolders$Get extends StandardParameters {
|
|
16337
16705
|
/**
|
|
16338
16706
|
* Required. The TeamFolder's name.
|
|
@@ -16366,11 +16734,11 @@ export namespace dataform_v1beta1 {
|
|
|
16366
16734
|
}
|
|
16367
16735
|
export interface Params$Resource$Projects$Locations$Teamfolders$Querycontents extends StandardParameters {
|
|
16368
16736
|
/**
|
|
16369
|
-
* Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example:
|
|
16737
|
+
* Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example: * `filter="display_name="MyFolder""`
|
|
16370
16738
|
*/
|
|
16371
16739
|
filter?: string;
|
|
16372
16740
|
/**
|
|
16373
|
-
* Optional. Field to additionally sort results by. Will order Folders before Repositories, and then by `order_by` in ascending order. Supported keywords: `display_name` (default), `create_time`, last_modified_time. Examples:
|
|
16741
|
+
* Optional. Field to additionally sort results by. Will order Folders before Repositories, and then by `order_by` in ascending order. Supported keywords: `display_name` (default), `create_time`, last_modified_time. Examples: * `orderBy="display_name"` * `orderBy="display_name desc"`
|
|
16374
16742
|
*/
|
|
16375
16743
|
orderBy?: string;
|
|
16376
16744
|
/**
|
|
@@ -16382,13 +16750,13 @@ export namespace dataform_v1beta1 {
|
|
|
16382
16750
|
*/
|
|
16383
16751
|
pageToken?: string;
|
|
16384
16752
|
/**
|
|
16385
|
-
* Required.
|
|
16753
|
+
* Required. Resource name of the TeamFolder to list contents for. Format: `projects/x/locations/x/teamFolders/x`.
|
|
16386
16754
|
*/
|
|
16387
16755
|
teamFolder?: string;
|
|
16388
16756
|
}
|
|
16389
16757
|
export interface Params$Resource$Projects$Locations$Teamfolders$Search extends StandardParameters {
|
|
16390
16758
|
/**
|
|
16391
|
-
* Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example:
|
|
16759
|
+
* Optional. Optional filtering for the returned list. Filtering is currently only supported on the `display_name` field. Example: * `filter="display_name="MyFolder""`
|
|
16392
16760
|
*/
|
|
16393
16761
|
filter?: string;
|
|
16394
16762
|
/**
|
|
@@ -16396,7 +16764,7 @@ export namespace dataform_v1beta1 {
|
|
|
16396
16764
|
*/
|
|
16397
16765
|
location?: string;
|
|
16398
16766
|
/**
|
|
16399
|
-
* Optional. Field to additionally sort results by. Supported keywords: `display_name` (default), `create_time`, `last_modified_time`. Examples:
|
|
16767
|
+
* Optional. Field to additionally sort results by. Supported keywords: `display_name` (default), `create_time`, `last_modified_time`. Examples: * `orderBy="display_name"` * `orderBy="display_name desc"`
|
|
16400
16768
|
*/
|
|
16401
16769
|
orderBy?: string;
|
|
16402
16770
|
/**
|