From f48d918863db5b1aeff084b562b087ce9b92e8ea Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 23 Aug 2022 00:06:19 +0000 Subject: [PATCH] fix: better support for fallback mode (#13) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 468790263 Source-Link: https://github.com/googleapis/googleapis/commit/873ab456273d105245df0fb82a6c17a814553b80 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cb6f37aeff2a3472e40a7bbace8c67d75e24bee5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9 --- .../dataform.cancel_workflow_invocation.js | 3 + .../dataform.commit_workspace_changes.js | 3 + .../dataform.create_compilation_result.js | 3 + .../v1alpha2/dataform.create_repository.js | 3 + .../dataform.create_workflow_invocation.js | 3 + .../v1alpha2/dataform.create_workspace.js | 3 + .../v1alpha2/dataform.delete_repository.js | 3 + .../dataform.delete_workflow_invocation.js | 3 + .../v1alpha2/dataform.delete_workspace.js | 3 + .../v1alpha2/dataform.fetch_file_diff.js | 3 + .../dataform.fetch_file_git_statuses.js | 3 + .../dataform.fetch_git_ahead_behind.js | 3 + .../dataform.fetch_remote_branches.js | 3 + .../dataform.get_compilation_result.js | 3 + .../v1alpha2/dataform.get_repository.js | 3 + .../dataform.get_workflow_invocation.js | 3 + .../v1alpha2/dataform.get_workspace.js | 3 + .../v1alpha2/dataform.install_npm_packages.js | 3 + .../dataform.list_compilation_results.js | 3 + .../v1alpha2/dataform.list_repositories.js | 3 + .../dataform.list_workflow_invocations.js | 3 + .../v1alpha2/dataform.list_workspaces.js | 3 + .../v1alpha2/dataform.make_directory.js | 3 + .../v1alpha2/dataform.move_directory.js | 3 + .../generated/v1alpha2/dataform.move_file.js | 3 + .../v1alpha2/dataform.pull_git_commits.js | 3 + .../v1alpha2/dataform.push_git_commits.js | 3 + ...taform.query_compilation_result_actions.js | 3 + .../dataform.query_directory_contents.js | 3 + ...aform.query_workflow_invocation_actions.js | 3 + .../generated/v1alpha2/dataform.read_file.js | 3 + .../v1alpha2/dataform.remove_directory.js | 3 + .../v1alpha2/dataform.remove_file.js | 3 + .../dataform.reset_workspace_changes.js | 3 + .../v1alpha2/dataform.update_repository.js | 3 + .../generated/v1alpha2/dataform.write_file.js | 3 + ...tadata.google.cloud.dataform.v1alpha2.json | 72 ++++---- .../dataform.cancel_workflow_invocation.js | 3 + .../dataform.commit_workspace_changes.js | 3 + .../dataform.create_compilation_result.js | 3 + .../v1beta1/dataform.create_repository.js | 3 + .../dataform.create_workflow_invocation.js | 3 + .../v1beta1/dataform.create_workspace.js | 3 + .../v1beta1/dataform.delete_repository.js | 3 + .../dataform.delete_workflow_invocation.js | 3 + .../v1beta1/dataform.delete_workspace.js | 3 + .../v1beta1/dataform.fetch_file_diff.js | 3 + .../dataform.fetch_file_git_statuses.js | 3 + .../dataform.fetch_git_ahead_behind.js | 3 + .../v1beta1/dataform.fetch_remote_branches.js | 3 + .../dataform.get_compilation_result.js | 3 + .../v1beta1/dataform.get_repository.js | 3 + .../dataform.get_workflow_invocation.js | 3 + .../v1beta1/dataform.get_workspace.js | 3 + .../v1beta1/dataform.install_npm_packages.js | 3 + .../dataform.list_compilation_results.js | 3 + .../v1beta1/dataform.list_repositories.js | 3 + .../dataform.list_workflow_invocations.js | 3 + .../v1beta1/dataform.list_workspaces.js | 3 + .../v1beta1/dataform.make_directory.js | 3 + .../v1beta1/dataform.move_directory.js | 3 + .../generated/v1beta1/dataform.move_file.js | 3 + .../v1beta1/dataform.pull_git_commits.js | 3 + .../v1beta1/dataform.push_git_commits.js | 3 + ...taform.query_compilation_result_actions.js | 3 + .../dataform.query_directory_contents.js | 3 + ...aform.query_workflow_invocation_actions.js | 3 + .../generated/v1beta1/dataform.read_file.js | 3 + .../v1beta1/dataform.remove_directory.js | 3 + .../generated/v1beta1/dataform.remove_file.js | 3 + .../dataform.reset_workspace_changes.js | 3 + .../v1beta1/dataform.update_repository.js | 3 + .../generated/v1beta1/dataform.write_file.js | 3 + ...etadata.google.cloud.dataform.v1beta1.json | 72 ++++---- src/v1alpha2/dataform_client.ts | 32 ++-- src/v1beta1/dataform_client.ts | 32 ++-- test/gapic_dataform_v1alpha2.ts | 156 +++++++++--------- test/gapic_dataform_v1beta1.ts | 156 +++++++++--------- 78 files changed, 478 insertions(+), 258 deletions(-) diff --git a/samples/generated/v1alpha2/dataform.cancel_workflow_invocation.js b/samples/generated/v1alpha2/dataform.cancel_workflow_invocation.js index 9ba5e29..65ab554 100644 --- a/samples/generated/v1alpha2/dataform.cancel_workflow_invocation.js +++ b/samples/generated/v1alpha2/dataform.cancel_workflow_invocation.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1alpha2_generated_Dataform_CancelWorkflowInvocation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.commit_workspace_changes.js b/samples/generated/v1alpha2/dataform.commit_workspace_changes.js index 205d23a..e4b9e76 100644 --- a/samples/generated/v1alpha2/dataform.commit_workspace_changes.js +++ b/samples/generated/v1alpha2/dataform.commit_workspace_changes.js @@ -23,6 +23,9 @@ function main(name, author) { // [START dataform_v1alpha2_generated_Dataform_CommitWorkspaceChanges_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.create_compilation_result.js b/samples/generated/v1alpha2/dataform.create_compilation_result.js index 800f91d..42cafe8 100644 --- a/samples/generated/v1alpha2/dataform.create_compilation_result.js +++ b/samples/generated/v1alpha2/dataform.create_compilation_result.js @@ -23,6 +23,9 @@ function main(parent, compilationResult) { // [START dataform_v1alpha2_generated_Dataform_CreateCompilationResult_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.create_repository.js b/samples/generated/v1alpha2/dataform.create_repository.js index 50c7e43..b734380 100644 --- a/samples/generated/v1alpha2/dataform.create_repository.js +++ b/samples/generated/v1alpha2/dataform.create_repository.js @@ -23,6 +23,9 @@ function main(parent, repository, repositoryId) { // [START dataform_v1alpha2_generated_Dataform_CreateRepository_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.create_workflow_invocation.js b/samples/generated/v1alpha2/dataform.create_workflow_invocation.js index cf83325..7aeaced 100644 --- a/samples/generated/v1alpha2/dataform.create_workflow_invocation.js +++ b/samples/generated/v1alpha2/dataform.create_workflow_invocation.js @@ -23,6 +23,9 @@ function main(parent, workflowInvocation) { // [START dataform_v1alpha2_generated_Dataform_CreateWorkflowInvocation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.create_workspace.js b/samples/generated/v1alpha2/dataform.create_workspace.js index 60695fc..2b55956 100644 --- a/samples/generated/v1alpha2/dataform.create_workspace.js +++ b/samples/generated/v1alpha2/dataform.create_workspace.js @@ -23,6 +23,9 @@ function main(parent, workspace, workspaceId) { // [START dataform_v1alpha2_generated_Dataform_CreateWorkspace_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.delete_repository.js b/samples/generated/v1alpha2/dataform.delete_repository.js index 5687647..bfe3dc9 100644 --- a/samples/generated/v1alpha2/dataform.delete_repository.js +++ b/samples/generated/v1alpha2/dataform.delete_repository.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1alpha2_generated_Dataform_DeleteRepository_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.delete_workflow_invocation.js b/samples/generated/v1alpha2/dataform.delete_workflow_invocation.js index 5a02d8c..800461d 100644 --- a/samples/generated/v1alpha2/dataform.delete_workflow_invocation.js +++ b/samples/generated/v1alpha2/dataform.delete_workflow_invocation.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1alpha2_generated_Dataform_DeleteWorkflowInvocation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.delete_workspace.js b/samples/generated/v1alpha2/dataform.delete_workspace.js index db8f6bf..f773c39 100644 --- a/samples/generated/v1alpha2/dataform.delete_workspace.js +++ b/samples/generated/v1alpha2/dataform.delete_workspace.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1alpha2_generated_Dataform_DeleteWorkspace_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.fetch_file_diff.js b/samples/generated/v1alpha2/dataform.fetch_file_diff.js index a600b93..df28731 100644 --- a/samples/generated/v1alpha2/dataform.fetch_file_diff.js +++ b/samples/generated/v1alpha2/dataform.fetch_file_diff.js @@ -23,6 +23,9 @@ function main(workspace, path) { // [START dataform_v1alpha2_generated_Dataform_FetchFileDiff_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.fetch_file_git_statuses.js b/samples/generated/v1alpha2/dataform.fetch_file_git_statuses.js index c725234..ba0e827 100644 --- a/samples/generated/v1alpha2/dataform.fetch_file_git_statuses.js +++ b/samples/generated/v1alpha2/dataform.fetch_file_git_statuses.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1alpha2_generated_Dataform_FetchFileGitStatuses_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.fetch_git_ahead_behind.js b/samples/generated/v1alpha2/dataform.fetch_git_ahead_behind.js index 3dea206..1dcc54b 100644 --- a/samples/generated/v1alpha2/dataform.fetch_git_ahead_behind.js +++ b/samples/generated/v1alpha2/dataform.fetch_git_ahead_behind.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1alpha2_generated_Dataform_FetchGitAheadBehind_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.fetch_remote_branches.js b/samples/generated/v1alpha2/dataform.fetch_remote_branches.js index fd74201..c6c2b7f 100644 --- a/samples/generated/v1alpha2/dataform.fetch_remote_branches.js +++ b/samples/generated/v1alpha2/dataform.fetch_remote_branches.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1alpha2_generated_Dataform_FetchRemoteBranches_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.get_compilation_result.js b/samples/generated/v1alpha2/dataform.get_compilation_result.js index 0f074d3..38711f9 100644 --- a/samples/generated/v1alpha2/dataform.get_compilation_result.js +++ b/samples/generated/v1alpha2/dataform.get_compilation_result.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1alpha2_generated_Dataform_GetCompilationResult_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.get_repository.js b/samples/generated/v1alpha2/dataform.get_repository.js index 3c712d1..e633675 100644 --- a/samples/generated/v1alpha2/dataform.get_repository.js +++ b/samples/generated/v1alpha2/dataform.get_repository.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1alpha2_generated_Dataform_GetRepository_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.get_workflow_invocation.js b/samples/generated/v1alpha2/dataform.get_workflow_invocation.js index 7ffa345..8ed6ab4 100644 --- a/samples/generated/v1alpha2/dataform.get_workflow_invocation.js +++ b/samples/generated/v1alpha2/dataform.get_workflow_invocation.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1alpha2_generated_Dataform_GetWorkflowInvocation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.get_workspace.js b/samples/generated/v1alpha2/dataform.get_workspace.js index bf3447d..294d027 100644 --- a/samples/generated/v1alpha2/dataform.get_workspace.js +++ b/samples/generated/v1alpha2/dataform.get_workspace.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1alpha2_generated_Dataform_GetWorkspace_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.install_npm_packages.js b/samples/generated/v1alpha2/dataform.install_npm_packages.js index aa80216..bfae9b7 100644 --- a/samples/generated/v1alpha2/dataform.install_npm_packages.js +++ b/samples/generated/v1alpha2/dataform.install_npm_packages.js @@ -23,6 +23,9 @@ function main(workspace) { // [START dataform_v1alpha2_generated_Dataform_InstallNpmPackages_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.list_compilation_results.js b/samples/generated/v1alpha2/dataform.list_compilation_results.js index 44528b5..f463dc1 100644 --- a/samples/generated/v1alpha2/dataform.list_compilation_results.js +++ b/samples/generated/v1alpha2/dataform.list_compilation_results.js @@ -23,6 +23,9 @@ function main(parent) { // [START dataform_v1alpha2_generated_Dataform_ListCompilationResults_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.list_repositories.js b/samples/generated/v1alpha2/dataform.list_repositories.js index f203cdb..2f81c22 100644 --- a/samples/generated/v1alpha2/dataform.list_repositories.js +++ b/samples/generated/v1alpha2/dataform.list_repositories.js @@ -23,6 +23,9 @@ function main(parent) { // [START dataform_v1alpha2_generated_Dataform_ListRepositories_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.list_workflow_invocations.js b/samples/generated/v1alpha2/dataform.list_workflow_invocations.js index 3ebf894..12e7d3e 100644 --- a/samples/generated/v1alpha2/dataform.list_workflow_invocations.js +++ b/samples/generated/v1alpha2/dataform.list_workflow_invocations.js @@ -23,6 +23,9 @@ function main(parent) { // [START dataform_v1alpha2_generated_Dataform_ListWorkflowInvocations_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.list_workspaces.js b/samples/generated/v1alpha2/dataform.list_workspaces.js index e2c4f06..8a1f1c9 100644 --- a/samples/generated/v1alpha2/dataform.list_workspaces.js +++ b/samples/generated/v1alpha2/dataform.list_workspaces.js @@ -23,6 +23,9 @@ function main(parent) { // [START dataform_v1alpha2_generated_Dataform_ListWorkspaces_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.make_directory.js b/samples/generated/v1alpha2/dataform.make_directory.js index 6111963..faf321e 100644 --- a/samples/generated/v1alpha2/dataform.make_directory.js +++ b/samples/generated/v1alpha2/dataform.make_directory.js @@ -23,6 +23,9 @@ function main(workspace, path) { // [START dataform_v1alpha2_generated_Dataform_MakeDirectory_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.move_directory.js b/samples/generated/v1alpha2/dataform.move_directory.js index 336a480..d50b32b 100644 --- a/samples/generated/v1alpha2/dataform.move_directory.js +++ b/samples/generated/v1alpha2/dataform.move_directory.js @@ -23,6 +23,9 @@ function main(workspace, path, newPath) { // [START dataform_v1alpha2_generated_Dataform_MoveDirectory_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.move_file.js b/samples/generated/v1alpha2/dataform.move_file.js index c95054b..7f04c99 100644 --- a/samples/generated/v1alpha2/dataform.move_file.js +++ b/samples/generated/v1alpha2/dataform.move_file.js @@ -23,6 +23,9 @@ function main(workspace, path, newPath) { // [START dataform_v1alpha2_generated_Dataform_MoveFile_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.pull_git_commits.js b/samples/generated/v1alpha2/dataform.pull_git_commits.js index edbefad..2b6de81 100644 --- a/samples/generated/v1alpha2/dataform.pull_git_commits.js +++ b/samples/generated/v1alpha2/dataform.pull_git_commits.js @@ -23,6 +23,9 @@ function main(name, author) { // [START dataform_v1alpha2_generated_Dataform_PullGitCommits_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.push_git_commits.js b/samples/generated/v1alpha2/dataform.push_git_commits.js index ea15c74..bdcd4b2 100644 --- a/samples/generated/v1alpha2/dataform.push_git_commits.js +++ b/samples/generated/v1alpha2/dataform.push_git_commits.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1alpha2_generated_Dataform_PushGitCommits_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.query_compilation_result_actions.js b/samples/generated/v1alpha2/dataform.query_compilation_result_actions.js index d310fd7..e829710 100644 --- a/samples/generated/v1alpha2/dataform.query_compilation_result_actions.js +++ b/samples/generated/v1alpha2/dataform.query_compilation_result_actions.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1alpha2_generated_Dataform_QueryCompilationResultActions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.query_directory_contents.js b/samples/generated/v1alpha2/dataform.query_directory_contents.js index 37c747b..2e5c0bc 100644 --- a/samples/generated/v1alpha2/dataform.query_directory_contents.js +++ b/samples/generated/v1alpha2/dataform.query_directory_contents.js @@ -23,6 +23,9 @@ function main(workspace) { // [START dataform_v1alpha2_generated_Dataform_QueryDirectoryContents_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.query_workflow_invocation_actions.js b/samples/generated/v1alpha2/dataform.query_workflow_invocation_actions.js index bc2f32d..0abc8a2 100644 --- a/samples/generated/v1alpha2/dataform.query_workflow_invocation_actions.js +++ b/samples/generated/v1alpha2/dataform.query_workflow_invocation_actions.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1alpha2_generated_Dataform_QueryWorkflowInvocationActions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.read_file.js b/samples/generated/v1alpha2/dataform.read_file.js index 0bd285c..7cd0572 100644 --- a/samples/generated/v1alpha2/dataform.read_file.js +++ b/samples/generated/v1alpha2/dataform.read_file.js @@ -23,6 +23,9 @@ function main(workspace, path) { // [START dataform_v1alpha2_generated_Dataform_ReadFile_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.remove_directory.js b/samples/generated/v1alpha2/dataform.remove_directory.js index f414ee4..157e012 100644 --- a/samples/generated/v1alpha2/dataform.remove_directory.js +++ b/samples/generated/v1alpha2/dataform.remove_directory.js @@ -23,6 +23,9 @@ function main(workspace, path) { // [START dataform_v1alpha2_generated_Dataform_RemoveDirectory_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.remove_file.js b/samples/generated/v1alpha2/dataform.remove_file.js index f8cfb94..396738b 100644 --- a/samples/generated/v1alpha2/dataform.remove_file.js +++ b/samples/generated/v1alpha2/dataform.remove_file.js @@ -23,6 +23,9 @@ function main(workspace, path) { // [START dataform_v1alpha2_generated_Dataform_RemoveFile_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.reset_workspace_changes.js b/samples/generated/v1alpha2/dataform.reset_workspace_changes.js index 7efa0a0..d91ec7f 100644 --- a/samples/generated/v1alpha2/dataform.reset_workspace_changes.js +++ b/samples/generated/v1alpha2/dataform.reset_workspace_changes.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1alpha2_generated_Dataform_ResetWorkspaceChanges_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.update_repository.js b/samples/generated/v1alpha2/dataform.update_repository.js index 067c1ab..48c5d61 100644 --- a/samples/generated/v1alpha2/dataform.update_repository.js +++ b/samples/generated/v1alpha2/dataform.update_repository.js @@ -23,6 +23,9 @@ function main(repository) { // [START dataform_v1alpha2_generated_Dataform_UpdateRepository_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/dataform.write_file.js b/samples/generated/v1alpha2/dataform.write_file.js index c5f695a..08ed5bb 100644 --- a/samples/generated/v1alpha2/dataform.write_file.js +++ b/samples/generated/v1alpha2/dataform.write_file.js @@ -23,6 +23,9 @@ function main(workspace, path, contents) { // [START dataform_v1alpha2_generated_Dataform_WriteFile_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1alpha2/snippet_metadata.google.cloud.dataform.v1alpha2.json b/samples/generated/v1alpha2/snippet_metadata.google.cloud.dataform.v1alpha2.json index 1595f99..344d9ef 100644 --- a/samples/generated/v1alpha2/snippet_metadata.google.cloud.dataform.v1alpha2.json +++ b/samples/generated/v1alpha2/snippet_metadata.google.cloud.dataform.v1alpha2.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -78,7 +78,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -118,7 +118,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -166,7 +166,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -210,7 +210,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -254,7 +254,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -294,7 +294,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -350,7 +350,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -390,7 +390,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -438,7 +438,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -478,7 +478,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -518,7 +518,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -566,7 +566,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -610,7 +610,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -650,7 +650,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -694,7 +694,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -746,7 +746,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -794,7 +794,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -838,7 +838,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 74, "type": "FULL" } ], @@ -890,7 +890,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -934,7 +934,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -978,7 +978,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -1026,7 +1026,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -1070,7 +1070,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -1114,7 +1114,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -1162,7 +1162,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -1210,7 +1210,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -1258,7 +1258,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1298,7 +1298,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1342,7 +1342,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 74, "type": "FULL" } ], @@ -1394,7 +1394,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -1442,7 +1442,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1482,7 +1482,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -1526,7 +1526,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1566,7 +1566,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1606,7 +1606,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], diff --git a/samples/generated/v1beta1/dataform.cancel_workflow_invocation.js b/samples/generated/v1beta1/dataform.cancel_workflow_invocation.js index 24d1ecc..2028cb6 100644 --- a/samples/generated/v1beta1/dataform.cancel_workflow_invocation.js +++ b/samples/generated/v1beta1/dataform.cancel_workflow_invocation.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1beta1_generated_Dataform_CancelWorkflowInvocation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.commit_workspace_changes.js b/samples/generated/v1beta1/dataform.commit_workspace_changes.js index 09bfef8..01e533e 100644 --- a/samples/generated/v1beta1/dataform.commit_workspace_changes.js +++ b/samples/generated/v1beta1/dataform.commit_workspace_changes.js @@ -23,6 +23,9 @@ function main(name, author) { // [START dataform_v1beta1_generated_Dataform_CommitWorkspaceChanges_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.create_compilation_result.js b/samples/generated/v1beta1/dataform.create_compilation_result.js index 98e7d25..8826207 100644 --- a/samples/generated/v1beta1/dataform.create_compilation_result.js +++ b/samples/generated/v1beta1/dataform.create_compilation_result.js @@ -23,6 +23,9 @@ function main(parent, compilationResult) { // [START dataform_v1beta1_generated_Dataform_CreateCompilationResult_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.create_repository.js b/samples/generated/v1beta1/dataform.create_repository.js index e1ef1fd..b0d66cd 100644 --- a/samples/generated/v1beta1/dataform.create_repository.js +++ b/samples/generated/v1beta1/dataform.create_repository.js @@ -23,6 +23,9 @@ function main(parent, repository, repositoryId) { // [START dataform_v1beta1_generated_Dataform_CreateRepository_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.create_workflow_invocation.js b/samples/generated/v1beta1/dataform.create_workflow_invocation.js index 179dfbb..9108d48 100644 --- a/samples/generated/v1beta1/dataform.create_workflow_invocation.js +++ b/samples/generated/v1beta1/dataform.create_workflow_invocation.js @@ -23,6 +23,9 @@ function main(parent, workflowInvocation) { // [START dataform_v1beta1_generated_Dataform_CreateWorkflowInvocation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.create_workspace.js b/samples/generated/v1beta1/dataform.create_workspace.js index a99a33a..531becb 100644 --- a/samples/generated/v1beta1/dataform.create_workspace.js +++ b/samples/generated/v1beta1/dataform.create_workspace.js @@ -23,6 +23,9 @@ function main(parent, workspace, workspaceId) { // [START dataform_v1beta1_generated_Dataform_CreateWorkspace_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.delete_repository.js b/samples/generated/v1beta1/dataform.delete_repository.js index 172f3a1..ad2ad43 100644 --- a/samples/generated/v1beta1/dataform.delete_repository.js +++ b/samples/generated/v1beta1/dataform.delete_repository.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1beta1_generated_Dataform_DeleteRepository_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.delete_workflow_invocation.js b/samples/generated/v1beta1/dataform.delete_workflow_invocation.js index 697d2e3..ab0aaac 100644 --- a/samples/generated/v1beta1/dataform.delete_workflow_invocation.js +++ b/samples/generated/v1beta1/dataform.delete_workflow_invocation.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1beta1_generated_Dataform_DeleteWorkflowInvocation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.delete_workspace.js b/samples/generated/v1beta1/dataform.delete_workspace.js index c6e8ae2..5c0060d 100644 --- a/samples/generated/v1beta1/dataform.delete_workspace.js +++ b/samples/generated/v1beta1/dataform.delete_workspace.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1beta1_generated_Dataform_DeleteWorkspace_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.fetch_file_diff.js b/samples/generated/v1beta1/dataform.fetch_file_diff.js index 362137f..2df2eb2 100644 --- a/samples/generated/v1beta1/dataform.fetch_file_diff.js +++ b/samples/generated/v1beta1/dataform.fetch_file_diff.js @@ -23,6 +23,9 @@ function main(workspace, path) { // [START dataform_v1beta1_generated_Dataform_FetchFileDiff_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.fetch_file_git_statuses.js b/samples/generated/v1beta1/dataform.fetch_file_git_statuses.js index 53302d6..03cfe21 100644 --- a/samples/generated/v1beta1/dataform.fetch_file_git_statuses.js +++ b/samples/generated/v1beta1/dataform.fetch_file_git_statuses.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1beta1_generated_Dataform_FetchFileGitStatuses_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.fetch_git_ahead_behind.js b/samples/generated/v1beta1/dataform.fetch_git_ahead_behind.js index e8b3db2..733dde9 100644 --- a/samples/generated/v1beta1/dataform.fetch_git_ahead_behind.js +++ b/samples/generated/v1beta1/dataform.fetch_git_ahead_behind.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1beta1_generated_Dataform_FetchGitAheadBehind_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.fetch_remote_branches.js b/samples/generated/v1beta1/dataform.fetch_remote_branches.js index 1c998ab..43c3d2a 100644 --- a/samples/generated/v1beta1/dataform.fetch_remote_branches.js +++ b/samples/generated/v1beta1/dataform.fetch_remote_branches.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1beta1_generated_Dataform_FetchRemoteBranches_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.get_compilation_result.js b/samples/generated/v1beta1/dataform.get_compilation_result.js index 19ed3d1..ee22ddb 100644 --- a/samples/generated/v1beta1/dataform.get_compilation_result.js +++ b/samples/generated/v1beta1/dataform.get_compilation_result.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1beta1_generated_Dataform_GetCompilationResult_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.get_repository.js b/samples/generated/v1beta1/dataform.get_repository.js index 2533229..071180c 100644 --- a/samples/generated/v1beta1/dataform.get_repository.js +++ b/samples/generated/v1beta1/dataform.get_repository.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1beta1_generated_Dataform_GetRepository_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.get_workflow_invocation.js b/samples/generated/v1beta1/dataform.get_workflow_invocation.js index 3fa01e1..9e48759 100644 --- a/samples/generated/v1beta1/dataform.get_workflow_invocation.js +++ b/samples/generated/v1beta1/dataform.get_workflow_invocation.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1beta1_generated_Dataform_GetWorkflowInvocation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.get_workspace.js b/samples/generated/v1beta1/dataform.get_workspace.js index a49c652..6c22c2e 100644 --- a/samples/generated/v1beta1/dataform.get_workspace.js +++ b/samples/generated/v1beta1/dataform.get_workspace.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1beta1_generated_Dataform_GetWorkspace_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.install_npm_packages.js b/samples/generated/v1beta1/dataform.install_npm_packages.js index 0d06ee6..d8ecbf9 100644 --- a/samples/generated/v1beta1/dataform.install_npm_packages.js +++ b/samples/generated/v1beta1/dataform.install_npm_packages.js @@ -23,6 +23,9 @@ function main(workspace) { // [START dataform_v1beta1_generated_Dataform_InstallNpmPackages_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.list_compilation_results.js b/samples/generated/v1beta1/dataform.list_compilation_results.js index 1ae1ad4..ec422dd 100644 --- a/samples/generated/v1beta1/dataform.list_compilation_results.js +++ b/samples/generated/v1beta1/dataform.list_compilation_results.js @@ -23,6 +23,9 @@ function main(parent) { // [START dataform_v1beta1_generated_Dataform_ListCompilationResults_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.list_repositories.js b/samples/generated/v1beta1/dataform.list_repositories.js index 787e921..279161f 100644 --- a/samples/generated/v1beta1/dataform.list_repositories.js +++ b/samples/generated/v1beta1/dataform.list_repositories.js @@ -23,6 +23,9 @@ function main(parent) { // [START dataform_v1beta1_generated_Dataform_ListRepositories_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.list_workflow_invocations.js b/samples/generated/v1beta1/dataform.list_workflow_invocations.js index 2d599f0..e9194a1 100644 --- a/samples/generated/v1beta1/dataform.list_workflow_invocations.js +++ b/samples/generated/v1beta1/dataform.list_workflow_invocations.js @@ -23,6 +23,9 @@ function main(parent) { // [START dataform_v1beta1_generated_Dataform_ListWorkflowInvocations_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.list_workspaces.js b/samples/generated/v1beta1/dataform.list_workspaces.js index 708c9d0..fbf8647 100644 --- a/samples/generated/v1beta1/dataform.list_workspaces.js +++ b/samples/generated/v1beta1/dataform.list_workspaces.js @@ -23,6 +23,9 @@ function main(parent) { // [START dataform_v1beta1_generated_Dataform_ListWorkspaces_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.make_directory.js b/samples/generated/v1beta1/dataform.make_directory.js index fe239f6..b352c7b 100644 --- a/samples/generated/v1beta1/dataform.make_directory.js +++ b/samples/generated/v1beta1/dataform.make_directory.js @@ -23,6 +23,9 @@ function main(workspace, path) { // [START dataform_v1beta1_generated_Dataform_MakeDirectory_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.move_directory.js b/samples/generated/v1beta1/dataform.move_directory.js index 2d43a94..ec43257 100644 --- a/samples/generated/v1beta1/dataform.move_directory.js +++ b/samples/generated/v1beta1/dataform.move_directory.js @@ -23,6 +23,9 @@ function main(workspace, path, newPath) { // [START dataform_v1beta1_generated_Dataform_MoveDirectory_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.move_file.js b/samples/generated/v1beta1/dataform.move_file.js index 64efc20..c00db1f 100644 --- a/samples/generated/v1beta1/dataform.move_file.js +++ b/samples/generated/v1beta1/dataform.move_file.js @@ -23,6 +23,9 @@ function main(workspace, path, newPath) { // [START dataform_v1beta1_generated_Dataform_MoveFile_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.pull_git_commits.js b/samples/generated/v1beta1/dataform.pull_git_commits.js index d3590eb..18c8f38 100644 --- a/samples/generated/v1beta1/dataform.pull_git_commits.js +++ b/samples/generated/v1beta1/dataform.pull_git_commits.js @@ -23,6 +23,9 @@ function main(name, author) { // [START dataform_v1beta1_generated_Dataform_PullGitCommits_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.push_git_commits.js b/samples/generated/v1beta1/dataform.push_git_commits.js index a905849..0863cf3 100644 --- a/samples/generated/v1beta1/dataform.push_git_commits.js +++ b/samples/generated/v1beta1/dataform.push_git_commits.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1beta1_generated_Dataform_PushGitCommits_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.query_compilation_result_actions.js b/samples/generated/v1beta1/dataform.query_compilation_result_actions.js index 9d59881..1690b94 100644 --- a/samples/generated/v1beta1/dataform.query_compilation_result_actions.js +++ b/samples/generated/v1beta1/dataform.query_compilation_result_actions.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1beta1_generated_Dataform_QueryCompilationResultActions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.query_directory_contents.js b/samples/generated/v1beta1/dataform.query_directory_contents.js index a086f74..c779211 100644 --- a/samples/generated/v1beta1/dataform.query_directory_contents.js +++ b/samples/generated/v1beta1/dataform.query_directory_contents.js @@ -23,6 +23,9 @@ function main(workspace) { // [START dataform_v1beta1_generated_Dataform_QueryDirectoryContents_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.query_workflow_invocation_actions.js b/samples/generated/v1beta1/dataform.query_workflow_invocation_actions.js index 7a276ef..9a7531e 100644 --- a/samples/generated/v1beta1/dataform.query_workflow_invocation_actions.js +++ b/samples/generated/v1beta1/dataform.query_workflow_invocation_actions.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1beta1_generated_Dataform_QueryWorkflowInvocationActions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.read_file.js b/samples/generated/v1beta1/dataform.read_file.js index 2893ceb..61d5eeb 100644 --- a/samples/generated/v1beta1/dataform.read_file.js +++ b/samples/generated/v1beta1/dataform.read_file.js @@ -23,6 +23,9 @@ function main(workspace, path) { // [START dataform_v1beta1_generated_Dataform_ReadFile_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.remove_directory.js b/samples/generated/v1beta1/dataform.remove_directory.js index 9f94153..c22c6a1 100644 --- a/samples/generated/v1beta1/dataform.remove_directory.js +++ b/samples/generated/v1beta1/dataform.remove_directory.js @@ -23,6 +23,9 @@ function main(workspace, path) { // [START dataform_v1beta1_generated_Dataform_RemoveDirectory_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.remove_file.js b/samples/generated/v1beta1/dataform.remove_file.js index e7ef6a1..22a7529 100644 --- a/samples/generated/v1beta1/dataform.remove_file.js +++ b/samples/generated/v1beta1/dataform.remove_file.js @@ -23,6 +23,9 @@ function main(workspace, path) { // [START dataform_v1beta1_generated_Dataform_RemoveFile_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.reset_workspace_changes.js b/samples/generated/v1beta1/dataform.reset_workspace_changes.js index b3c26c2..e611fb1 100644 --- a/samples/generated/v1beta1/dataform.reset_workspace_changes.js +++ b/samples/generated/v1beta1/dataform.reset_workspace_changes.js @@ -23,6 +23,9 @@ function main(name) { // [START dataform_v1beta1_generated_Dataform_ResetWorkspaceChanges_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.update_repository.js b/samples/generated/v1beta1/dataform.update_repository.js index d8975ad..ce879f0 100644 --- a/samples/generated/v1beta1/dataform.update_repository.js +++ b/samples/generated/v1beta1/dataform.update_repository.js @@ -23,6 +23,9 @@ function main(repository) { // [START dataform_v1beta1_generated_Dataform_UpdateRepository_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataform.write_file.js b/samples/generated/v1beta1/dataform.write_file.js index 9d60584..33502bd 100644 --- a/samples/generated/v1beta1/dataform.write_file.js +++ b/samples/generated/v1beta1/dataform.write_file.js @@ -23,6 +23,9 @@ function main(workspace, path, contents) { // [START dataform_v1beta1_generated_Dataform_WriteFile_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/snippet_metadata.google.cloud.dataform.v1beta1.json b/samples/generated/v1beta1/snippet_metadata.google.cloud.dataform.v1beta1.json index 036ac39..4b31438 100644 --- a/samples/generated/v1beta1/snippet_metadata.google.cloud.dataform.v1beta1.json +++ b/samples/generated/v1beta1/snippet_metadata.google.cloud.dataform.v1beta1.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -78,7 +78,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -118,7 +118,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -166,7 +166,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -210,7 +210,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -254,7 +254,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -294,7 +294,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -350,7 +350,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -390,7 +390,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -438,7 +438,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -478,7 +478,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -518,7 +518,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -566,7 +566,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -610,7 +610,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -650,7 +650,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -694,7 +694,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -746,7 +746,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -794,7 +794,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -838,7 +838,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 74, "type": "FULL" } ], @@ -890,7 +890,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -934,7 +934,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -978,7 +978,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -1026,7 +1026,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -1070,7 +1070,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -1114,7 +1114,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -1162,7 +1162,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -1210,7 +1210,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -1258,7 +1258,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1298,7 +1298,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1342,7 +1342,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 74, "type": "FULL" } ], @@ -1394,7 +1394,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -1442,7 +1442,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1482,7 +1482,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1526,7 +1526,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1566,7 +1566,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1606,7 +1606,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], diff --git a/src/v1alpha2/dataform_client.ts b/src/v1alpha2/dataform_client.ts index 1168c91..2a4c45e 100644 --- a/src/v1alpha2/dataform_client.ts +++ b/src/v1alpha2/dataform_client.ts @@ -32,7 +32,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -337,7 +336,8 @@ export class DataformClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -3376,7 +3376,7 @@ export class DataformClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listRepositories.createStream( - this.innerApiCalls.listRepositories as gax.GaxCall, + this.innerApiCalls.listRepositories as GaxCall, request, callSettings ); @@ -3437,7 +3437,7 @@ export class DataformClient { this.initialize(); return this.descriptors.page.listRepositories.asyncIterate( this.innerApiCalls['listRepositories'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3604,7 +3604,7 @@ export class DataformClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listWorkspaces.createStream( - this.innerApiCalls.listWorkspaces as gax.GaxCall, + this.innerApiCalls.listWorkspaces as GaxCall, request, callSettings ); @@ -3665,7 +3665,7 @@ export class DataformClient { this.initialize(); return this.descriptors.page.listWorkspaces.asyncIterate( this.innerApiCalls['listWorkspaces'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3830,7 +3830,7 @@ export class DataformClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.queryDirectoryContents.createStream( - this.innerApiCalls.queryDirectoryContents as gax.GaxCall, + this.innerApiCalls.queryDirectoryContents as GaxCall, request, callSettings ); @@ -3888,7 +3888,7 @@ export class DataformClient { this.initialize(); return this.descriptors.page.queryDirectoryContents.asyncIterate( this.innerApiCalls['queryDirectoryContents'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4047,7 +4047,7 @@ export class DataformClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listCompilationResults.createStream( - this.innerApiCalls.listCompilationResults as gax.GaxCall, + this.innerApiCalls.listCompilationResults as GaxCall, request, callSettings ); @@ -4102,7 +4102,7 @@ export class DataformClient { this.initialize(); return this.descriptors.page.listCompilationResults.asyncIterate( this.innerApiCalls['listCompilationResults'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4267,7 +4267,7 @@ export class DataformClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.queryCompilationResultActions.createStream( - this.innerApiCalls.queryCompilationResultActions as gax.GaxCall, + this.innerApiCalls.queryCompilationResultActions as GaxCall, request, callSettings ); @@ -4325,7 +4325,7 @@ export class DataformClient { this.initialize(); return this.descriptors.page.queryCompilationResultActions.asyncIterate( this.innerApiCalls['queryCompilationResultActions'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4484,7 +4484,7 @@ export class DataformClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listWorkflowInvocations.createStream( - this.innerApiCalls.listWorkflowInvocations as gax.GaxCall, + this.innerApiCalls.listWorkflowInvocations as GaxCall, request, callSettings ); @@ -4539,7 +4539,7 @@ export class DataformClient { this.initialize(); return this.descriptors.page.listWorkflowInvocations.asyncIterate( this.innerApiCalls['listWorkflowInvocations'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4699,7 +4699,7 @@ export class DataformClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.queryWorkflowInvocationActions.createStream( - this.innerApiCalls.queryWorkflowInvocationActions as gax.GaxCall, + this.innerApiCalls.queryWorkflowInvocationActions as GaxCall, request, callSettings ); @@ -4755,7 +4755,7 @@ export class DataformClient { this.initialize(); return this.descriptors.page.queryWorkflowInvocationActions.asyncIterate( this.innerApiCalls['queryWorkflowInvocationActions'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1beta1/dataform_client.ts b/src/v1beta1/dataform_client.ts index 318b582..0e808b1 100644 --- a/src/v1beta1/dataform_client.ts +++ b/src/v1beta1/dataform_client.ts @@ -32,7 +32,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -337,7 +336,8 @@ export class DataformClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -3353,7 +3353,7 @@ export class DataformClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listRepositories.createStream( - this.innerApiCalls.listRepositories as gax.GaxCall, + this.innerApiCalls.listRepositories as GaxCall, request, callSettings ); @@ -3414,7 +3414,7 @@ export class DataformClient { this.initialize(); return this.descriptors.page.listRepositories.asyncIterate( this.innerApiCalls['listRepositories'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3581,7 +3581,7 @@ export class DataformClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listWorkspaces.createStream( - this.innerApiCalls.listWorkspaces as gax.GaxCall, + this.innerApiCalls.listWorkspaces as GaxCall, request, callSettings ); @@ -3642,7 +3642,7 @@ export class DataformClient { this.initialize(); return this.descriptors.page.listWorkspaces.asyncIterate( this.innerApiCalls['listWorkspaces'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3807,7 +3807,7 @@ export class DataformClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.queryDirectoryContents.createStream( - this.innerApiCalls.queryDirectoryContents as gax.GaxCall, + this.innerApiCalls.queryDirectoryContents as GaxCall, request, callSettings ); @@ -3865,7 +3865,7 @@ export class DataformClient { this.initialize(); return this.descriptors.page.queryDirectoryContents.asyncIterate( this.innerApiCalls['queryDirectoryContents'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4024,7 +4024,7 @@ export class DataformClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listCompilationResults.createStream( - this.innerApiCalls.listCompilationResults as gax.GaxCall, + this.innerApiCalls.listCompilationResults as GaxCall, request, callSettings ); @@ -4079,7 +4079,7 @@ export class DataformClient { this.initialize(); return this.descriptors.page.listCompilationResults.asyncIterate( this.innerApiCalls['listCompilationResults'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4244,7 +4244,7 @@ export class DataformClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.queryCompilationResultActions.createStream( - this.innerApiCalls.queryCompilationResultActions as gax.GaxCall, + this.innerApiCalls.queryCompilationResultActions as GaxCall, request, callSettings ); @@ -4302,7 +4302,7 @@ export class DataformClient { this.initialize(); return this.descriptors.page.queryCompilationResultActions.asyncIterate( this.innerApiCalls['queryCompilationResultActions'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4461,7 +4461,7 @@ export class DataformClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listWorkflowInvocations.createStream( - this.innerApiCalls.listWorkflowInvocations as gax.GaxCall, + this.innerApiCalls.listWorkflowInvocations as GaxCall, request, callSettings ); @@ -4516,7 +4516,7 @@ export class DataformClient { this.initialize(); return this.descriptors.page.listWorkflowInvocations.asyncIterate( this.innerApiCalls['listWorkflowInvocations'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4676,7 +4676,7 @@ export class DataformClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.queryWorkflowInvocationActions.createStream( - this.innerApiCalls.queryWorkflowInvocationActions as gax.GaxCall, + this.innerApiCalls.queryWorkflowInvocationActions as GaxCall, request, callSettings ); @@ -4732,7 +4732,7 @@ export class DataformClient { this.initialize(); return this.descriptors.page.queryWorkflowInvocationActions.asyncIterate( this.innerApiCalls['queryWorkflowInvocationActions'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/test/gapic_dataform_v1alpha2.ts b/test/gapic_dataform_v1alpha2.ts index ac59e60..69dbd9c 100644 --- a/test/gapic_dataform_v1alpha2.ts +++ b/test/gapic_dataform_v1alpha2.ts @@ -113,99 +113,101 @@ function stubAsyncIterationCall( } describe('v1alpha2.DataformClient', () => { - it('has servicePath', () => { - const servicePath = dataformModule.v1alpha2.DataformClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = dataformModule.v1alpha2.DataformClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = dataformModule.v1alpha2.DataformClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = dataformModule.v1alpha2.DataformClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new dataformModule.v1alpha2.DataformClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = dataformModule.v1alpha2.DataformClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new dataformModule.v1alpha2.DataformClient({ - fallback: true, + it('has port', () => { + const port = dataformModule.v1alpha2.DataformClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new dataformModule.v1alpha2.DataformClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new dataformModule.v1alpha2.DataformClient(); + assert(client); }); - assert.strictEqual(client.dataformStub, undefined); - await client.initialize(); - assert(client.dataformStub); - }); - it('has close method for the initialized client', done => { - const client = new dataformModule.v1alpha2.DataformClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new dataformModule.v1alpha2.DataformClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.dataformStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new dataformModule.v1alpha2.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.dataformStub, undefined); + await client.initialize(); + assert(client.dataformStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new dataformModule.v1alpha2.DataformClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new dataformModule.v1alpha2.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.dataformStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.dataformStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new dataformModule.v1alpha2.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.dataformStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new dataformModule.v1alpha2.DataformClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new dataformModule.v1alpha2.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new dataformModule.v1alpha2.DataformClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new dataformModule.v1alpha2.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getRepository', () => { diff --git a/test/gapic_dataform_v1beta1.ts b/test/gapic_dataform_v1beta1.ts index f559ab8..57db89a 100644 --- a/test/gapic_dataform_v1beta1.ts +++ b/test/gapic_dataform_v1beta1.ts @@ -113,99 +113,101 @@ function stubAsyncIterationCall( } describe('v1beta1.DataformClient', () => { - it('has servicePath', () => { - const servicePath = dataformModule.v1beta1.DataformClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = dataformModule.v1beta1.DataformClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = dataformModule.v1beta1.DataformClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = dataformModule.v1beta1.DataformClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new dataformModule.v1beta1.DataformClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = dataformModule.v1beta1.DataformClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new dataformModule.v1beta1.DataformClient({ - fallback: true, + it('has port', () => { + const port = dataformModule.v1beta1.DataformClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new dataformModule.v1beta1.DataformClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new dataformModule.v1beta1.DataformClient(); + assert(client); }); - assert.strictEqual(client.dataformStub, undefined); - await client.initialize(); - assert(client.dataformStub); - }); - it('has close method for the initialized client', done => { - const client = new dataformModule.v1beta1.DataformClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new dataformModule.v1beta1.DataformClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.dataformStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.dataformStub, undefined); + await client.initialize(); + assert(client.dataformStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new dataformModule.v1beta1.DataformClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.dataformStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.dataformStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.dataformStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new dataformModule.v1beta1.DataformClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new dataformModule.v1beta1.DataformClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getRepository', () => {