@googleapis/dataform 17.1.0 → 20.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 +98 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1beta1.d.ts +526 -3
- package/build/v1beta1.js +165 -0
- package/build/v1beta1.js.map +1 -1
- package/package.json +3 -3
- package/v1beta1.ts +993 -58
package/build/v1beta1.d.ts
CHANGED
|
@@ -194,6 +194,19 @@ export declare namespace dataform_v1beta1 {
|
|
|
194
194
|
*/
|
|
195
195
|
role?: string | null;
|
|
196
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* Contains metadata about a branch.
|
|
199
|
+
*/
|
|
200
|
+
export interface Schema$BranchMetadata {
|
|
201
|
+
/**
|
|
202
|
+
* The branch name.
|
|
203
|
+
*/
|
|
204
|
+
branchName?: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* The last commit on the branch.
|
|
207
|
+
*/
|
|
208
|
+
lastCommit?: Schema$CommitLogEntry;
|
|
209
|
+
}
|
|
197
210
|
/**
|
|
198
211
|
* The request message for Operations.CancelOperation.
|
|
199
212
|
*/
|
|
@@ -209,6 +222,23 @@ export declare namespace dataform_v1beta1 {
|
|
|
209
222
|
*/
|
|
210
223
|
export interface Schema$CancelWorkflowInvocationResponse {
|
|
211
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* `CheckoutWorkspaceBranch` request message.
|
|
227
|
+
*/
|
|
228
|
+
export interface Schema$CheckoutWorkspaceBranchRequest {
|
|
229
|
+
/**
|
|
230
|
+
* Required. The name of the branch in the Git repository to which the workspace should be checked out.
|
|
231
|
+
*/
|
|
232
|
+
branch?: string | null;
|
|
233
|
+
/**
|
|
234
|
+
* Optional. If set to true and the branch does not exist, it will be created. Otherwise, an error will be thrown.
|
|
235
|
+
*/
|
|
236
|
+
createIfNotExists?: boolean | null;
|
|
237
|
+
/**
|
|
238
|
+
* Optional. The name of the branch in the Git repository from which the new branch should be created. If left unset, the workspace's current branch name will be used. Accepts only branch names from FetchWorkspaceBranches response, and can only be set if `create_if_not_exists` is true. Oherwise, an error will be thrown.
|
|
239
|
+
*/
|
|
240
|
+
sourceBranch?: string | null;
|
|
241
|
+
}
|
|
212
242
|
/**
|
|
213
243
|
* Configures various aspects of Dataform code compilation.
|
|
214
244
|
*/
|
|
@@ -587,6 +617,24 @@ export declare namespace dataform_v1beta1 {
|
|
|
587
617
|
*/
|
|
588
618
|
relationDescriptor?: Schema$RelationDescriptor;
|
|
589
619
|
}
|
|
620
|
+
/**
|
|
621
|
+
* `DeleteBranch` request message.
|
|
622
|
+
*/
|
|
623
|
+
export interface Schema$DeleteBranchRequest {
|
|
624
|
+
/**
|
|
625
|
+
* Required. The name of the branch in the Git repository to delete.
|
|
626
|
+
*/
|
|
627
|
+
branch?: string | null;
|
|
628
|
+
/**
|
|
629
|
+
* Optional. If set to true, any non-pushed commits on the branch will be deleted. Upstream branch name will be the same as the branch to delete.
|
|
630
|
+
*/
|
|
631
|
+
force?: boolean | null;
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* `DeleteBranch` response message.
|
|
635
|
+
*/
|
|
636
|
+
export interface Schema$DeleteBranchResponse {
|
|
637
|
+
}
|
|
590
638
|
/**
|
|
591
639
|
* Represents the delete file operation.
|
|
592
640
|
*/
|
|
@@ -684,6 +732,15 @@ export declare namespace dataform_v1beta1 {
|
|
|
684
732
|
*/
|
|
685
733
|
title?: string | null;
|
|
686
734
|
}
|
|
735
|
+
/**
|
|
736
|
+
* Response message for `FetchCurrentWorkspaceBranch` method.
|
|
737
|
+
*/
|
|
738
|
+
export interface Schema$FetchCurrentWorkspaceBranchResponse {
|
|
739
|
+
/**
|
|
740
|
+
* The name of the current branch for the workspace.
|
|
741
|
+
*/
|
|
742
|
+
branchName?: string | null;
|
|
743
|
+
}
|
|
687
744
|
/**
|
|
688
745
|
* `FetchFileDiff` response message.
|
|
689
746
|
*/
|
|
@@ -737,6 +794,19 @@ export declare namespace dataform_v1beta1 {
|
|
|
737
794
|
*/
|
|
738
795
|
nextPageToken?: string | null;
|
|
739
796
|
}
|
|
797
|
+
/**
|
|
798
|
+
* Response message for `FetchWorkspaceBranches` method.
|
|
799
|
+
*/
|
|
800
|
+
export interface Schema$FetchWorkspaceBranchesResponse {
|
|
801
|
+
/**
|
|
802
|
+
* The branches in the workspace.
|
|
803
|
+
*/
|
|
804
|
+
branches?: Schema$BranchMetadata[];
|
|
805
|
+
/**
|
|
806
|
+
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
|
|
807
|
+
*/
|
|
808
|
+
nextPageToken?: string | null;
|
|
809
|
+
}
|
|
740
810
|
/**
|
|
741
811
|
* Represents a single file operation to the repository.
|
|
742
812
|
*/
|
|
@@ -1982,6 +2052,24 @@ export declare namespace dataform_v1beta1 {
|
|
|
1982
2052
|
*/
|
|
1983
2053
|
message?: string | null;
|
|
1984
2054
|
}
|
|
2055
|
+
/**
|
|
2056
|
+
* `SyncWorkspaceRefs` request message.
|
|
2057
|
+
*/
|
|
2058
|
+
export interface Schema$SyncWorkspaceRefsRequest {
|
|
2059
|
+
/**
|
|
2060
|
+
* Optional. Can be used to deepen the commit history of shallow clones. Git documentation: https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt---deependepth
|
|
2061
|
+
*/
|
|
2062
|
+
deepen?: number | null;
|
|
2063
|
+
/**
|
|
2064
|
+
* Optional. The name of the branch in the Git remote to which the refs should be fetched for. If left unset, all remote branches will be fetched.
|
|
2065
|
+
*/
|
|
2066
|
+
remoteBranchName?: string | null;
|
|
2067
|
+
}
|
|
2068
|
+
/**
|
|
2069
|
+
* `SyncWorkspaceRefs` response message.
|
|
2070
|
+
*/
|
|
2071
|
+
export interface Schema$SyncWorkspaceRefsResponse {
|
|
2072
|
+
}
|
|
1985
2073
|
/**
|
|
1986
2074
|
* Represents a table update trigger configuration.
|
|
1987
2075
|
*/
|
|
@@ -2296,10 +2384,18 @@ export declare namespace dataform_v1beta1 {
|
|
|
2296
2384
|
* Output only. A data encryption state of a Git repository if this Workspace is protected by a KMS key.
|
|
2297
2385
|
*/
|
|
2298
2386
|
dataEncryptionState?: Schema$DataEncryptionState;
|
|
2387
|
+
/**
|
|
2388
|
+
* Optional. Input only. Immutable. The maximum depth of the Git repository to checkout for this workspace. If defined and greater than 0, the Git repository will be created as a shallow clone with the given depth, otherwise a full clone will be performed. This field is available only for GitHub, GitLab and 1p repositories with enabled branch management.
|
|
2389
|
+
*/
|
|
2390
|
+
depth?: number | null;
|
|
2299
2391
|
/**
|
|
2300
2392
|
* Optional. If set to true, workspaces will not be moved if its linked Repository is moved. Instead, it will be deleted.
|
|
2301
2393
|
*/
|
|
2302
2394
|
disableMoves?: boolean | null;
|
|
2395
|
+
/**
|
|
2396
|
+
* Immutable. Controls the enablement of branch checkout for the workspace. When set to True, the workspace will be allowed to checkout branches.
|
|
2397
|
+
*/
|
|
2398
|
+
enableBranchManagement?: boolean | null;
|
|
2303
2399
|
/**
|
|
2304
2400
|
* 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.
|
|
2305
2401
|
*/
|
|
@@ -2308,10 +2404,18 @@ export declare namespace dataform_v1beta1 {
|
|
|
2308
2404
|
* Identifier. The workspace's name.
|
|
2309
2405
|
*/
|
|
2310
2406
|
name?: string | null;
|
|
2407
|
+
/**
|
|
2408
|
+
* Optional. Input only. Immutable. The name of the default upstream branch for all pull/push operations in the remote repository for this workspace. If empty, the HEAD branch from repository will be used.
|
|
2409
|
+
*/
|
|
2410
|
+
originalBranch?: string | null;
|
|
2311
2411
|
/**
|
|
2312
2412
|
* Output only. Metadata indicating whether this resource is user-scoped. For `Workspace` resources, the `user_scoped` field is always `true`.
|
|
2313
2413
|
*/
|
|
2314
2414
|
privateResourceMetadata?: Schema$PrivateResourceMetadata;
|
|
2415
|
+
/**
|
|
2416
|
+
* Output only. If set to true, the workspace was created as a shallow clone. Will be set to true if the depth field is set to a value greater than 0, otherwise it will be set to false.
|
|
2417
|
+
*/
|
|
2418
|
+
shallow?: boolean | null;
|
|
2315
2419
|
}
|
|
2316
2420
|
/**
|
|
2317
2421
|
* Configures workspace compilation overrides for a repository. Primarily used by the UI (`console.cloud.google.com`). `schema_suffix` and `table_prefix` can have a special expression - `${workspaceName\}`, which refers to the workspace name from which the compilation results will be created. API callers are expected to resolve the expression in these overrides and provide them explicitly in `code_compilation_config` (https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories.compilationResults#codecompilationconfig) when creating workspace-scoped compilation results.
|
|
@@ -7139,6 +7243,78 @@ export declare namespace dataform_v1beta1 {
|
|
|
7139
7243
|
export class Resource$Projects$Locations$Repositories$Workspaces {
|
|
7140
7244
|
context: APIRequestContext;
|
|
7141
7245
|
constructor(context: APIRequestContext);
|
|
7246
|
+
/**
|
|
7247
|
+
* Checkout a branch in a Workspace.
|
|
7248
|
+
* @example
|
|
7249
|
+
* ```js
|
|
7250
|
+
* // Before running the sample:
|
|
7251
|
+
* // - Enable the API at:
|
|
7252
|
+
* // https://console.developers.google.com/apis/api/dataform.googleapis.com
|
|
7253
|
+
* // - Login into gcloud by running:
|
|
7254
|
+
* // ```sh
|
|
7255
|
+
* // $ gcloud auth application-default login
|
|
7256
|
+
* // ```
|
|
7257
|
+
* // - Install the npm module by running:
|
|
7258
|
+
* // ```sh
|
|
7259
|
+
* // $ npm install googleapis
|
|
7260
|
+
* // ```
|
|
7261
|
+
*
|
|
7262
|
+
* const {google} = require('googleapis');
|
|
7263
|
+
* const dataform = google.dataform('v1beta1');
|
|
7264
|
+
*
|
|
7265
|
+
* async function main() {
|
|
7266
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7267
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7268
|
+
* scopes: [
|
|
7269
|
+
* 'https://www.googleapis.com/auth/bigquery',
|
|
7270
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
7271
|
+
* ],
|
|
7272
|
+
* });
|
|
7273
|
+
*
|
|
7274
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7275
|
+
* const authClient = await auth.getClient();
|
|
7276
|
+
* google.options({auth: authClient});
|
|
7277
|
+
*
|
|
7278
|
+
* // Do the magic
|
|
7279
|
+
* const res =
|
|
7280
|
+
* await dataform.projects.locations.repositories.workspaces.checkout({
|
|
7281
|
+
* // Required. The workspace resource name. Format: projects/{project\}/locations/{location\}/repositories/{repository\}/workspaces/{workspace\}
|
|
7282
|
+
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie/workspaces/my-workspace',
|
|
7283
|
+
*
|
|
7284
|
+
* // Request body metadata
|
|
7285
|
+
* requestBody: {
|
|
7286
|
+
* // request body parameters
|
|
7287
|
+
* // {
|
|
7288
|
+
* // "branch": "my_branch",
|
|
7289
|
+
* // "createIfNotExists": false,
|
|
7290
|
+
* // "sourceBranch": "my_sourceBranch"
|
|
7291
|
+
* // }
|
|
7292
|
+
* },
|
|
7293
|
+
* });
|
|
7294
|
+
* console.log(res.data);
|
|
7295
|
+
*
|
|
7296
|
+
* // Example response
|
|
7297
|
+
* // {}
|
|
7298
|
+
* }
|
|
7299
|
+
*
|
|
7300
|
+
* main().catch(e => {
|
|
7301
|
+
* console.error(e);
|
|
7302
|
+
* throw e;
|
|
7303
|
+
* });
|
|
7304
|
+
*
|
|
7305
|
+
* ```
|
|
7306
|
+
*
|
|
7307
|
+
* @param params - Parameters for request
|
|
7308
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
7309
|
+
* @param callback - Optional callback that handles the response.
|
|
7310
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7311
|
+
*/
|
|
7312
|
+
checkout(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Checkout, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
7313
|
+
checkout(params?: Params$Resource$Projects$Locations$Repositories$Workspaces$Checkout, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
7314
|
+
checkout(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Checkout, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
7315
|
+
checkout(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Checkout, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
7316
|
+
checkout(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Checkout, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
7317
|
+
checkout(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
7142
7318
|
/**
|
|
7143
7319
|
* Applies a Git commit for uncommitted files in a Workspace.
|
|
7144
7320
|
* @example
|
|
@@ -7256,10 +7432,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
7256
7432
|
* // {
|
|
7257
7433
|
* // "createTime": "my_createTime",
|
|
7258
7434
|
* // "dataEncryptionState": {},
|
|
7435
|
+
* // "depth": 0,
|
|
7259
7436
|
* // "disableMoves": false,
|
|
7437
|
+
* // "enableBranchManagement": false,
|
|
7260
7438
|
* // "internalMetadata": "my_internalMetadata",
|
|
7261
7439
|
* // "name": "my_name",
|
|
7262
|
-
* // "
|
|
7440
|
+
* // "originalBranch": "my_originalBranch",
|
|
7441
|
+
* // "privateResourceMetadata": {},
|
|
7442
|
+
* // "shallow": false
|
|
7263
7443
|
* // }
|
|
7264
7444
|
* },
|
|
7265
7445
|
* });
|
|
@@ -7269,10 +7449,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
7269
7449
|
* // {
|
|
7270
7450
|
* // "createTime": "my_createTime",
|
|
7271
7451
|
* // "dataEncryptionState": {},
|
|
7452
|
+
* // "depth": 0,
|
|
7272
7453
|
* // "disableMoves": false,
|
|
7454
|
+
* // "enableBranchManagement": false,
|
|
7273
7455
|
* // "internalMetadata": "my_internalMetadata",
|
|
7274
7456
|
* // "name": "my_name",
|
|
7275
|
-
* // "
|
|
7457
|
+
* // "originalBranch": "my_originalBranch",
|
|
7458
|
+
* // "privateResourceMetadata": {},
|
|
7459
|
+
* // "shallow": false
|
|
7276
7460
|
* // }
|
|
7277
7461
|
* }
|
|
7278
7462
|
*
|
|
@@ -7355,6 +7539,214 @@ export declare namespace dataform_v1beta1 {
|
|
|
7355
7539
|
delete(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
7356
7540
|
delete(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
7357
7541
|
delete(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
7542
|
+
/**
|
|
7543
|
+
* Deletes a branch in a Workspace.
|
|
7544
|
+
* @example
|
|
7545
|
+
* ```js
|
|
7546
|
+
* // Before running the sample:
|
|
7547
|
+
* // - Enable the API at:
|
|
7548
|
+
* // https://console.developers.google.com/apis/api/dataform.googleapis.com
|
|
7549
|
+
* // - Login into gcloud by running:
|
|
7550
|
+
* // ```sh
|
|
7551
|
+
* // $ gcloud auth application-default login
|
|
7552
|
+
* // ```
|
|
7553
|
+
* // - Install the npm module by running:
|
|
7554
|
+
* // ```sh
|
|
7555
|
+
* // $ npm install googleapis
|
|
7556
|
+
* // ```
|
|
7557
|
+
*
|
|
7558
|
+
* const {google} = require('googleapis');
|
|
7559
|
+
* const dataform = google.dataform('v1beta1');
|
|
7560
|
+
*
|
|
7561
|
+
* async function main() {
|
|
7562
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7563
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7564
|
+
* scopes: [
|
|
7565
|
+
* 'https://www.googleapis.com/auth/bigquery',
|
|
7566
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
7567
|
+
* ],
|
|
7568
|
+
* });
|
|
7569
|
+
*
|
|
7570
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7571
|
+
* const authClient = await auth.getClient();
|
|
7572
|
+
* google.options({auth: authClient});
|
|
7573
|
+
*
|
|
7574
|
+
* // Do the magic
|
|
7575
|
+
* const res =
|
|
7576
|
+
* await dataform.projects.locations.repositories.workspaces.deleteBranch({
|
|
7577
|
+
* // Required. The workspace resource name. Format: projects/{project\}/locations/{location\}/repositories/{repository\}/workspaces/{workspace\}
|
|
7578
|
+
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie/workspaces/my-workspace',
|
|
7579
|
+
*
|
|
7580
|
+
* // Request body metadata
|
|
7581
|
+
* requestBody: {
|
|
7582
|
+
* // request body parameters
|
|
7583
|
+
* // {
|
|
7584
|
+
* // "branch": "my_branch",
|
|
7585
|
+
* // "force": false
|
|
7586
|
+
* // }
|
|
7587
|
+
* },
|
|
7588
|
+
* });
|
|
7589
|
+
* console.log(res.data);
|
|
7590
|
+
*
|
|
7591
|
+
* // Example response
|
|
7592
|
+
* // {}
|
|
7593
|
+
* }
|
|
7594
|
+
*
|
|
7595
|
+
* main().catch(e => {
|
|
7596
|
+
* console.error(e);
|
|
7597
|
+
* throw e;
|
|
7598
|
+
* });
|
|
7599
|
+
*
|
|
7600
|
+
* ```
|
|
7601
|
+
*
|
|
7602
|
+
* @param params - Parameters for request
|
|
7603
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
7604
|
+
* @param callback - Optional callback that handles the response.
|
|
7605
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7606
|
+
*/
|
|
7607
|
+
deleteBranch(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Deletebranch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
7608
|
+
deleteBranch(params?: Params$Resource$Projects$Locations$Repositories$Workspaces$Deletebranch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$DeleteBranchResponse>>;
|
|
7609
|
+
deleteBranch(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Deletebranch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
7610
|
+
deleteBranch(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Deletebranch, options: MethodOptions | BodyResponseCallback<Schema$DeleteBranchResponse>, callback: BodyResponseCallback<Schema$DeleteBranchResponse>): void;
|
|
7611
|
+
deleteBranch(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Deletebranch, callback: BodyResponseCallback<Schema$DeleteBranchResponse>): void;
|
|
7612
|
+
deleteBranch(callback: BodyResponseCallback<Schema$DeleteBranchResponse>): void;
|
|
7613
|
+
/**
|
|
7614
|
+
* Fetches branches in a Workspace.
|
|
7615
|
+
* @example
|
|
7616
|
+
* ```js
|
|
7617
|
+
* // Before running the sample:
|
|
7618
|
+
* // - Enable the API at:
|
|
7619
|
+
* // https://console.developers.google.com/apis/api/dataform.googleapis.com
|
|
7620
|
+
* // - Login into gcloud by running:
|
|
7621
|
+
* // ```sh
|
|
7622
|
+
* // $ gcloud auth application-default login
|
|
7623
|
+
* // ```
|
|
7624
|
+
* // - Install the npm module by running:
|
|
7625
|
+
* // ```sh
|
|
7626
|
+
* // $ npm install googleapis
|
|
7627
|
+
* // ```
|
|
7628
|
+
*
|
|
7629
|
+
* const {google} = require('googleapis');
|
|
7630
|
+
* const dataform = google.dataform('v1beta1');
|
|
7631
|
+
*
|
|
7632
|
+
* async function main() {
|
|
7633
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7634
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7635
|
+
* scopes: [
|
|
7636
|
+
* 'https://www.googleapis.com/auth/bigquery',
|
|
7637
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
7638
|
+
* ],
|
|
7639
|
+
* });
|
|
7640
|
+
*
|
|
7641
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7642
|
+
* const authClient = await auth.getClient();
|
|
7643
|
+
* google.options({auth: authClient});
|
|
7644
|
+
*
|
|
7645
|
+
* // Do the magic
|
|
7646
|
+
* const res =
|
|
7647
|
+
* await dataform.projects.locations.repositories.workspaces.fetchBranches({
|
|
7648
|
+
* // Optional. Filter for the returned list.
|
|
7649
|
+
* filter: 'placeholder-value',
|
|
7650
|
+
* // Required. The workspace resource name. Format: projects/{project\}/locations/{location\}/repositories/{repository\}/workspaces/{workspace\}
|
|
7651
|
+
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie/workspaces/my-workspace',
|
|
7652
|
+
* // Optional. Maximum number of branches to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default. The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
7653
|
+
* pageSize: 'placeholder-value',
|
|
7654
|
+
* // Optional. Page token received from a previous `FetchWorkspaceBranches` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchWorkspaceBranches`, with the exception of `page_size`, must match the call that provided the page token.
|
|
7655
|
+
* pageToken: 'placeholder-value',
|
|
7656
|
+
* });
|
|
7657
|
+
* console.log(res.data);
|
|
7658
|
+
*
|
|
7659
|
+
* // Example response
|
|
7660
|
+
* // {
|
|
7661
|
+
* // "branches": [],
|
|
7662
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
7663
|
+
* // }
|
|
7664
|
+
* }
|
|
7665
|
+
*
|
|
7666
|
+
* main().catch(e => {
|
|
7667
|
+
* console.error(e);
|
|
7668
|
+
* throw e;
|
|
7669
|
+
* });
|
|
7670
|
+
*
|
|
7671
|
+
* ```
|
|
7672
|
+
*
|
|
7673
|
+
* @param params - Parameters for request
|
|
7674
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
7675
|
+
* @param callback - Optional callback that handles the response.
|
|
7676
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7677
|
+
*/
|
|
7678
|
+
fetchBranches(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchbranches, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
7679
|
+
fetchBranches(params?: Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchbranches, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$FetchWorkspaceBranchesResponse>>;
|
|
7680
|
+
fetchBranches(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchbranches, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
7681
|
+
fetchBranches(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchbranches, options: MethodOptions | BodyResponseCallback<Schema$FetchWorkspaceBranchesResponse>, callback: BodyResponseCallback<Schema$FetchWorkspaceBranchesResponse>): void;
|
|
7682
|
+
fetchBranches(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchbranches, callback: BodyResponseCallback<Schema$FetchWorkspaceBranchesResponse>): void;
|
|
7683
|
+
fetchBranches(callback: BodyResponseCallback<Schema$FetchWorkspaceBranchesResponse>): void;
|
|
7684
|
+
/**
|
|
7685
|
+
* Fetches the current branch of a Workspace.
|
|
7686
|
+
* @example
|
|
7687
|
+
* ```js
|
|
7688
|
+
* // Before running the sample:
|
|
7689
|
+
* // - Enable the API at:
|
|
7690
|
+
* // https://console.developers.google.com/apis/api/dataform.googleapis.com
|
|
7691
|
+
* // - Login into gcloud by running:
|
|
7692
|
+
* // ```sh
|
|
7693
|
+
* // $ gcloud auth application-default login
|
|
7694
|
+
* // ```
|
|
7695
|
+
* // - Install the npm module by running:
|
|
7696
|
+
* // ```sh
|
|
7697
|
+
* // $ npm install googleapis
|
|
7698
|
+
* // ```
|
|
7699
|
+
*
|
|
7700
|
+
* const {google} = require('googleapis');
|
|
7701
|
+
* const dataform = google.dataform('v1beta1');
|
|
7702
|
+
*
|
|
7703
|
+
* async function main() {
|
|
7704
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7705
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7706
|
+
* scopes: [
|
|
7707
|
+
* 'https://www.googleapis.com/auth/bigquery',
|
|
7708
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
7709
|
+
* ],
|
|
7710
|
+
* });
|
|
7711
|
+
*
|
|
7712
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7713
|
+
* const authClient = await auth.getClient();
|
|
7714
|
+
* google.options({auth: authClient});
|
|
7715
|
+
*
|
|
7716
|
+
* // Do the magic
|
|
7717
|
+
* const res =
|
|
7718
|
+
* await dataform.projects.locations.repositories.workspaces.fetchCurrentBranch(
|
|
7719
|
+
* {
|
|
7720
|
+
* // Required. The workspace resource name. Format: projects/{project\}/locations/{location\}/repositories/{repository\}/workspaces/{workspace\}
|
|
7721
|
+
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie/workspaces/my-workspace',
|
|
7722
|
+
* },
|
|
7723
|
+
* );
|
|
7724
|
+
* console.log(res.data);
|
|
7725
|
+
*
|
|
7726
|
+
* // Example response
|
|
7727
|
+
* // {
|
|
7728
|
+
* // "branchName": "my_branchName"
|
|
7729
|
+
* // }
|
|
7730
|
+
* }
|
|
7731
|
+
*
|
|
7732
|
+
* main().catch(e => {
|
|
7733
|
+
* console.error(e);
|
|
7734
|
+
* throw e;
|
|
7735
|
+
* });
|
|
7736
|
+
*
|
|
7737
|
+
* ```
|
|
7738
|
+
*
|
|
7739
|
+
* @param params - Parameters for request
|
|
7740
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
7741
|
+
* @param callback - Optional callback that handles the response.
|
|
7742
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7743
|
+
*/
|
|
7744
|
+
fetchCurrentBranch(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchcurrentbranch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
7745
|
+
fetchCurrentBranch(params?: Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchcurrentbranch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$FetchCurrentWorkspaceBranchResponse>>;
|
|
7746
|
+
fetchCurrentBranch(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchcurrentbranch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
7747
|
+
fetchCurrentBranch(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchcurrentbranch, options: MethodOptions | BodyResponseCallback<Schema$FetchCurrentWorkspaceBranchResponse>, callback: BodyResponseCallback<Schema$FetchCurrentWorkspaceBranchResponse>): void;
|
|
7748
|
+
fetchCurrentBranch(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchcurrentbranch, callback: BodyResponseCallback<Schema$FetchCurrentWorkspaceBranchResponse>): void;
|
|
7749
|
+
fetchCurrentBranch(callback: BodyResponseCallback<Schema$FetchCurrentWorkspaceBranchResponse>): void;
|
|
7358
7750
|
/**
|
|
7359
7751
|
* Fetches Git diff for an uncommitted file in a Workspace.
|
|
7360
7752
|
* @example
|
|
@@ -7600,10 +7992,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
7600
7992
|
* // {
|
|
7601
7993
|
* // "createTime": "my_createTime",
|
|
7602
7994
|
* // "dataEncryptionState": {},
|
|
7995
|
+
* // "depth": 0,
|
|
7603
7996
|
* // "disableMoves": false,
|
|
7997
|
+
* // "enableBranchManagement": false,
|
|
7604
7998
|
* // "internalMetadata": "my_internalMetadata",
|
|
7605
7999
|
* // "name": "my_name",
|
|
7606
|
-
* // "
|
|
8000
|
+
* // "originalBranch": "my_originalBranch",
|
|
8001
|
+
* // "privateResourceMetadata": {},
|
|
8002
|
+
* // "shallow": false
|
|
7607
8003
|
* // }
|
|
7608
8004
|
* }
|
|
7609
8005
|
*
|
|
@@ -8699,6 +9095,79 @@ export declare namespace dataform_v1beta1 {
|
|
|
8699
9095
|
setIamPolicy(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
8700
9096
|
setIamPolicy(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Setiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
8701
9097
|
setIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
|
|
9098
|
+
/**
|
|
9099
|
+
* Syncs the refs of a Workspace.
|
|
9100
|
+
* @example
|
|
9101
|
+
* ```js
|
|
9102
|
+
* // Before running the sample:
|
|
9103
|
+
* // - Enable the API at:
|
|
9104
|
+
* // https://console.developers.google.com/apis/api/dataform.googleapis.com
|
|
9105
|
+
* // - Login into gcloud by running:
|
|
9106
|
+
* // ```sh
|
|
9107
|
+
* // $ gcloud auth application-default login
|
|
9108
|
+
* // ```
|
|
9109
|
+
* // - Install the npm module by running:
|
|
9110
|
+
* // ```sh
|
|
9111
|
+
* // $ npm install googleapis
|
|
9112
|
+
* // ```
|
|
9113
|
+
*
|
|
9114
|
+
* const {google} = require('googleapis');
|
|
9115
|
+
* const dataform = google.dataform('v1beta1');
|
|
9116
|
+
*
|
|
9117
|
+
* async function main() {
|
|
9118
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9119
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9120
|
+
* scopes: [
|
|
9121
|
+
* 'https://www.googleapis.com/auth/bigquery',
|
|
9122
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
9123
|
+
* ],
|
|
9124
|
+
* });
|
|
9125
|
+
*
|
|
9126
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9127
|
+
* const authClient = await auth.getClient();
|
|
9128
|
+
* google.options({auth: authClient});
|
|
9129
|
+
*
|
|
9130
|
+
* // Do the magic
|
|
9131
|
+
* const res =
|
|
9132
|
+
* await dataform.projects.locations.repositories.workspaces.syncWorkspaceRefs(
|
|
9133
|
+
* {
|
|
9134
|
+
* // Required. The workspace resource name. Format: projects/{project\}/locations/{location\}/repositories/{repository\}/workspaces/{workspace\}
|
|
9135
|
+
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie/workspaces/my-workspace',
|
|
9136
|
+
*
|
|
9137
|
+
* // Request body metadata
|
|
9138
|
+
* requestBody: {
|
|
9139
|
+
* // request body parameters
|
|
9140
|
+
* // {
|
|
9141
|
+
* // "deepen": 0,
|
|
9142
|
+
* // "remoteBranchName": "my_remoteBranchName"
|
|
9143
|
+
* // }
|
|
9144
|
+
* },
|
|
9145
|
+
* },
|
|
9146
|
+
* );
|
|
9147
|
+
* console.log(res.data);
|
|
9148
|
+
*
|
|
9149
|
+
* // Example response
|
|
9150
|
+
* // {}
|
|
9151
|
+
* }
|
|
9152
|
+
*
|
|
9153
|
+
* main().catch(e => {
|
|
9154
|
+
* console.error(e);
|
|
9155
|
+
* throw e;
|
|
9156
|
+
* });
|
|
9157
|
+
*
|
|
9158
|
+
* ```
|
|
9159
|
+
*
|
|
9160
|
+
* @param params - Parameters for request
|
|
9161
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
9162
|
+
* @param callback - Optional callback that handles the response.
|
|
9163
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9164
|
+
*/
|
|
9165
|
+
syncWorkspaceRefs(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Syncworkspacerefs, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9166
|
+
syncWorkspaceRefs(params?: Params$Resource$Projects$Locations$Repositories$Workspaces$Syncworkspacerefs, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SyncWorkspaceRefsResponse>>;
|
|
9167
|
+
syncWorkspaceRefs(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Syncworkspacerefs, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
9168
|
+
syncWorkspaceRefs(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Syncworkspacerefs, options: MethodOptions | BodyResponseCallback<Schema$SyncWorkspaceRefsResponse>, callback: BodyResponseCallback<Schema$SyncWorkspaceRefsResponse>): void;
|
|
9169
|
+
syncWorkspaceRefs(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Syncworkspacerefs, callback: BodyResponseCallback<Schema$SyncWorkspaceRefsResponse>): void;
|
|
9170
|
+
syncWorkspaceRefs(callback: BodyResponseCallback<Schema$SyncWorkspaceRefsResponse>): void;
|
|
8702
9171
|
/**
|
|
8703
9172
|
* 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.
|
|
8704
9173
|
* @example
|
|
@@ -8847,6 +9316,16 @@ export declare namespace dataform_v1beta1 {
|
|
|
8847
9316
|
writeFile(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Writefile, callback: BodyResponseCallback<Schema$WriteFileResponse>): void;
|
|
8848
9317
|
writeFile(callback: BodyResponseCallback<Schema$WriteFileResponse>): void;
|
|
8849
9318
|
}
|
|
9319
|
+
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Checkout extends StandardParameters {
|
|
9320
|
+
/**
|
|
9321
|
+
* Required. The workspace resource name. Format: projects/{project\}/locations/{location\}/repositories/{repository\}/workspaces/{workspace\}
|
|
9322
|
+
*/
|
|
9323
|
+
name?: string;
|
|
9324
|
+
/**
|
|
9325
|
+
* Request body metadata
|
|
9326
|
+
*/
|
|
9327
|
+
requestBody?: Schema$CheckoutWorkspaceBranchRequest;
|
|
9328
|
+
}
|
|
8850
9329
|
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Commit extends StandardParameters {
|
|
8851
9330
|
/**
|
|
8852
9331
|
* Required. The workspace's name.
|
|
@@ -8877,6 +9356,40 @@ export declare namespace dataform_v1beta1 {
|
|
|
8877
9356
|
*/
|
|
8878
9357
|
name?: string;
|
|
8879
9358
|
}
|
|
9359
|
+
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Deletebranch extends StandardParameters {
|
|
9360
|
+
/**
|
|
9361
|
+
* Required. The workspace resource name. Format: projects/{project\}/locations/{location\}/repositories/{repository\}/workspaces/{workspace\}
|
|
9362
|
+
*/
|
|
9363
|
+
name?: string;
|
|
9364
|
+
/**
|
|
9365
|
+
* Request body metadata
|
|
9366
|
+
*/
|
|
9367
|
+
requestBody?: Schema$DeleteBranchRequest;
|
|
9368
|
+
}
|
|
9369
|
+
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchbranches extends StandardParameters {
|
|
9370
|
+
/**
|
|
9371
|
+
* Optional. Filter for the returned list.
|
|
9372
|
+
*/
|
|
9373
|
+
filter?: string;
|
|
9374
|
+
/**
|
|
9375
|
+
* Required. The workspace resource name. Format: projects/{project\}/locations/{location\}/repositories/{repository\}/workspaces/{workspace\}
|
|
9376
|
+
*/
|
|
9377
|
+
name?: string;
|
|
9378
|
+
/**
|
|
9379
|
+
* Optional. Maximum number of branches to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default. The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
9380
|
+
*/
|
|
9381
|
+
pageSize?: number;
|
|
9382
|
+
/**
|
|
9383
|
+
* Optional. Page token received from a previous `FetchWorkspaceBranches` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchWorkspaceBranches`, with the exception of `page_size`, must match the call that provided the page token.
|
|
9384
|
+
*/
|
|
9385
|
+
pageToken?: string;
|
|
9386
|
+
}
|
|
9387
|
+
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchcurrentbranch extends StandardParameters {
|
|
9388
|
+
/**
|
|
9389
|
+
* Required. The workspace resource name. Format: projects/{project\}/locations/{location\}/repositories/{repository\}/workspaces/{workspace\}
|
|
9390
|
+
*/
|
|
9391
|
+
name?: string;
|
|
9392
|
+
}
|
|
8880
9393
|
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchfilediff extends StandardParameters {
|
|
8881
9394
|
/**
|
|
8882
9395
|
* Required. The file's full path including filename, relative to the workspace root.
|
|
@@ -9095,6 +9608,16 @@ export declare namespace dataform_v1beta1 {
|
|
|
9095
9608
|
*/
|
|
9096
9609
|
requestBody?: Schema$SetIamPolicyRequest;
|
|
9097
9610
|
}
|
|
9611
|
+
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Syncworkspacerefs extends StandardParameters {
|
|
9612
|
+
/**
|
|
9613
|
+
* Required. The workspace resource name. Format: projects/{project\}/locations/{location\}/repositories/{repository\}/workspaces/{workspace\}
|
|
9614
|
+
*/
|
|
9615
|
+
name?: string;
|
|
9616
|
+
/**
|
|
9617
|
+
* Request body metadata
|
|
9618
|
+
*/
|
|
9619
|
+
requestBody?: Schema$SyncWorkspaceRefsRequest;
|
|
9620
|
+
}
|
|
9098
9621
|
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Testiampermissions extends StandardParameters {
|
|
9099
9622
|
/**
|
|
9100
9623
|
* 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.
|