@googleapis/dataform 17.0.0 → 17.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +74 -3
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +602 -8
- package/build/v1beta1.js +165 -0
- package/build/v1beta1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +76 -4
- package/v1beta1.ts +1044 -37
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
|
*/
|
|
@@ -241,6 +271,10 @@ export declare namespace dataform_v1beta1 {
|
|
|
241
271
|
* Optional. The default schema (BigQuery dataset ID).
|
|
242
272
|
*/
|
|
243
273
|
defaultSchema?: string | null;
|
|
274
|
+
/**
|
|
275
|
+
* Optional. The pipeline options which defines the pipeline type and path within the Git repository.
|
|
276
|
+
*/
|
|
277
|
+
pipelineConfig?: Schema$PipelineConfig;
|
|
244
278
|
/**
|
|
245
279
|
* Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
|
|
246
280
|
*/
|
|
@@ -415,6 +449,10 @@ export declare namespace dataform_v1beta1 {
|
|
|
415
449
|
* Output only. The version of `@dataform/core` that was used for compilation.
|
|
416
450
|
*/
|
|
417
451
|
dataformCoreVersion?: string | null;
|
|
452
|
+
/**
|
|
453
|
+
* Output only. Metadata about the repository snapshot used by scheduled notebooks.
|
|
454
|
+
*/
|
|
455
|
+
gcsRepositorySnapshotMetadata?: Schema$GcsRepositorySnapshotMetadata;
|
|
418
456
|
/**
|
|
419
457
|
* Immutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA: `12ade345` - a tag: `tag1` - a branch name: `branch1`
|
|
420
458
|
*/
|
|
@@ -579,6 +617,24 @@ export declare namespace dataform_v1beta1 {
|
|
|
579
617
|
*/
|
|
580
618
|
relationDescriptor?: Schema$RelationDescriptor;
|
|
581
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
|
+
}
|
|
582
638
|
/**
|
|
583
639
|
* Represents the delete file operation.
|
|
584
640
|
*/
|
|
@@ -676,6 +732,15 @@ export declare namespace dataform_v1beta1 {
|
|
|
676
732
|
*/
|
|
677
733
|
title?: string | null;
|
|
678
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
|
+
}
|
|
679
744
|
/**
|
|
680
745
|
* `FetchFileDiff` response message.
|
|
681
746
|
*/
|
|
@@ -729,6 +794,19 @@ export declare namespace dataform_v1beta1 {
|
|
|
729
794
|
*/
|
|
730
795
|
nextPageToken?: string | null;
|
|
731
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
|
+
}
|
|
732
810
|
/**
|
|
733
811
|
* Represents a single file operation to the repository.
|
|
734
812
|
*/
|
|
@@ -814,6 +892,32 @@ export declare namespace dataform_v1beta1 {
|
|
|
814
892
|
*/
|
|
815
893
|
repository?: Schema$Repository;
|
|
816
894
|
}
|
|
895
|
+
/**
|
|
896
|
+
* Configures the destination for a repository snapshot.
|
|
897
|
+
*/
|
|
898
|
+
export interface Schema$GcsRepositorySnapshotDestination {
|
|
899
|
+
/**
|
|
900
|
+
* Optional. The Google Cloud Storage destination to upload the repository snapshot to. Format: `gs://bucket-name/path/`.
|
|
901
|
+
*/
|
|
902
|
+
repositorySnapshotUri?: string | null;
|
|
903
|
+
}
|
|
904
|
+
/**
|
|
905
|
+
* Metadata about a repository snapshot stored in Google Cloud Storage.
|
|
906
|
+
*/
|
|
907
|
+
export interface Schema$GcsRepositorySnapshotMetadata {
|
|
908
|
+
/**
|
|
909
|
+
* Output only. The crc32c checksum of the repository snapshot, big-endian base64 encoded.
|
|
910
|
+
*/
|
|
911
|
+
crc32cChecksum?: string | null;
|
|
912
|
+
/**
|
|
913
|
+
* Output only. The generation number of the Cloud Storage object. See https://cloud.google.com/storage/docs/metadata#generation-number.
|
|
914
|
+
*/
|
|
915
|
+
generation?: string | null;
|
|
916
|
+
/**
|
|
917
|
+
* Output only. The Google Cloud Storage URI of the repository snapshot.
|
|
918
|
+
*/
|
|
919
|
+
repositorySnapshotUri?: string | null;
|
|
920
|
+
}
|
|
817
921
|
/**
|
|
818
922
|
* Controls Git remote configuration for a repository.
|
|
819
923
|
*/
|
|
@@ -902,6 +1006,10 @@ export declare namespace dataform_v1beta1 {
|
|
|
902
1006
|
* `InstallNpmPackages` request message.
|
|
903
1007
|
*/
|
|
904
1008
|
export interface Schema$InstallNpmPackagesRequest {
|
|
1009
|
+
/**
|
|
1010
|
+
* Optional. The pipeline options which defines the pipeline type and path within the Git repository.
|
|
1011
|
+
*/
|
|
1012
|
+
pipelineConfig?: Schema$PipelineConfig;
|
|
905
1013
|
}
|
|
906
1014
|
/**
|
|
907
1015
|
* `InstallNpmPackages` response message.
|
|
@@ -1233,6 +1341,10 @@ export declare namespace dataform_v1beta1 {
|
|
|
1233
1341
|
* Output only. The code contents of a Notebook to be run.
|
|
1234
1342
|
*/
|
|
1235
1343
|
contents?: string | null;
|
|
1344
|
+
/**
|
|
1345
|
+
* Output only. The path to the notebook file in the repository.
|
|
1346
|
+
*/
|
|
1347
|
+
filePath?: string | null;
|
|
1236
1348
|
/**
|
|
1237
1349
|
* 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.
|
|
1238
1350
|
*/
|
|
@@ -1250,6 +1362,10 @@ export declare namespace dataform_v1beta1 {
|
|
|
1250
1362
|
* Optional. The Google Cloud Storage location to upload the result to. Format: `gs://bucket-name`.
|
|
1251
1363
|
*/
|
|
1252
1364
|
gcsOutputBucket?: string | null;
|
|
1365
|
+
/**
|
|
1366
|
+
* Optional. The Google Cloud Storage destination to upload the snapshot to. For empty URI it defaults to the provided gcs_output_bucket. Format: `gs://bucket-name/path/`.
|
|
1367
|
+
*/
|
|
1368
|
+
gcsRepositorySnapshotDestination?: Schema$GcsRepositorySnapshotDestination;
|
|
1253
1369
|
}
|
|
1254
1370
|
/**
|
|
1255
1371
|
* This resource represents a long-running operation that is the result of a network API call.
|
|
@@ -1342,6 +1458,19 @@ export declare namespace dataform_v1beta1 {
|
|
|
1342
1458
|
*/
|
|
1343
1459
|
tags?: string[] | null;
|
|
1344
1460
|
}
|
|
1461
|
+
/**
|
|
1462
|
+
* Defines the pipeline type and path within the Git repository.
|
|
1463
|
+
*/
|
|
1464
|
+
export interface Schema$PipelineConfig {
|
|
1465
|
+
/**
|
|
1466
|
+
* Required. The relative path within the Git repository where the pipeline is defined. For example, for a Dataform pipeline, it is a path to the folder where `workflow_settings.yaml` or `dataform.json` is located.
|
|
1467
|
+
*/
|
|
1468
|
+
path?: string | null;
|
|
1469
|
+
/**
|
|
1470
|
+
* Required. The type of the pipeline.
|
|
1471
|
+
*/
|
|
1472
|
+
pipelineType?: string | null;
|
|
1473
|
+
}
|
|
1345
1474
|
/**
|
|
1346
1475
|
* An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
1347
1476
|
*/
|
|
@@ -1661,7 +1790,7 @@ export declare namespace dataform_v1beta1 {
|
|
|
1661
1790
|
*/
|
|
1662
1791
|
releaseCompilationResult?: string | null;
|
|
1663
1792
|
/**
|
|
1664
|
-
* Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database
|
|
1793
|
+
* Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the [time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is `UTC`.
|
|
1665
1794
|
*/
|
|
1666
1795
|
timeZone?: string | null;
|
|
1667
1796
|
}
|
|
@@ -1923,6 +2052,24 @@ export declare namespace dataform_v1beta1 {
|
|
|
1923
2052
|
*/
|
|
1924
2053
|
message?: string | null;
|
|
1925
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
|
+
}
|
|
1926
2073
|
/**
|
|
1927
2074
|
* Represents a table update trigger configuration.
|
|
1928
2075
|
*/
|
|
@@ -2085,7 +2232,7 @@ export declare namespace dataform_v1beta1 {
|
|
|
2085
2232
|
*/
|
|
2086
2233
|
releaseConfig?: string | null;
|
|
2087
2234
|
/**
|
|
2088
|
-
* Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database
|
|
2235
|
+
* Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the [time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is `UTC`.
|
|
2089
2236
|
*/
|
|
2090
2237
|
timeZone?: string | null;
|
|
2091
2238
|
/**
|
|
@@ -2093,7 +2240,7 @@ export declare namespace dataform_v1beta1 {
|
|
|
2093
2240
|
*/
|
|
2094
2241
|
updateTime?: string | null;
|
|
2095
2242
|
/**
|
|
2096
|
-
* Optional.
|
|
2243
|
+
* Optional. Trigger configuration for this workflow. If present, the workflow will be triggered based on the specified triggers.
|
|
2097
2244
|
*/
|
|
2098
2245
|
workflowTriggerConfig?: Schema$WorkflowTriggerConfig;
|
|
2099
2246
|
}
|
|
@@ -2125,6 +2272,10 @@ export declare namespace dataform_v1beta1 {
|
|
|
2125
2272
|
* Output only. The workflow invocation's name.
|
|
2126
2273
|
*/
|
|
2127
2274
|
name?: string | null;
|
|
2275
|
+
/**
|
|
2276
|
+
* Output only. The pipeline options which defines the pipeline type and path within the Git repository.
|
|
2277
|
+
*/
|
|
2278
|
+
pipelineConfig?: Schema$PipelineConfig;
|
|
2128
2279
|
/**
|
|
2129
2280
|
* Output only. Metadata indicating whether this resource is user-scoped. `WorkflowInvocation` resource is `user_scoped` only if it is sourced from a compilation result and the compilation result is user-scoped.
|
|
2130
2281
|
*/
|
|
@@ -2209,7 +2360,7 @@ export declare namespace dataform_v1beta1 {
|
|
|
2209
2360
|
*/
|
|
2210
2361
|
maxWaitDuration?: string | null;
|
|
2211
2362
|
/**
|
|
2212
|
-
* Optional. Minimum duration between two consecutive executions. If not specified, the workflow will be executed every time trigger conditions are met and no ongoing workflow execution.
|
|
2363
|
+
* Optional. Minimum duration between two consecutive executions. If not specified, the workflow will be executed every time trigger conditions are met and there is no ongoing workflow execution.
|
|
2213
2364
|
*/
|
|
2214
2365
|
minExecutionDuration?: string | null;
|
|
2215
2366
|
/**
|
|
@@ -2233,10 +2384,18 @@ export declare namespace dataform_v1beta1 {
|
|
|
2233
2384
|
* Output only. A data encryption state of a Git repository if this Workspace is protected by a KMS key.
|
|
2234
2385
|
*/
|
|
2235
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;
|
|
2236
2391
|
/**
|
|
2237
2392
|
* Optional. If set to true, workspaces will not be moved if its linked Repository is moved. Instead, it will be deleted.
|
|
2238
2393
|
*/
|
|
2239
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;
|
|
2240
2399
|
/**
|
|
2241
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.
|
|
2242
2401
|
*/
|
|
@@ -2245,10 +2404,18 @@ export declare namespace dataform_v1beta1 {
|
|
|
2245
2404
|
* Identifier. The workspace's name.
|
|
2246
2405
|
*/
|
|
2247
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;
|
|
2248
2411
|
/**
|
|
2249
2412
|
* Output only. Metadata indicating whether this resource is user-scoped. For `Workspace` resources, the `user_scoped` field is always `true`.
|
|
2250
2413
|
*/
|
|
2251
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;
|
|
2252
2419
|
}
|
|
2253
2420
|
/**
|
|
2254
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.
|
|
@@ -5333,6 +5500,7 @@ export declare namespace dataform_v1beta1 {
|
|
|
5333
5500
|
* // "createTime": "my_createTime",
|
|
5334
5501
|
* // "dataEncryptionState": {},
|
|
5335
5502
|
* // "dataformCoreVersion": "my_dataformCoreVersion",
|
|
5503
|
+
* // "gcsRepositorySnapshotMetadata": {},
|
|
5336
5504
|
* // "gitCommitish": "my_gitCommitish",
|
|
5337
5505
|
* // "internalMetadata": "my_internalMetadata",
|
|
5338
5506
|
* // "name": "my_name",
|
|
@@ -5352,6 +5520,7 @@ export declare namespace dataform_v1beta1 {
|
|
|
5352
5520
|
* // "createTime": "my_createTime",
|
|
5353
5521
|
* // "dataEncryptionState": {},
|
|
5354
5522
|
* // "dataformCoreVersion": "my_dataformCoreVersion",
|
|
5523
|
+
* // "gcsRepositorySnapshotMetadata": {},
|
|
5355
5524
|
* // "gitCommitish": "my_gitCommitish",
|
|
5356
5525
|
* // "internalMetadata": "my_internalMetadata",
|
|
5357
5526
|
* // "name": "my_name",
|
|
@@ -5427,6 +5596,7 @@ export declare namespace dataform_v1beta1 {
|
|
|
5427
5596
|
* // "createTime": "my_createTime",
|
|
5428
5597
|
* // "dataEncryptionState": {},
|
|
5429
5598
|
* // "dataformCoreVersion": "my_dataformCoreVersion",
|
|
5599
|
+
* // "gcsRepositorySnapshotMetadata": {},
|
|
5430
5600
|
* // "gitCommitish": "my_gitCommitish",
|
|
5431
5601
|
* // "internalMetadata": "my_internalMetadata",
|
|
5432
5602
|
* // "name": "my_name",
|
|
@@ -6677,6 +6847,7 @@ export declare namespace dataform_v1beta1 {
|
|
|
6677
6847
|
* // "invocationConfig": {},
|
|
6678
6848
|
* // "invocationTiming": {},
|
|
6679
6849
|
* // "name": "my_name",
|
|
6850
|
+
* // "pipelineConfig": {},
|
|
6680
6851
|
* // "privateResourceMetadata": {},
|
|
6681
6852
|
* // "resolvedCompilationResult": "my_resolvedCompilationResult",
|
|
6682
6853
|
* // "state": "my_state",
|
|
@@ -6694,6 +6865,7 @@ export declare namespace dataform_v1beta1 {
|
|
|
6694
6865
|
* // "invocationConfig": {},
|
|
6695
6866
|
* // "invocationTiming": {},
|
|
6696
6867
|
* // "name": "my_name",
|
|
6868
|
+
* // "pipelineConfig": {},
|
|
6697
6869
|
* // "privateResourceMetadata": {},
|
|
6698
6870
|
* // "resolvedCompilationResult": "my_resolvedCompilationResult",
|
|
6699
6871
|
* // "state": "my_state",
|
|
@@ -6829,6 +7001,7 @@ export declare namespace dataform_v1beta1 {
|
|
|
6829
7001
|
* // "invocationConfig": {},
|
|
6830
7002
|
* // "invocationTiming": {},
|
|
6831
7003
|
* // "name": "my_name",
|
|
7004
|
+
* // "pipelineConfig": {},
|
|
6832
7005
|
* // "privateResourceMetadata": {},
|
|
6833
7006
|
* // "resolvedCompilationResult": "my_resolvedCompilationResult",
|
|
6834
7007
|
* // "state": "my_state",
|
|
@@ -7070,6 +7243,78 @@ export declare namespace dataform_v1beta1 {
|
|
|
7070
7243
|
export class Resource$Projects$Locations$Repositories$Workspaces {
|
|
7071
7244
|
context: APIRequestContext;
|
|
7072
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;
|
|
7073
7318
|
/**
|
|
7074
7319
|
* Applies a Git commit for uncommitted files in a Workspace.
|
|
7075
7320
|
* @example
|
|
@@ -7187,10 +7432,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
7187
7432
|
* // {
|
|
7188
7433
|
* // "createTime": "my_createTime",
|
|
7189
7434
|
* // "dataEncryptionState": {},
|
|
7435
|
+
* // "depth": 0,
|
|
7190
7436
|
* // "disableMoves": false,
|
|
7437
|
+
* // "enableBranchManagement": false,
|
|
7191
7438
|
* // "internalMetadata": "my_internalMetadata",
|
|
7192
7439
|
* // "name": "my_name",
|
|
7193
|
-
* // "
|
|
7440
|
+
* // "originalBranch": "my_originalBranch",
|
|
7441
|
+
* // "privateResourceMetadata": {},
|
|
7442
|
+
* // "shallow": false
|
|
7194
7443
|
* // }
|
|
7195
7444
|
* },
|
|
7196
7445
|
* });
|
|
@@ -7200,10 +7449,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
7200
7449
|
* // {
|
|
7201
7450
|
* // "createTime": "my_createTime",
|
|
7202
7451
|
* // "dataEncryptionState": {},
|
|
7452
|
+
* // "depth": 0,
|
|
7203
7453
|
* // "disableMoves": false,
|
|
7454
|
+
* // "enableBranchManagement": false,
|
|
7204
7455
|
* // "internalMetadata": "my_internalMetadata",
|
|
7205
7456
|
* // "name": "my_name",
|
|
7206
|
-
* // "
|
|
7457
|
+
* // "originalBranch": "my_originalBranch",
|
|
7458
|
+
* // "privateResourceMetadata": {},
|
|
7459
|
+
* // "shallow": false
|
|
7207
7460
|
* // }
|
|
7208
7461
|
* }
|
|
7209
7462
|
*
|
|
@@ -7286,6 +7539,214 @@ export declare namespace dataform_v1beta1 {
|
|
|
7286
7539
|
delete(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
7287
7540
|
delete(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
7288
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;
|
|
7289
7750
|
/**
|
|
7290
7751
|
* Fetches Git diff for an uncommitted file in a Workspace.
|
|
7291
7752
|
* @example
|
|
@@ -7531,10 +7992,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
7531
7992
|
* // {
|
|
7532
7993
|
* // "createTime": "my_createTime",
|
|
7533
7994
|
* // "dataEncryptionState": {},
|
|
7995
|
+
* // "depth": 0,
|
|
7534
7996
|
* // "disableMoves": false,
|
|
7997
|
+
* // "enableBranchManagement": false,
|
|
7535
7998
|
* // "internalMetadata": "my_internalMetadata",
|
|
7536
7999
|
* // "name": "my_name",
|
|
7537
|
-
* // "
|
|
8000
|
+
* // "originalBranch": "my_originalBranch",
|
|
8001
|
+
* // "privateResourceMetadata": {},
|
|
8002
|
+
* // "shallow": false
|
|
7538
8003
|
* // }
|
|
7539
8004
|
* }
|
|
7540
8005
|
*
|
|
@@ -7668,7 +8133,9 @@ export declare namespace dataform_v1beta1 {
|
|
|
7668
8133
|
* // Request body metadata
|
|
7669
8134
|
* requestBody: {
|
|
7670
8135
|
* // request body parameters
|
|
7671
|
-
* // {
|
|
8136
|
+
* // {
|
|
8137
|
+
* // "pipelineConfig": {}
|
|
8138
|
+
* // }
|
|
7672
8139
|
* },
|
|
7673
8140
|
* },
|
|
7674
8141
|
* );
|
|
@@ -8628,6 +9095,79 @@ export declare namespace dataform_v1beta1 {
|
|
|
8628
9095
|
setIamPolicy(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
8629
9096
|
setIamPolicy(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Setiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
8630
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;
|
|
8631
9171
|
/**
|
|
8632
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.
|
|
8633
9173
|
* @example
|
|
@@ -8776,6 +9316,16 @@ export declare namespace dataform_v1beta1 {
|
|
|
8776
9316
|
writeFile(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Writefile, callback: BodyResponseCallback<Schema$WriteFileResponse>): void;
|
|
8777
9317
|
writeFile(callback: BodyResponseCallback<Schema$WriteFileResponse>): void;
|
|
8778
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
|
+
}
|
|
8779
9329
|
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Commit extends StandardParameters {
|
|
8780
9330
|
/**
|
|
8781
9331
|
* Required. The workspace's name.
|
|
@@ -8806,6 +9356,40 @@ export declare namespace dataform_v1beta1 {
|
|
|
8806
9356
|
*/
|
|
8807
9357
|
name?: string;
|
|
8808
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
|
+
}
|
|
8809
9393
|
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchfilediff extends StandardParameters {
|
|
8810
9394
|
/**
|
|
8811
9395
|
* Required. The file's full path including filename, relative to the workspace root.
|
|
@@ -9024,6 +9608,16 @@ export declare namespace dataform_v1beta1 {
|
|
|
9024
9608
|
*/
|
|
9025
9609
|
requestBody?: Schema$SetIamPolicyRequest;
|
|
9026
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
|
+
}
|
|
9027
9621
|
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Testiampermissions extends StandardParameters {
|
|
9028
9622
|
/**
|
|
9029
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.
|